# Repository Briefing: docling-project/docling-serve
> Source: https://repoforai.com/repo/docling-project/docling-serve (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/docling-project/docling-serve
- **Category**: RAG, Data & Memory (知识库 / 爬虫 / 记忆层)
- **Primary Language**: Python
- **License**: MIT
- **Engineering Health**: A+ (96/100 · Maintenance 35/35 · Adoption 21/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v1.41.0 (2026-12-01) — https://github.com/docling-project/docling-serve/releases
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: Docker, Self-Hosted, API
- **Momentum**: 1,948 ★ total (+0 24h / +10 7d) · 381 forks
- **When to Use**: 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.

## Overview
```text
### 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.
```

## Key Capabilities
```text
- 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.
```

## Quick Start / Clone
```bash
# 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
```
