Upstash · Method
index.query
Use index.query to find the most similar vectors. Provide a vector, sparse vector, or text data, then control result count, filters, namespace, and returned fields.
Last updated
Syntax
index.query(vector=..., sparse_vector=..., data=..., top_k=..., include_metadata=..., include_vectors=..., include_data=..., filter=..., namespace=...)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
MetadataMetadata FilteringSparse IndexesHybrid IndexesNamespacesUpstash Embedding