Skip to content
masterclass Buddy

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.

Subscribe
  • Metadata
  • Metadata Filtering
  • Sparse Indexes
  • Hybrid Indexes
  • Namespaces
  • Upstash Embedding

Source: Query - Upstash Documentation. Checked 2026-11-03.