← Back to Leaderboard
Ddocling-project

docling-project/docling-serve

Self-hosted Docling API for document conversion in RAG pipelines

View on GitHub ↗
Engineering Health (Methodology)
A+ · 96/100
Maintenance Activity
● Updated today
Latest Release
v1.41.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-HostedAPI
Total Stars
★ 1,948
24h Growth
+0
7d Growth
+10
Forks
381

GitHub Star History

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

docling-project/docling-serve Star History (2024-09-05 - 2026-12-04) ALL-TIME STAR HISTORY (2024-09 – 2026-12) +1.9k in 820d · avg +2/day 2.1k 1k 0 2024-09-05: ★ 12024-10-26: ★ 62024-12-21: ★ 312025-02-15: ★ 862025-04-12: ★ 2412025-06-07: ★ 4312025-08-02: ★ 5742025-09-27: ★ 7272025-11-22: ★ 9332026-01-17: ★ 1,1082026-03-14: ★ 1,3042026-05-09: ★ 1,4782026-07-04: ★ 1,6332026-08-29: ★ 1,7572026-10-24: ★ 1,8732026-12-04: ★ 1,948 ★ 1.9k 2024-09 2025-10 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

Docling Serve wraps the Python Docling conversion engine in a standalone service. Its stable v1 HTTP API is the integration boundary: a client can send a JSON request to POST /v1/convert/source with an HTTP URL pointing to a PDF. The service handles conversion; downstream applications own chunking strategy, embedding, indexing, and retrieval. It is an upstream component in a RAG stack, not the database or retrieval layer.

The Python service lives under docling_serve/, the repository contains a separate ui/ directory and a Containerfile, and the optional playground is served at /ui. The hardware-specific container variants are built around different PyTorch configurations. In v1.39.0, DOCLING_SERVE_ALLOWED_PIPELINES and DOCLING_SERVE_DEFAULT_PIPELINE let operators define which pipelines a deployment offers and which pipeline it selects by default, without making clients manage the Python runtime.

Key Capabilities & Differentiators

The concrete integration path is conversion from an HTTP-hosted PDF through a JSON API, with an optional browser playground for manual evaluation. The v1.41.0 release makes Granite-Docling v2 the default VLM preset. That is a change to the VLM preset, not an indication that every conversion uses the VLM pipeline. When upgrading, compare outputs on representative documents if downstream ingestion depends on consistent conversion results.

Version 1.40.0 adds idle local-model unloading and allocator-cache release, along with settings to disable callbacks or cap them per request. Unloading can reduce idle memory retention, but the next conversion may need to reload the model. Packaging includes a CPU variant and CUDA 12.8 and 13.0 variants, plus local-build targets for ROCm 6.3 and ROCm 10.1 on gfx1151. These are runtime packaging choices, not throughput or conversion-quality guarantees.

Trade-offs & Limitations

Directly embedding Docling avoids a network hop and a separately operated service, which is attractive for a single Python application. Docling Serve pays that overhead in exchange for a shared HTTP contract and independent deployment for conversion. Compared with a managed conversion API, self-hosting gives operators control over the runtime and document-processing location, while moving hardware planning, upgrades, and monitoring onto their team.

Distribution cost can matter before the first request: the base amd64 image is listed at 8.7 GB, and the locally built ROCm 10.1 image is around 10 GB. Those figures affect pulls and rollout time; they do not predict RAM or VRAM use. Size memory and throughput against actual models, document mix, and concurrency. The service is MIT-licensed; separately verify the terms of any dependencies and model weights you distribute.

Hardware & Deployment Guide

For local evaluation, install with pip install docling-serve, then run docling-serve run --enable-ui. The container quickstart uses podman run -p 5001:5001 -e DOCLING_SERVE_ENABLE_UI=1 quay.io/docling-project/docling-serve. Use a CPU image to evaluate without a GPU runtime, or match the CUDA image to the host's GPU runtime. CUDA images provide explicit release tags and main, but no latest; pin a release for repeatable rollouts. The ROCm targets require local builds.

For production, validate model artifact availability and document-source connectivity separately. Self-hosting does not make conversion of remote URLs work offline; restricted deployments need reachable sources and locally available artifacts. Benchmark cold starts and sustained concurrency before sizing workers. The v1.39.0–v1.41.0 releases changed pipeline policy, callback controls, idle model behavior, and the default VLM preset, so test configuration and output compatibility before rolling forward.

API contract: Stable v1 HTTP API; POST /v1/convert/source accepts JSON with an HTTP document source.
Pipeline policy: v1.39.0 adds DOCLING_SERVE_ALLOWED_PIPELINES and DOCLING_SERVE_DEFAULT_PIPELINE.
Model lifecycle: v1.40.0 adds idle local-model unloading and allocator-cache release.
Callback policy: v1.40.0 adds settings to disable callbacks or limit them per request.
VLM preset: v1.41.0 makes Granite-Docling v2 the default VLM preset.
Hardware packaging: CPU and CUDA 12.8/13.0 images are published; ROCm 6.3 and ROCm 10.1 gfx1151 targets require local builds.
Best For

Teams that need a shared, self-hosted document-conversion endpoint in front of an existing ingestion and retrieval stack, with control over the conversion runtime.

Skip If

You need a turnkey RAG database, already convert documents inside a single Python application, or cannot operate a model runtime and its container images.

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

Quick Start & Installation

DockerSelf-HostedAPI
# Using the python package
pip install docling-serve
docling-serve run --enable-ui

# Using container images, e.g. with Podman
podman run -p 5001:5001 -e DOCLING_SERVE_ENABLE_UI=1 quay.io/docling-project/docling-serve

Comparison vs. Top RAG, Data & Memory Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
docling-serve ★1.9k+10PythonMITSelf-hosted Docling API for document conversion in RAG pipelines
markitdown199.7k+950PythonMITPython library and CLI that turn mixed-format documents into Markdown for RAG in
Scrapling108k+1.5kPythonBSD-3-ClausePython HTTP and browser crawlers that turn websites into RAG-ready Markdown
mem070k+509PythonApache-2.0A vector-backed memory layer for AI agents that need to recall past conversation

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

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

Frequently Asked Questions about docling-serve

How does Docling Serve fit into an existing RAG pipeline?

Run it as a separate HTTP service. Submit a JSON request with an HTTP document source to POST /v1/convert/source, then pass the conversion result to your ingestion pipeline. Keep embedding, indexing, and retrieval in separate components; Docling Serve is the conversion layer.

Is a GPU required, and how should we size the service?

A CPU-specific image is available, so a GPU is not a blanket requirement. There is no fixed VRAM figure to size against: test the selected pipeline and model with representative documents and target concurrency, measuring peak RAM or VRAM, cold-start time, and throughput. Idle-model unloading in v1.40.0 addresses idle retention, not peak demand during active conversion.

Can we self-host it for commercial or sensitive workloads?

The MIT license permits commercial use and self-hosting, subject to its notice requirements. Review the terms for bundled dependencies and model weights separately. Self-hosting controls where the service runs; verify outbound access and document handling against your own requirements before processing sensitive data.

When is it preferable to direct Docling integration or a managed API?

Use Docling directly if conversion belongs inside one Python application and you want to avoid a separate service and network hop. Use Docling Serve when multiple clients need a shared HTTP interface or when conversion needs an independent deployment lifecycle. Choose a managed conversion API instead if operating the model runtime is the larger burden and external processing is acceptable.

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