Fetch Command for Python SDK
Used to retrieve documents by their IDs.Arguments
object
required
Response
List[Document]
required
This field is
null if no document with the specified ID is found.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
documents = index.fetch(ids=["movie-0", "movie-1"])
print(documents)
documents = index.fetch(prefix=["movie-"])
print(documents)
documents = index.fetch(ids=["movie-0", "movie-1"])
print(documents)
documents = index.fetch(prefix=["movie-"])
print(documents)
Was this page helpful?