Skip to main content

Docling pipelines

PyPI version Python 3.12 uv Ruff License MIT

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, and web pages
  • 📄 Document extraction — PDF, DOCX, HTML, images, and more via Docling, with 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 storage — write to OpenSearch or Milvus
  • 🔀 DAG-based flows — define pipelines as JSON with automatic dependency resolution and parallel execution
  • 🔌 Extensible — load custom operators from Python packages, local paths, or S3 without modifying core code
  • 🖥️ Multiple interfaces — CLI, Python API (DocpipeFlowManager), and REST API (FastAPI)

Installation

pip install docling-pipelines

Requires Python 3.12. Works on macOS and Linux (x86_64 and arm64).

OCR Installation

RapidOCR is included in the default PyPI installation and works out of the box. 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:

docling-pipelines --list-operators

2. Python API

from docpipe.lib.docpipe_flow_manager import DocpipeFlowManager

manager = DocpipeFlowManager(flow_file="path/to/flow.json")
result = manager.execute()

Log verbosity is controlled via DS_LOG_LEVEL (DEBUG, INFO, WARNING).

Documentation

Check out the full documentation for installation, flow authoring, operator reference, and more:

Available Operators

Category Operators
Ingest Local Filesystem & Remote Source Ingest (ingest_source) — filesystem, S3, IBM COS, SharePoint, OneDrive, Google Drive, Box, 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
Storage Document Set (document_set) — DuckDB-backed document collections, Storage Output (storage_output) — write pipeline output to filesystem, S3, IBM COS, and more

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

docling_pipelines-1.0.0.tar.gz (4.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

docling_pipelines-1.0.0-py3-none-any.whl (1.4 MB view details)

Uploaded Python 3

File details

Details for the file docling_pipelines-1.0.0.tar.gz.

File metadata

  • Download URL: docling_pipelines-1.0.0.tar.gz
  • Upload date:
  • Size: 4.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for docling_pipelines-1.0.0.tar.gz
Algorithm Hash digest
SHA256 836c7c75cc84976ebb6188e711e6e28317e9cb19480ed1784d4a5e7114fea2f0
MD5 a2525f398c28f94716db7eb7c8e5c9df
BLAKE2b-256 00a58cdaaad112d382528c0b8238621a885f6af635a66b840445d8eb3a656876

See more details on using hashes here.

Provenance

The following attestation bundles were made for docling_pipelines-1.0.0.tar.gz:

Publisher: pypi.yml on IBM/docling-pipelines

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file docling_pipelines-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for docling_pipelines-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b3d49efb2a6945602581beef63ab3bb5524410535aab42776e64a7d93d1822fd
MD5 1dc9579c972029df97b8974c7fa1b9b9
BLAKE2b-256 1a5147966e9f9f2294f6b23f853be11fa531d67daada742d313fa1f43ea25538

See more details on using hashes here.

Provenance

The following attestation bundles were made for docling_pipelines-1.0.0-py3-none-any.whl:

Publisher: pypi.yml on IBM/docling-pipelines

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page