results = index.search(
    query="space opera",
    limit=2
)
print(results)

Search Command for Python SDK

The search method is designed to retrieve the most relevant documents from the database, using AI-powered search capabilities.

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)