- Sync
- Async
Parameters
file(Union[str, bytes, BinaryIO, Path]): File to ingest (path string, bytes, file object, or Path)filename(str, optional): Name of the filemetadata(Dict[str, Any], optional): Optional metadata dictionaryuse_colpali(bool, optional): Whether to use ColPali-style embedding model to ingest the file (slower, but significantly better retrieval accuracy for images). Defaults to True.
Typed Metadata
Use Python-native values (e.g.,datetime, date, Decimal) in the metadata dict. The SDK serializes them and adds the corresponding metadata_types, so you can run the advanced filters documented in Metadata Filtering.
Returns
Document: Metadata of the ingested document
Examples
- Sync
- Async
Async Processing
Document ingestion is processed asynchronously. The returnedDocument object contains an external_id that you can use to track the document’s processing status:
- Use
get_document_statusto check if processing is complete - The document won’t appear in retrieval results until processing completes

