Skip to main content
Pass DoclingReader to Knowledge.insert() to parse supported formats with Docling.
docling_reader.py

Supported Input Groups

Run the Agent

1

Set up your virtual environment

2

Install dependencies

Audio and video conversion also require:
Install ffmpeg with your operating system’s package manager. See FFmpeg downloads for platform packages.
3

Export the API key

4

Run PgVector

5

Run the agent

Reader Parameters

In v2.7.2, Knowledge.insert(url=..., reader=DoclingReader(allowed_hosts=...)) downloads extension-bearing URLs before calling the reader. Validate the URL before ingestion because the reader’s allowlist does not guard this path.
DoclingReader.async_read() runs the synchronous conversion in a worker thread.

Next Steps