langchain-docling-2.0.0
توضیحات
Docling LangChain integration
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX :: Linux |
| نام فایل | langchain-docling-2.0.0 |
| نام | langchain-docling |
| نسخه کتابخانه | 2.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | ['Panos Vagenas <pva@zurich.ibm.com>, Michele Dolfi <dol@zurich.ibm.com>, Christoph Auer <cau@zurich.ibm.com>, Peter Staar <taa@zurich.ibm.com>'] |
| نویسنده | - |
| ایمیل نویسنده | Panos Vagenas <pva@zurich.ibm.com> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/langchain-docling/ |
| مجوز | - |
# Docling LangChain integration
[](https://pypi.org/project/langchain-docling/)
[](https://pypi.org/project/langchain-docling/)
[](https://github.com/astral-sh/uv)
[](https://github.com/psf/black)
[](https://pycqa.github.io/isort/)
[](https://pydantic.dev)
[](https://github.com/pre-commit/pre-commit)
[](https://opensource.org/licenses/MIT)
A [Docling](https://github.com/docling-project/docling) integration for
[LangChain](https://github.com/langchain-ai/langchain/).
## Installation
Simply install `langchain-docling` from your package manager, e.g. pip:
```bash
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:
```bash
uv sync
```
## Usage
### Basic usage
Basic usage of `DoclingLoader` looks as follows:
```python
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](https://docling-project.github.io/docling/integrations/langchain/).
نیازمندی
| مقدار | نام |
|---|---|
| - | langchain-core~=1.0 |
| - | docling~=2.26 |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| <4,>=3.10 | Python |
نحوه نصب
نصب پکیج whl langchain-docling-2.0.0:
pip install langchain-docling-2.0.0.whl
نصب پکیج tar.gz langchain-docling-2.0.0:
pip install langchain-docling-2.0.0.tar.gz