langchain-docling
Docling LangChain integration
What it is and what it does
langchain-docling bridges Docling, a document conversion and understanding library, with LangChain's document loading and processing ecosystem. It provides a `DoclingLoader` that can ingest documents from URLs or local files and convert them into LangChain-compatible document objects suitable for downstream language model tasks.
You can run document conversion locally (with the `local` extra, which includes AI runtimes like PyTorch) or remotely via Docling Serve, Managed Docling, or IBM watsonx. The loader supports multiple export modes (doc chunks or Markdown), custom chunking strategies, metadata extraction, and backend-specific conversion options. It's designed for developers building RAG pipelines, document analysis workflows, or AI-powered search systems that need reliable document ingestion.
Use it for:
- Build a RAG pipeline that ingests PDFs and technical documents into LangChain for semantic search and question-answering.
- Convert scanned documents or images to structured text using OCR, then feed them into language models for analysis.
- Process multiple document formats (PDF, DOCX, images) in bulk and export as Markdown for downstream NLP tasks.
- Integrate document conversion into a LangChain agent that needs to extract and reason over document content.
- Use a remote Docling service to offload heavy document processing while keeping your application lightweight.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Integrates Docling document conversion with LangChain, enabling you to load and process documents (PDFs, images, etc.) into LangChain-compatible formats for use in language model pipelines.
Yes. Active maintenance, no vulnerabilities, low install friction, and permissive MIT license make this a safe choice. Install it if you're building a LangChain application that needs to ingest and process documents—either locally (with the `local` extra) or via a remote Docling endpoint. The base install is lightweight; add the `local` extra only if you need local conversion.
Install
langchain-docling on PyPI
pip
pip install langchain-doclinguv
uv add langchain-doclingpoetry
poetry add langchain-doclingInstalling langchain-docling
Before you install
Low friction install with a pure Python wheel. Active maintenance as of 2026-08-14 with no known vulnerabilities. Requires Python 3.10–3.14; the base install pulls only langchain-core and docling-slim, but local document conversion requires the `local` extra with additional dependencies.
License in practice
MIT license permits commercial and private use with minimal restrictions; you may use, modify, and distribute this package freely provided you include the license notice.
Quickstart
pip install langchain-docling
from langchain_docling import DoclingLoader
loader = DoclingLoader(file_path=["https://arxiv.org/pdf/2408.09869"])
docs = loader.load()
Requires Python 3.10 or later. Local document conversion requires the `local` extra (`pip install "langchain-docling[local]"`); without it, you must use a remote Docling Serve or Managed Docling endpoint.
Verify before relying
- Whether the base install (without `local` extra) can convert documents locally or requires a remote service endpoint.
- Performance characteristics and throughput limits when processing large document batches.
- Supported document formats beyond PDF (e.g., DOCX, images, HTML).
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (<4,>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — langchain-core, docling-slim |
| Maintenance | actively maintained — 0 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 148,992/month — #11,009 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: langchain_docling-3.0.0-py3-none-any.whl
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
langchain-unstructuredIntegrates LangChain with Unstructured to…
permissive · top 15,000 on PyPI
docling-coreDocling Core defines the foundational…
permissive · top 5,000 on PyPI
doclingDocling parses diverse document formats—PDF,…
permissive · top 5,000 on PyPI
langchain-awsConnects LangChain applications to AWS services…
permissive · top 5,000 on PyPI
docling-slimDocling Slim is a lightweight, modular SDK for…
permissive · top 5,000 on PyPI
langchain-ollamaConnects LangChain applications to Ollama,…
permissive · top 5,000 on PyPI
langchain-openaiProvides LangChain integrations for OpenAI's…
permissive · top 1,000 on PyPI
langchain-communityProvides third-party integrations for LangChain…
permissive · top 1,000 on PyPI
langchain-xaiConnects xAI's language models to LangChain…
permissive · top 5,000 on PyPI
langchain-deepseekIntegrates DeepSeek language models into…
permissive · top 5,000 on PyPI