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. 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)