Skip to main content

Parameters

  • directory (str | Path): Directory containing files to ingest
  • recursive (bool, optional): Whether to recurse into subdirectories. Defaults to False.
  • pattern (str, optional): Glob pattern to select files (for example "*.pdf"). Defaults to "*".
  • metadata (Dict[str, Any], optional): Metadata applied to each ingested file
  • use_colpali (bool, optional): Whether to use ColPali-style embedding. Defaults to True.
  • parallel (bool, optional): Whether to process files in parallel. Defaults to True.

Returns

  • List[Document]: List of ingested document metadata

Examples