- Sync
- Async
Parameters
directory(str | Path): Directory containing files to ingestrecursive(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 fileuse_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
- Sync
- Async

