Search with a vector
Search a namespace with a query vector or record ID and return the IDs of the most similar records, along with their similarity scores.
Authorizations
Body
The request for the query
operation.
The number of results to return for each query.
1 < x < 10000
The namespace to query.
The filter to apply. You can use vector metadata to limit your search. See Understanding metadata.
Indicates whether vector values are included in the response.
Indicates whether metadata is included in the response as well as the ids.
DEPRECATED. Use vector
or id
instead.
The query vector. This should be the same length as the dimension of the index being queried. Each request can contain either the id
or vector
parameter.
Vector sparse data. Represented as a list of indices and a list of corresponded values, which must be with the same length.
The unique ID of the vector to be used as a query vector. Each request can contain either the id
or vector
parameter.
512
Response
The response for the query
operation. These are the matches found for a particular query vector. The matches are ordered from most similar to least similar.
DEPRECATED. The results of each query. The order is the same as QueryRequest.queries
.
The matches for the vectors.
The namespace for the vectors.
Was this page helpful?