← Back to Leaderboard
Ddocling-project

docling-project/docling-graph

A Pydantic pipeline that turns documents into traceable knowledge graphs

View on GitHub ↗
Engineering Health (Methodology)
A+ · 91/100
Maintenance Activity
● Updated yesterday
Latest Release
v1.10.0
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption16/25
Release Cadence20/20
License Clarity20/20
CLILocal AIAPI
Total Stars
★ 1,005
24h Growth
+2
7d Growth
+11
Forks
109

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

docling-project/docling-graph Star History (2025-11-18 - 2026-12-04) ALL-TIME STAR HISTORY (2025-11 – 2026-12) +1k in 381d · avg +3/day 1.1k 531 0 2025-11-18: ★ 12025-12-13: ★ 112026-01-10: ★ 142026-02-07: ★ 222026-03-07: ★ 972026-04-04: ★ 1212026-05-02: ★ 1372026-05-30: ★ 1522026-06-27: ★ 1632026-07-25: ★ 1772026-08-22: ★ 7582026-09-19: ★ 8942026-10-17: ★ 9302026-11-10: ★ 9422026-12-04: ★ 1,005 ★ 1k 2025-11 2026-05 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

Docling Graph is a Python ingestion pipeline for knowledge graphs, not a database or retrieval server. It converts documents locally or through docling-serve when needed, runs extraction against a Pydantic template, and maps validated objects to a directed NetworkX graph. Conversion and extraction are separately configurable: local VLM extraction uses Docling, while the LLM path uses LiteLLM to route inference.

The template is the main extension point. It defines what to extract and how to represent it in the graph: is_entity marks entities, graph_id_fields lets authors choose identity fields, and edge() names relationships. The Python entry point, run_pipeline(config), returns a PipelineContext with the graph, extracted models, and metadata. The CLI separates conversion, inspection, and merge into distinct operations.

Key Capabilities & Differentiators

The pipeline accepts DoclingDocument JSON, DocLang, Markdown, plain text, HTML, and Word, PowerPoint, and Excel files. PDF and image conversion needs the local Docling stack or docling-serve. The LLM path supports local targets such as vLLM and Ollama and hosted providers including OpenAI, Gemini, IBM watsonx, and Mistral. Chunking and dense extraction address complex inputs; dense fill recovery can preserve failed instances for recovery and repair parent-child links.

Standard node provenance records the source chunk and page without extra inference. Graphs from separate runs can be merged deterministically and audited without further LLM calls, then exported as CSV or Cypher. For schema authoring, template from-docs has the model propose structured definitions rather than Python code. A deterministic renderer writes the module and an editable SPEC YAML, and --trial-run runs an extraction on the first sample to help assess the template. Supported ontologies and schemas can also be compiled without an LLM.

Trade-offs & Limitations

Compared with a vector-only RAG pipeline, Docling Graph makes named relationships and entity identities explicit, which is useful for queries that cross document boundaries. The cost is schema design and ongoing review of identity fields, extraction errors, and duplicates. Pydantic validation enforces structure, not factual accuracy. Provenance helps reviewers find the source, but deterministic graph construction and merging do not make the upstream model extraction deterministic.

Compared with using Docling for conversion alone, this adds schema-bound extraction and graph assembly, along with model execution and more failure modes to monitor. Fully local processing keeps documents within your deployment boundary when both stages are local, but shifts model sizing and operations to your team. Hosted inference reduces local model overhead, but adds provider credentials, data-handling decisions, and usage costs. NetworkX and the exporters produce graph artifacts; plan downstream storage and serving separately if you need persistent queries.

Hardware & Deployment Guide

Use Python 3.10 or newer. pip install docling-graph suits supported inputs that do not need the local Docling conversion stack, or deployments that delegate conversion to docling-serve. Install docling-graph[docling] for local PDF/image conversion and use the vlm extra to enable VLM support. With the CLI, docling-graph init initializes configuration, --docling-serve-url selects a conversion service, and --debug writes intermediate artifacts. Hosted inference requires provider credentials and is independent of where conversion runs.

The v1.10.0 packaging split removes PyTorch from the default install. For fully local deployment, provision the chosen conversion and inference models and test peak RAM and, where applicable, GPU VRAM at representative page sizes and concurrency. The v1.10.0 identity change affects identifiers with multiple digit groups, so compare regenerated IDs against stored graphs before migration. v1.9.2 fixed deduplication keys for non-Latin letters, while v1.9.1 made Cypher output typed and idempotent via MERGE.

Schema and graph mapping: Pydantic templates define extracted fields, while graph_id_fields and edge() specify identity fields and relationship labels.
Inference backends: Docling handles local VLM extraction; LiteLLM routes LLM extraction to local runtimes or hosted providers.
Traceability: Standard __provenance__ links nodes to source chunks and pages without an extra LLM call.
Graph merging: Deterministic, auditable merges require no further inference; batched Cypher export supports downstream loading.
Template tooling: Generate editable SPEC YAML from sample documents, or compile templates from supported ontologies and schemas without an LLM.
Runtime footprint: v1.10.0 keeps PyTorch out of the base install; local PDF and image conversion uses the docling extra.
Best For

Document ingestion in legal or finance workflows where contracts, parties, instruments, and obligations must become typed relationships that reviewers can trace to the source.

Skip If

Passage retrieval already meets your needs, you cannot maintain an extraction schema, or you need a turnkey graph database and query service.

Reviewed on 2026-12-03 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

CLILocal AIAPI
pip install docling-graph

Comparison vs. Top RAG, Data & Memory Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
docling-graph ★1k+11PythonMITA Pydantic pipeline that turns documents into traceable knowledge graphs
LightRAG41k+110PythonMITGraph-backed RAG for cross-document retrieval and multimodal indexing
docling71.4k+285PythonMITLocal-first document parser for structure-aware RAG ingestion
cognee33.8k+174PythonApache-2.0Graph and vector retrieval for persistent agent memory across sessions

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/docling-project/docling-graph.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

docling-project/docling-graph Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about docling-graph

How do I integrate Docling Graph into an existing ingestion pipeline?

Call run_pipeline(config) and read context.knowledge_graph, context.extracted_models, and context.graph_metadata. The Python API returns these in memory by default without writing files. Use CSV or Cypher exports when a separate process or graph database owns ingestion.

Do I need a GPU, and how should I size a worker?

The base package avoids installing PyTorch and Docling conversion models. For local PDF/image conversion or local VLM inference, size the conversion and inference stages separately: test representative page sizes and concurrent jobs, then measure peak RAM and, if using a GPU, VRAM. Remote conversion and inference can move model execution off the application host, but they're separate endpoints and data boundaries.

Can I self-host it for commercial use with confidential documents?

The project is MIT-licensed, so you can use it commercially and self-host it. Retain the required copyright and license notices when redistributing it. Review the terms of the selected dependencies, model weights, and hosted providers separately. If documents cannot leave your environment, keep both conversion and inference inside that boundary and control access to debug artifacts.

When should I choose it over plain Docling, vector retrieval, or a graph database?

Use plain Docling when converted document content is enough, or a vector index when the main task is finding semantically similar passages. Add Docling Graph when queries need named relationships and consistent entity identities across documents. Keep a downstream graph database if you need persistent storage and a query service; Docling Graph produces the graph rather than operating that service.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining docling-project/docling-graph? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature docling-project/docling-graph on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare