Search for nearest neighbors
Return the top k records for a query. Provide exactly one of vector
(approximate nearest neighbor search) or bm25 (full-text BM25 search
over a text field); the two are mutually exclusive. Optionally filter
results by metadata attributes using a filter expression.
The nprobe parameter controls how many posting lists are searched for
ANN queries. Higher values improve recall at the cost of latency.
The includeFields parameter controls which attributes are returned
for each result. When omitted, all attributes are returned.
Supports both binary protobuf (application/protobuf) and ProtoJSON
(application/protobuf+json) request bodies.
Body
Request body for searching a collection. Provide exactly one of vector
(approximate nearest neighbor search) or bm25 (full-text BM25 search);
they are mutually exclusive.
Number of results to return.
x >= 1Query vector for ANN search. Must have the same number of dimensions as the collection. Provide either this or bm25.
Full-text BM25 query over a text field. Provide either this or vector.
Number of posting lists to search for ANN queries. Higher values improve recall at the cost of latency. Optional.
A filter expression. Each filter object must contain exactly one
operator key. Filters can be nested using and and or.
List of attribute field names to include in results. When omitted, all attributes are returned.