← Back to Leaderboard
Ddocling-project

docling-project/docling

Local-first document parser for structure-aware RAG ingestion

Engineering Health (Methodology)
A+ · 96/100
Maintenance Activity
● Updated today
Latest Release
v2.156.0
Commercial License Check
MIT · Commercial Friendly

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

Maintenance35/35
Fork Adoption21/25
Release Cadence20/20
License Clarity20/20
DockerSelf-HostedLocal AICLIAPI
Total Stars
★ 71,418
24h Growth
+20
7d Growth
+285
Forks
5,523

GitHub Star History

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

docling-project/docling Star History (2024-07-14 - 2026-12-04) ALL-TIME STAR HISTORY (2024-07 – 2026-12) +71.4k in 873d · avg +82/day 75.4k 37.7k 0 2024-07-14: ★ 12024-09-07: ★ 1432024-11-02: ★ 2,0912024-12-28: ★ 16,0952025-02-22: ★ 20,9872025-04-19: ★ 26,7702025-06-14: ★ 30,9162025-08-09: ★ 34,6772025-10-04: ★ 39,6192025-11-29: ★ 44,3762026-01-24: ★ 50,1332026-03-21: ★ 55,4312026-05-16: ★ 59,1962026-07-11: ★ 62,5142026-09-05: ★ 65,7272026-10-31: ★ 69,8052026-12-04: ★ 71,418 ★ 71.4k 2024-07 2025-09 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

Docling is a Python ingestion and conversion layer, not a RAG database. docling.document_converter.DocumentConverter accepts a file path or URL and produces a conversion result whose document is a DoclingDocument. That shared representation is the handoff between format-specific parsing and export. A pipeline can retain it as lossless JSON for downstream processing or export Markdown when the next stage expects text. Embedding, storage, and retrieval remain downstream responsibilities.

The root pyproject.toml defines the modular docling-slim package with Hatchling, while the installation example and Dockerfile install docling. The container uses Python 3.11 and CPU-only PyTorch. The Python SDK and CLI are direct entry points; docling-serve exposes conversion as an API, and an MCP server provides agent access. LangChain, LlamaIndex, Haystack, and Crew AI integrations connect conversion to downstream applications without making Docling the retrieval backend.

Key Capabilities & Differentiators

For PDFs, Docling handles page layout, reading order, table structure, code, and formulas. OCR covers scans and other images. The CLI also exposes a vision-language model path through --vlm-model granite_docling. These are meaningful options when a document's columns or tables carry information that plain text extraction would flatten; validate the chosen pipeline on your own corpus rather than assuming layout or table fidelity.

Inputs extend beyond PDF to DOCX, PPTX, XLSX, HTML, EPUB, Apple iWork, email, and specialized XML such as USPTO patent records, JATS articles, and XBRL reports. Audio inputs such as WAV and MP3 use ASR. Outputs include Markdown, HTML, WebVTT, DocLang, DocTags, and lossless JSON. Choose JSON if later processing needs the structured representation; choose Markdown if ease of ingestion matters more than retaining the full structure.

Trade-offs & Limitations

A lightweight PDF text extractor is a simpler baseline for text-native files with predictable reading order. Docling is a stronger candidate when scans, multi-column layouts, or tables affect the quality of what gets indexed. Compare reading order, table structure, and downstream chunk quality on the same sample set, not just whether each tool returned text. A managed API can shift model and worker operations to a provider; local Docling puts those responsibilities on your team but lets you decide where documents are processed.

The CPU container is a starting point, not a capacity estimate. OCR, model selection, document length, and concurrency all affect resource use; measure wall time and peak RAM on realistic batches, and measure VRAM if you select a GPU-backed path. Treat OMP_NUM_THREADS=4 as the supplied container's starting budget, not a sizing rule. The project is MIT-licensed, but review the licenses of the model artifacts and dependencies you distribute separately.

Hardware & Deployment Guide

Install docling with Python 3.10 or newer. The project lists macOS, Linux, and Windows on x86_64 and arm64; check availability for the particular backend you intend to use. The supplied Dockerfile builds on python:3.11-slim-bookworm, installs CPU-only PyTorch, runs docling-tools models download at build time, and sets OMP_NUM_THREADS=4. For offline deployment, stage the dependencies and model artifacts, point DOCLING_ARTIFACTS_PATH at the staged models, and test conversion with outbound networking disabled. Use docling-serve when you need an HTTP service rather than a Python worker or CLI job.

In v2.155.0, Granite Docling v2 gained 500M and 2B VLM presets with MLX support; v2.156.0 made the Granite Docling V2 500M preset the default for the VLM path. That is not a claim that every conversion uses a VLM. Pin the package and model configuration, then regression-test representative exports before upgrading if downstream chunking or indexing depends on stable output.

Conversion API: DocumentConverter.convert() accepts local paths and URLs and returns a result containing a DoclingDocument.
PDF structure: Layout, reading order, and table structure go beyond raw text extraction; OCR covers scanned pages and images.
Export contract: Use lossless JSON to retain document structure, Markdown for text-oriented consumers, or HTML and DocTags where needed.
Format breadth: Office files, EPUB, Apple iWork, email, and domain schemas such as JATS and XBRL share the conversion layer.
Local runtime: The Dockerfile uses Python 3.11 and CPU-only PyTorch, prefetches model artifacts, and sets OMP_NUM_THREADS=4.
Integration choices: Use the Python SDK or CLI directly, docling-serve for an API, or the MCP server for agent access.
Best For

Teams ingesting mixed-format corpora, especially scans and layout-heavy PDFs, that need structured output and control over where conversion runs.

Skip If

You need a vector database or an end-to-end retrieval service, or your corpus is simple enough that plain text extraction meets your retrieval needs.

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

Quick Start & Installation

DockerSelf-HostedLocal AICLI
pip install docling

Comparison vs. Top RAG, Data & Memory Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
docling ★71.4k+285PythonMITLocal-first document parser for structure-aware RAG ingestion
marker41.2k+103PythonApache-2.0Hybrid OCR and layout parsing for document ingestion in RAG pipelines
MinerU84.7k+326Python—Local document parser and library for structured RAG ingestion and page-level ci
markitdown199.7k+909PythonMITPython library and CLI that turn mixed-format documents into Markdown for RAG in

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

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

Frequently Asked Questions about docling

Where does Docling fit in a RAG pipeline?

Put it before chunking and indexing. Call DocumentConverter.convert() on a local path or URL, then pass Markdown or DoclingDocument JSON downstream. Use Markdown when text is the expected interface; keep JSON when downstream code needs to inspect document structure. Use docling-serve if conversion needs a separate service lifecycle.

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

The supplied Dockerfile uses CPU-only PyTorch, so a GPU is not required for that deployment path. There is no established VRAM or throughput target here. Benchmark representative scanned and text-native documents at your intended concurrency, measure peak RAM and conversion time, and measure VRAM separately if you choose a GPU-backed model.

Can we use Docling commercially and deploy it in an air gap?

The project is MIT-licensed, which permits commercial use and self-hosting subject to its notice requirements when redistributing the software. Review the terms for the model artifacts and dependencies you actually ship separately. For an air-gapped deployment, pre-stage dependencies and model artifacts and verify that the selected pipeline runs with outbound access disabled.

When should we choose Docling over a PDF text extractor or a managed API?

A text extractor is the simpler choice if your corpus is mostly text-native and reading order and tables are not important. Docling is worth testing when scans, multi-column layouts, or structured tables affect retrieval quality. Compared with a managed document API, local conversion keeps processing under your control but makes your team responsible for capacity and upgrades.

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