docling-project/docling-serve
Self-hosted Docling API for document conversion in RAG pipelines
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & 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.
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.
You need a turnkey RAG database, already convert documents inside a single Python application, or cannot operate a model runtime and its container images.
Quick Start & Installation
# 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 →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| docling-serve ★ | 1.9k | +10 | Python | MIT | Self-hosted Docling API for document conversion in RAG pipelines |
| markitdown | 199.7k | +950 | Python | MIT | Python library and CLI that turn mixed-format documents into Markdown for RAG in |
| Scrapling | 108k | +1.5k | Python | BSD-3-Clause | Python HTTP and browser crawlers that turn websites into RAG-ready Markdown |
| mem0 | 70k | +509 | Python | Apache-2.0 | A 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.
curl -sL https://repoforai.com/repo/docling-project/docling-serve.md
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?
Is a GPU required, and how should we size the service?
Can we self-host it for commercial or sensitive workloads?
When is it preferable to direct Docling integration or a managed API?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
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