← Back to Leaderboard
Ddocling-project

docling-project/docling-core

A Pydantic document core for structured export and RAG chunking

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

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

Maintenance35/35
Fork Adoption20/25
Release Cadence20/20
License Clarity20/20
CLI
Total Stars
★ 308
24h Growth
+1
7d Growth
+4
Forks
317

GitHub Star History

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

docling-project/docling-core Star History (2024-07-14 - 2026-12-04) ALL-TIME STAR HISTORY (2024-07 – 2026-12) +307 in 873d · avg +0/day 325 163 0 2024-07-14: ★ 12024-09-07: ★ 102024-11-02: ★ 212024-12-28: ★ 462025-02-22: ★ 712025-04-19: ★ 1142025-06-14: ★ 1422025-08-09: ★ 1632025-10-04: ★ 1812025-11-29: ★ 2042026-01-24: ★ 2192026-03-21: ★ 2322026-05-16: ★ 2502026-07-11: ★ 2642026-09-05: ★ 2782026-10-31: ★ 2952026-12-04: ★ 308 ★ 308 2024-07 2025-09 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

Docling Core is an in-process Python library centered on DoclingDocument, a Pydantic model that defines the document schema and exposes an API for building documents. In a RAG pipeline, an upstream component supplies or constructs the structured document. Core then operates on that representation rather than requiring each downstream consumer to interpret the source file independently.

Serialization and chunking are distinct extension points with built-in implementations. The convenience export methods on DoclingDocument sit on top of the serialization API. This lets applications keep a common document model while choosing different output representations or chunking policies for different consumers.

Key Capabilities & Differentiators

A DoclingDocument can be exported to Markdown or HTML via its helpers, or processed through the serialization API when the built-in representation does not fit. The chunking API includes a hybrid chunking example and supports custom implementations for downstream retrieval needs.

The profiling API works on single documents and collections. It reports on pages, tables, pictures, and text items, and provides deciles, histograms, and collection visualizations. Use these measurements to select representative test fixtures and identify structural outliers before tuning chunking; they are not retrieval quality metrics.

Trade-offs & Limitations

Compared with splitting plain text or Markdown, retaining a structured model gives exporters and chunkers access to document structure instead of forcing them to infer it from flattened text. The cost is an extra schema boundary and a need to test custom transformations. If you need raw-file conversion, use full Docling upstream; if you already have clean text and need only simple splitting, a generic splitter introduces less integration work.

The MIT license permits commercial integration, subject to its notice requirements on redistribution. Local image access is a separate trust decision: references using a filesystem path or file:// are not read by default and raise ValueError when loading is attempted. Leave that default in place for mixed-trust inputs; if trusted documents need local images, opt in per document rather than changing process-wide settings.

Hardware & Deployment Guide

Install with pip install docling-core and import it into the Python application that performs document transformations. The development setup targets Python 3.10 through 3.15 and uses uv sync --all-extras. Runtime configuration is available through DOCLINGCORE_ environment variables or docling_core.utils.settings.settings. Size the worker for document complexity, concurrent transformations, and any image or tokenizer loading rather than assuming a GPU or a fixed VRAM requirement.

v2.109.0 adds tokenizer loading from an artifacts path, useful for pre-staging tokenizer assets in controlled environments, and preserves WebVTT cues with misnested end tags. v2.108.0 adds TrackItem and DocLang support; v2.107.1 addresses WebVTT serialization for sub-millisecond cues and escaping in cue text and voice names. Test representative exports and chunk boundaries before upgrading a pinned production version.

Data model: Pydantic-backed DoclingDocument provides a schema and an API for building structured documents.
Serialization: Extensible serializers power the document helpers for Markdown and HTML export.
Chunking: Built-in and extensible chunking APIs; v2.109.0 can load tokenizers from an artifacts path.
Profiling: Inspect page, table, picture, and text-item statistics, with deciles, histograms, and collection visualizations.
File access: Filesystem paths and file:// image references are blocked by default; trusted documents can opt in per document.
Packaging: MIT-licensed Python library installed via pip, with runtime settings under the DOCLINGCORE_ prefix.
Best For

Teams that already produce DoclingDocument objects and need a shared model for export, retrieval chunking, and corpus profiling.

Skip If

You need raw-file conversion or a complete indexing and retrieval service out of the box, or you only need to split clean text.

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

Quick Start & Installation

CLI
pip install docling-core

Comparison vs. Top RAG, Data & Memory Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
docling-core ★308+4PythonMITA Pydantic document core for structured export and RAG chunking
auto-ontology19.1k+3.7kPythonApache-2.0An ontology framework that grounds agent-generated SQL in reviewed business defi
llama_index53.1k+104PythonMITA modular Python SDK for document ingestion, indexing, and RAG
langextract39.5k+85PythonApache-2.0Python SDK for extracting structured data with traceable source spans

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-core.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-core Star History on RepoForAI

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

Frequently Asked Questions about docling-core

Where does Docling Core fit in a RAG ingestion pipeline?

Feed an existing DoclingDocument into the serialization or chunking API. Use the built-in serializers for standard Markdown or HTML output, and extend serialization or chunking when your downstream consumer needs a different representation or chunking policy. Keep raw-file conversion and indexing outside this library.

How should I size CPU, RAM, and VRAM?

No GPU or fixed VRAM requirement is specified for Core's document transformations. Size CPU and RAM with representative documents and worker concurrency. Include tokenizer loading for chunking and image memory if trusted local images are loaded; profile conversion and embedding separately.

Can I use it commercially and run it on my own infrastructure?

Yes. Docling Core is MIT-licensed and can run inside a commercial application on your own infrastructure. Preserve the copyright and license notices when redistributing it, and review the terms for any dependencies or tokenizer artifacts you ship.

When should I choose Core over a generic splitter or the full Docling pipeline?

Choose Core over plain-text or Markdown splitting when downstream processing benefits from document structure or multiple output formats. Use the full Docling pipeline when you need raw-file conversion. If clean Markdown is already your source of truth and you need only text chunks, a generic splitter is simpler.

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-core? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature docling-project/docling-core 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