Skip to main content

Parameters

  • content (str): Text content to ingest
  • filename (str, optional): Optional filename for the document
  • metadata (Dict[str, Any], optional): Optional metadata dictionary
  • use_colpali (bool, optional): Whether to use ColPali-style embedding model to ingest the text (slower, but significantly better retrieval accuracy for text and images). Defaults to True.

Typed Metadata

Pass native Python types for metadata (e.g., datetime, date, Decimal, bool). The SDK normalizes them, forwards the appropriate metadata_types, and unlocks range queries described in the Metadata Filtering guide. Example:

Returns

  • Document: Metadata of the ingested document

Examples