Skip to main content

Docling LangChain integration

Project description

Docling LangChain integration

PyPI version PyPI - Python Version uv Code style: black Imports: isort Pydantic v2 pre-commit License MIT

A Docling integration for LangChain.

Installation

Simply install langchain-docling from your package manager, e.g. pip:

pip install langchain-docling

Development setup

To develop for Docling LangChain, you need Python 3.10 through 3.14 and uv. You can then install from your local clone's root directory:

uv sync

Usage

Basic usage

Basic usage of DoclingLoader looks as follows:

from langchain_docling import DoclingLoader

FILE_PATH = ["https://arxiv.org/pdf/2408.09869"]  # Docling Technical Report

loader = DoclingLoader(file_path=FILE_PATH)
docs = loader.load()

Advanced usage

When initializing a DoclingLoader, you can use the following parameters:

  • file_path: source as single str (URL or local file) or iterable thereof
  • converter (optional): any specific Docling converter instance to use
  • convert_kwargs (optional): any specific kwargs for conversion execution
  • export_type (optional): export mode to use: ExportType.DOC_CHUNKS (default) or ExportType.MARKDOWN
  • md_export_kwargs (optional): any specific Markdown export kwargs (for Markdown mode)
  • chunker (optional): any specific Docling chunker instance to use (for doc-chunk mode)
  • meta_extractor (optional): any specific metadata extractor to use

Docs and examples

For more details and usage examples, check out this page.

Project details


Download files

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

Source Distribution

langchain_docling-2.0.0.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

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

langchain_docling-2.0.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file langchain_docling-2.0.0.tar.gz.

File metadata

  • Download URL: langchain_docling-2.0.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for langchain_docling-2.0.0.tar.gz
Algorithm Hash digest
SHA256 7bc7c93a6272114b6dd307c6033e2a62e843906afdd691a0d87246f1a1a154dd
MD5 c73fcf415591e74328fbaa330f03dfae
BLAKE2b-256 8ee0601080445d096cb0e6ede7e1c30229803a75da66a38d5346a0836a8defea

See more details on using hashes here.

Provenance

The following attestation bundles were made for langchain_docling-2.0.0.tar.gz:

Publisher: pypi.yml on docling-project/docling-langchain

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

File details

Details for the file langchain_docling-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_docling-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cb08ddf66dfc40310c8cbffef23e52e325e4d43317e23426202640aae395faf1
MD5 8ed1589276f9db50e0904795191ee4a2
BLAKE2b-256 9e7189e74b89e2abcc0f345e13c3e637dc9d5f56f24dab27659063282147b0cd

See more details on using hashes here.

Provenance

The following attestation bundles were made for langchain_docling-2.0.0-py3-none-any.whl:

Publisher: pypi.yml on docling-project/docling-langchain

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

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page