- 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

