Function: createDoclingLoader()
createDoclingLoader():
IDocumentLoader|null
Defined in: packages/agentos/src/memory/ingestion/DoclingLoader.ts:276
Checks whether python3 -m docling is available in the current environment
and, if so, returns a new Docling-backed loader instance; otherwise returns
null.
The availability check runs python3 -m docling --version synchronously
via spawnSync — it exits quickly and is only called once during registry
initialisation.
Usage
import { createDoclingLoader } from './DoclingLoader.js';
import { PdfLoader } from './PdfLoader.js';
const doclingLoader = createDoclingLoader();
const loader = new PdfLoader(null, doclingLoader);
Returns
IDocumentLoader | null
A Docling-backed loader instance when Docling is installed, or null.