Skip to main content

files.get

Get one indexed file record by file_id.
client.files.get(namespace_name: str, file_id: str) -> dict[str, Any]
API: GET /namespaces/{namespace_name}/files/{file_id} — see Get file

Examples

from moorcheh import MoorchehClient

with MoorchehClient("http://localhost:8080") as client:
    resp = client.files.get("my-documents", "a1b2c3d4e5f67890")
    print(resp["file"]["chunk_count"])