Find Files
beta.retrieval.find(RetrievalFindParams**kwargs) -> SyncPaginatedCursorPost[RetrievalFindResponse]
POST/api/v1/retrieval/files/find
Find Files
import os
from llama_cloud import LlamaCloud
client = LlamaCloud(
api_key=os.environ.get("LLAMA_CLOUD_API_KEY"), # This is the default and can be omitted
)
page = client.beta.retrieval.find(
index_id="idx-abc123",
)
page = page.items[0]
print(page.file_id){
"items": [
{
"file_id": "file_id",
"file_name": "file_name"
}
],
"next_page_token": "next_page_token",
"total_size": 0
}Returns Examples
{
"items": [
{
"file_id": "file_id",
"file_name": "file_name"
}
],
"next_page_token": "next_page_token",
"total_size": 0
}