The total number of the vectors that you want to receive as a query
result. The response will be sorted based on the distance metric score,
and at most topK many vectors will be returned.
Whether to include the vector values in the response.
It is recommended to set this to false as the vector values can be
quite big, and not needed most of the time.
For sparse vectors of sparse and hybrid indexes, specifies what kind of
weighting strategy should be used while querying the matching non-zero
dimension values of the query vector with the documents.If not provided, no weighting will be used.Only possible value is IDF (inverse document frequency).
Fusion algorithm to use while fusing scores
from dense and sparse components of a hybrid index.If not provided, defaults to RRF (Reciprocal Rank Fusion).Other possible value is DBSF (Distribution-Based Score Fusion).
Query mode for hybrid indexes with Upstash-hosted
embedding models.Specifies whether to run the query in only the
dense index, only the sparse index, or in both.If not provided, defaults to HYBRID.Possible values are HYBRID, DENSE, and SPARSE.
If the request was an array of a single element, or a JSON object,
an object with the following fields is returned.If the request was an array of more than one items, an array of
objects below is returned, one for each query item.
For dense indexes, the score is normalized to always be between 0 and 1.
The closer the score is to 1, the more similar the vector is to the query vector.
This does not depend on the distance metric you use.For sparse and hybrid indexes, scores can be arbitrary values, but the score
will be higher for more similar vectors.