Skip to content

DS4SD/docling-langchain

Repository files navigation

Docling LangChain integration

PyPI version PyPI - Python Version Poetry 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

Usage

Basic usage 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()

For end-to-end usage samples check out the examples.