Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 5.75 KB

hybridsearchquery.md

File metadata and controls

19 lines (16 loc) · 5.75 KB

HybridSearchQuery

Fields

Field Type Required Description
table string ✔️ Table name
denseVectors number[][] ✔️ List of dense vectors to do similarity search with.
sparseVectors components.SparseVectors[] ✔️ List of sparse vectors to do similarity search with.
n number Number of results to return.
alpha number Weight on searches, 0 is sparse, 1 is dense.
denseIndexOptions components.DenseIndexOptions Index options
sparseIndexOptions components.SparseIndexOptions Index options (k and/or b)
distances string Name of the distance column to be added to the result table. If not set, __nn_distance will be used.
filter string[][] List of triples describing the filter of the form comparison operator, column, values for comparison.
groupBy string[] A list of column names to group by
agg string[][] List of symbol tuples defining the aggregations to perform
sortCols string[] Columns to be sorted ascending, post query execution