Range Command for Python SDK#
The range method is used to retrieve documents in chunks with pagination.
Skip to main contentDocumentation index
Fetch the complete documentation index at: /llms.txt
Ask it with GET /ask?q=<keywords or question>. Short keywords rank best.
Use these to discover all available pages before exploring further.
Feature requests: /common/help/feature-requests.md lists what users asked for and how to vote for a request or add one.
Page rating: `GET /feedback?path=<this page's path>&helpful=true` (or `false`) records whether this page helped. An optional `comment` (URL-encoded, at most 500 characters) says what was missing or wrong. It is anonymous and needs no key. Comments hold no code, secrets or personal data.
The range method is used to retrieve documents in chunks with pagination.
The cursor for the next page of documents.
Was this page helpful?
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)