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.

Range Command for Python SDK

The range method is used to retrieve documents in chunks with pagination.

Arguments

Payload
dict
required

Response

Response
dict
required
range_documents = index.range(cursor="", limit=1)
print(range_documents.documents)

range_documents = index.range(
    cursor=range_documents.next_cursor,
    limit=3
)
print(range_documents.documents)