Skip to main content

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.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for runic-rag-docling 0.3.0
File Size Uploaded Provenance Actions
runic_rag_docling-0.3.0.tar.gz 10.0 kB Without provenance Details for runic_rag_docling-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for runic-rag-docling 0.3.0
File Interpreter ABI Platform Actions
runic_rag_docling-0.3.0-py3-none-any.whl Python 3 none any Details for runic_rag_docling-0.3.0-py3-none-any.whl

Total release size: 22.3 kB

Release files / runic_rag_docling-0.3.0.tar.gz

Download URL runic_rag_docling-0.3.0.tar.gz
Size 10.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f6f14996eaaa241c03f09b16fe909519bf00d655e5890f46c6153a2604acc497
BLAKE2b-256 checksum
How to use checksums
10bd9d41c64d501678a241fbd2e185f975697cd52a8de4d9544bdd824debed12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","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.3.0-py3-none-any.whl

Download URL runic_rag_docling-0.3.0-py3-none-any.whl
Size 12.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4004b20a6d8e6a606548f95c9cb2d4ea0c979304a7a2578803e607cffdfd6fbc
BLAKE2b-256 checksum
How to use checksums
8bf28ec9615e3d4e9ed961b30d3b2dde8007ac268890b5523eea48c7a128c99a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","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}

Security for runic-rag-docling 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page