runic-rag-docling
Optional Docling adapters that
implement the runic.rag file-oriented ports DocumentParser and
DocumentChunker. Docling parses PDF/DOCX/PPTX/XLSX/HTML/images structure-aware
(layout, tables, headings) and chunks the structured document directly — no
Markdown re-parse. The heavy Docling dependency lives only in this add-on; the
runic.rag core stays light and imports no Docling.
Install
In-process (default, heavy — pulls torch):
uv add 'runic-rag-docling[local]'
Lightweight client against a docling-serve instance:
uv add 'runic-rag-docling[server]'
Usage
Variant A — inject DoclingChunker via the GraphRAG constructor
Wire the Docling chunker as the document_chunker; ingest_document then parses
and chunks the original structure-aware, while ingest_text keeps the built-in
ParagraphChunker.
from runic.rag import GraphRAG, ParagraphChunker, RagSettings # plus the other ports
from runic_rag_docling import DoclingChunker, DoclingSettings
rag = GraphRAG(
store,
ontology=ontology,
chunker=ParagraphChunker(settings),
document_chunker=DoclingChunker(DoclingSettings(mode="local")),
# extractor, embedder, resolver, retrievers, reranker, synthesizer, settings ...
)
rag.bootstrap_schema()
report = rag.ingest_document("whitepaper.pdf") # Docling parses + chunks the original
Runnable: examples/docling_explicit_wiring.py
wires the full stack by hand (no build_graphrag).
Variant B — build_graphrag one-liner (default stack + Docling)
from runic.rag import load_settings
from runic_rag_docling import DoclingSettings, build_graphrag
rag = build_graphrag(
load_settings(),
DoclingSettings(mode="server", server_url="http://localhost:5001"),
)
rag.bootstrap_schema()
report = rag.ingest_document("whitepaper.pdf")
For parse-only behavior, wire DoclingParser as the document_parser (keeps the
core Chunker).
Configuration
DoclingSettings reads from the environment with the RUNIC_DOCLING_ prefix
(e.g. RUNIC_DOCLING_MODE=server, RUNIC_DOCLING_SERVER_URL=...,
RUNIC_DOCLING_API_KEY=..., RUNIC_DOCLING_MAX_TOKENS=512).
See docs/rag/docling.md for the full guide.
Metadata
Release files for runic-rag-docling 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| runic_rag_docling-0.2.2.tar.gz | 9.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| runic_rag_docling-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.6 kB
Release files / runic_rag_docling-0.2.2.tar.gz
| Download URL | runic_rag_docling-0.2.2.tar.gz |
|---|---|
| Size | 9.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
83a64260f6710f127e874410287f2f2e5f8728bce1d3aa6ed276b563f2090684
|
|
BLAKE2b-256 checksum How to use checksums |
6a8d45b807a1608956edeb84f3a985db84a4d29fc7efb8cc4c5347a55a4ba0d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / runic_rag_docling-0.2.2-py3-none-any.whl
| Download URL | runic_rag_docling-0.2.2-py3-none-any.whl |
|---|---|
| Size | 11.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
62c8cfe11c34181e4220410be3eafc38946367c7b8784ec17a999d1053348660
|
|
BLAKE2b-256 checksum How to use checksums |
5bc810e864ff142b809f509337f014834bc5f38dee632d6ced7689200305a627
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|