Skip to main content

Documentation Index

Fetch the complete documentation index at: https://upstash.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Search Command for Python SDK

The search method is designed to retrieve the most relevant documents from the database, using AI-powered search capabilities. For more details on how the search algorithm works, please refer to our advanced settings documentation.

Arguments

Payload
dict
required

Response

Documents
List[DocumentScore]
required
This field is null if no document with the specified ID is found.
results = index.search(
    query="space opera",
    limit=2
)
print(results)