Docling pipelines
What is Docling pipelines?
Docling pipelines is an enterprise-grade document curation pipeline for Retrieval Augmented Generation (RAG) applications. It ingests data from unstructured sources, curates documents, and writes entities and vector embeddings to targets — enabling AI-ready pipelines at scale.
It connects to cloud document sources (S3, OneDrive, SharePoint, Google Drive, Box, and more) and extracts content and entities from PDF, DOCX, HTML, images, and other formats using Docling. Extracted content is curated for LLMs, converted into chunks and embeddings, and stored in a vector database such as Milvus or OpenSearch.
Features
- 📥 Multi-source ingestion — local filesystem, Amazon S3, IBM COS, SharePoint, OneDrive, Google Drive, Box, Dropbox, and web pages
- 📄 Document extraction — PDF, DOCX, HTML, images, and more via Docling, with configurable OCR engines, GPU acceleration, and optional VLM and ASR pipelines
- 🧠 Entity extraction — LLM-based extraction via LiteLLM (100+ providers), IBM watsonx.ai, or Docling templates
- ✂️ Chunking — Docling-native and semantic chunking strategies
- 🔢 Embeddings — vector embedding generation for any downstream vector store
- 🔍 Quality operators — language detection, readability scoring, PII/HAP detection, deduplication, redaction, SQL filtering, document classification, and ML enrichment
- 🗄️ Vector & cloud storage — write vectors to OpenSearch or Milvus (including container-free Milvus Lite), or export curated documents to filesystem, S3, IBM COS, SharePoint, OneDrive, and Google Drive
- 🔀 DAG-based flows & micro-batching — define pipelines as JSON with automatic dependency resolution, parallel micro-batching, and distributed execution via Prefect (thread pools, process pools, or Docker work pools)
- 🔄 Incremental processing — stateful delta runs (backed by Parquet or PostgreSQL) that track document changes, skip unchanged files, and optionally synchronize source deletions
- ⚡ Event-driven streaming — real-time Kafka event consumption with Schema Registry support and routing-key-to-flow mappings for automated create/update/delete triggers
- 🔐 Enterprise security & governance — HashiCorp Vault (
vault://) secret resolution, document ACL extraction and query-time enforcement, and OAuth2/OIDC + LDAP/JWT REST API authentication - 📊 Observability, lineage & reporting — OpenLineage event emission, OpenTelemetry distributed tracing and metrics, and automated per-run CSV job reports
- 🗂️ Asset management — organize pipelines and data with Projects, Document Libraries, Document Sets, and custom Document Class schemas (backed by DuckDB or PostgreSQL)
- 🔌 Extensible — load custom operators from Python packages, local paths, or S3 without modifying core code
- 🖥️ Multiple interfaces — CLI (
docling-pipelines,docling-pipelines-api), Python API (DocpipeFlowManager), REST API (FastAPI), and a built-in Documentation MCP server (docling-pipelines-docs-mcp) for AI coding agents - 🌐 Web UI (beta) — browser-based pipeline builder and run monitor; experimental and not yet recommended for production workloads
Installation
pip install docling-pipelines
Requires Python 3.12. Works on macOS and Linux (x86_64 and arm64).
Optional extras
Install optional capabilities as needed:
pip install "docling-pipelines[event-streaming]" # Kafka event consumer & Schema Registry
pip install "docling-pipelines[lineage]" # OpenLineage data lineage tracking
pip install "docling-pipelines[telemetry]" # OpenTelemetry tracing & metrics
pip install "docling-pipelines[presidio]" # Local Presidio PII detection provider
pip install "docling-pipelines[vlm_asr]" # Docling VLM and ASR pipelines
OCR Installation
RapidOCR is included in the default PyPI installation and works out of the box. Additional OCR extras (easyocr, tesserocr, ocrmac) are also available. For advanced setups, platform-specific extras, or other OCR backends, see the Extract Operator Guide.
Lightweight variant
For a lightweight version of docling-pipelines that excludes certain operator dependencies, see docs/guides/SLIM_VARIANT.md.
Quickstart
1. Run a flow (CLI)
docling-pipelines --flow-file path/to/flow.json
Validate without executing:
docling-pipelines --flow-file flow.json --validate
List all available operators or global configuration parameters:
docling-pipelines --list-operators
docling-pipelines --list-global-config
2. Python API
from docpipe import DocpipeFlowManager
manager = DocpipeFlowManager(flow_file="path/to/flow.json")
result = manager.execute()
Log verbosity is controlled via DS_LOG_LEVEL (DEBUG, INFO, WARNING).
3. REST API
Start the FastAPI server (and bundled UI at /ui):
docling-pipelines-api
# or with custom host/port:
uvicorn docpipe.api.main:app --host 0.0.0.0 --port 8080
Interactive OpenAPI documentation is available at http://localhost:8080/api/v1/docs.
4. Documentation MCP Server
Give AI coding assistants searchable access to the documentation corpus:
docling-pipelines-docs-mcp
UI (beta)
⚠️ Beta notice: The web UI is experimental and not production-ready. It is under active development and may change significantly between releases. For production workloads, use the CLI, Python API, or REST API.
A browser-based UI for building flows and monitoring runs is included in this repository under frontend/.
Docling pipelines includes a React + TypeScript frontend (IBM Carbon Design System) served by the FastAPI backend at /ui.
Development setup
Prerequisites: Node.js 22.15.1 (use nvm use in the frontend/ directory), npm. Node.js is also required to install the Python package (uv sync, uv pip install -e ., uv build), because the build hook compiles the frontend.
1. Start the backend:
uvicorn docpipe.api.main:app --reload --host 0.0.0.0 --port 8080
2. Start the frontend dev server (separate terminal):
cd frontend
nvm use
npm install
npm run dev
# UI available at http://localhost:3000
Production (bundled with the wheel)
The frontend is automatically built and bundled into the wheel during uv build. When node is available on PATH, the bundled Node.js BFF sidecar starts automatically alongside FastAPI. After installing:
uvicorn docpipe.api.main:app --host 0.0.0.0 --port 8080
# UI available at http://localhost:8080/ui
For full details see FRONTEND_BUILD_INTEGRATION.md and the Frontend README.
Documentation
Check out the full documentation for installation, flow authoring, operator reference, and more:
- Quick Start Guide — first pipeline in under 5 minutes
- Pipeline Setup Guide — complete setup with Ollama, OpenSearch, and flow examples
- Flow Authoring Format — declarative flow authoring
- Operator Reference — full parameter specs for all operators
- Global Configuration Reference — micro-batching, incremental processing, and Prefect settings
- REST API Server — endpoints, OAuth2/LDAP authentication, and ACL document retrieval
- Event Streaming Guide — Kafka event-driven execution and routing-key mappings
- Observability & Lineage — OpenTelemetry tracing, OpenLineage, and CSV Job Reports
- Vault Integration — HashiCorp Vault
vault://secret resolution - Deployment Guides — Docker Compose and OpenShift deployment
- Architecture — system design and distributed execution patterns
- Troubleshooting — common issues and solutions
Available Operators
| Category | Operators |
|---|---|
| Ingest | Local Filesystem & Remote Source Ingest (ingest_source) — filesystem, S3, IBM COS, SharePoint, OneDrive, Google Drive, Box, Dropbox, web |
| Extract | Document Extractor (extract_operator), ACL Extraction (acl_operator) |
| Functional | Chunking (chunker), Embeddings (embeddings), Branching Operator (branching), Merge Operator (merge), Document ID Hash (doc_id_hash), Entity Curation (entity_curation), No-op (noop) |
| Quality | Language Annotator (lang_detect), Readability Operator (readability), PII and HAP Annotator (pii_and_hap), Document Classifier (document_classifier), Annotation Filter (sql_filter), Redaction (redaction), De-duplicator (ededup), ML Text Enrichment (ml_enrichment), Document Quality (doc_quality) |
| VectorDB | Vector Database (vectordb) — OpenSearch, Milvus, and Milvus Lite |
| Storage | Document Set (document_set) — DuckDB/PostgreSQL-backed document collections, Storage Output (storage_output) — write pipeline output to filesystem, S3, IBM COS, SharePoint, OneDrive, and Google Drive |
For per-operator configuration guides, see Operator Configuration Guides.
Examples
Explore sample flows and DocpipeFlowManager examples for common pipeline patterns.
For interactive, hands-on tutorials, see the Jupyter notebook examples.
Contributing
Please read Contributing to Docling pipelines for development setup, code standards, testing requirements, and the pull request process.
License
The Docling pipelines codebase is under the MIT License.
Metadata
Release files for docling-pipelines 2.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| docling_pipelines-2.1.0.tar.gz | 6.3 MB | With provenance | Details for docling_pipelines-2.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| docling_pipelines-2.1.0-py3-none-any.whl | Python 3 | none | any | Details for docling_pipelines-2.1.0-py3-none-any.whl |
Total release size: 11.0 MB
Release files / docling_pipelines-2.1.0.tar.gz
| Download URL | docling_pipelines-2.1.0.tar.gz |
|---|---|
| Size | 6.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9841a2bbd292e98fa783d344221385b587b96ff1a4ddc5443d21629bec0d3938
|
|
BLAKE2b-256 checksum How to use checksums |
65aa39b917abcfd3756d55aeb024dbde8130dddc32bb6fad6b5a6136ae217767
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.
Transparency logRelease files / docling_pipelines-2.1.0-py3-none-any.whl
| Download URL | docling_pipelines-2.1.0-py3-none-any.whl |
|---|---|
| Size | 4.7 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bc5680ac44c6c4361587242ed9af8507a2d313db6563c78af13640811a88d5d7
|
|
BLAKE2b-256 checksum How to use checksums |
24a289901ba54c361d6d08706a7e5ae271682d794570eb3324ec47162e982a80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.
Transparency logSecurity for docling-pipelines 2.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for docling_pipelines-2.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.