Optional recursiveWhether to recursively scan sub-directories when source is a directory.
false
Optional includeGlob patterns for file types to include.
['**/*.md', '**/*.pdf']
Optional excludeGlob patterns for paths to exclude.
['node_modules/**', '**/*.test.*']
Optional formatFormat hint for the ingested content.
'auto' – detect from file extension / mime type.'obsidian' – parse Obsidian wiki-links and front-matter.'markdown' – treat as plain CommonMark.'auto'
Optional onCallback invoked as each file is processed. Useful for building progress UI.
number of files completed so far
total number of files discovered
path of the file currently being processed
Options controlling a document-ingestion job launched via
Memory.ingest().