You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
also allows for performing a kNN search subject to a filter. In this case, it first executes the filter for each leaf, then chooses a strategy dynamically
If the filter cost is less than k, just execute an exact search
Otherwise run a kNN search subject to the filter
If the kNN search visits too many vectors without completing, stop and run an exact search
also allows for performing a kNN search subject to a filter. In this case, it first executes the filter for each leaf, then chooses a strategy dynamically
If the filter cost is less than k, just execute an exact search
Otherwise run a kNN search subject to the filter
If the kNN search visits too many vectors without completing, stop and run an exact search
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Notes on lucene-update branch of eXist-db.
XML version of the query and options
Should eXist-db support XML query syntax used by Lucene? If so, we can try XSLT transform from one syntax to another and vice versa.
Vector queries
Lucene 9 and higher supports vector queries. That means
Some questions:
From the user/developer perspective
How to define
collection.xconf<model>for LLM models used for transforming textual content to vector@vector="true"in thefieldelement@modelin thefieldelement; the value corresponds with@idattribute of the<model>elementHow to query
Classes in Lucene 10
KnnFloatVectorQueryKnnByteVectorQueryPatienceKnnVectorQuerySeededKnnVectorQueryList of fields (used for vector querying):
Parameters for query constructors, for example
fromFloatQueryfromByteQueryfromSeededQueryCompare with
org.apache.lucene.search.KnnVectorQuery in Lucence 9KnnVectorQuery (String field, float[] target, int k)Notes:
KnnFloatVectorQuery,KnnByteVectorQuery)Possible solutions in eXist-db
New function
vs:queryvsforvector search, likeftforfull-text (search)why not use
ft:queryvs:querysignaturevs:query($nodes as node()*, $query as item()?, $options as item()?)node()*— all nodes from the collection, which match input node set matching the query.Cons: another method (function) must be created to combine
vs:querywithft:query.Overloaded version of
ft:queryft:query($nodes as node()*, $query as item()?, $options as item()?, $vector-query as item()?)$vector-query: contains text to be searched by vector query (i.e. must be converted to thetargetparameter)$options: contains new set of options (elements) used for defining vector query, for example<query-model-id>: id of model used for generating embedded vector from the query<field>: field name with vector index to be queried<documents>: number of returned nodes for each query (i.e.kparameter)<saturation-threshold>: saturationThreshold<patience>: patienceBeta Was this translation helpful? Give feedback.
All reactions