docling README

The project's README from github.com/docling-project/docling. As one markdown file: README.md.

Docling

Docling

DS4SD%2Fdocling | Trendshift

arXiv Docs PyPI version PyPI - Python Version uv Ruff Pydantic v2 prek License MIT PyPI Downloads Docling Actor Chat with Dosu Discord OpenSSF Best Practices LF AI & Data

What is Docling ?

Docling simplifies document processing by parsing diverse formats — including advanced PDF understanding — and providing seamless integrations with the generative AI ecosystem.

Features

What's new

Coming soon

Quickstart

1. Install

pip install docling

Note: Python 3.9 support was dropped in docling version 2.70.0. Please use Python 3.10 or higher.

Works on macOS, Linux and Windows environments for both x86_64 and arm64 architectures.

More detailed installation instructions are available in the docs.

2. Convert a document (CLI)

docling https://arxiv.org/pdf/2206.01062

This generates a .md file in the current directory containing structured document content.

You can also use 🥚GraniteDocling and other VLMs via Docling CLI:

docling --pipeline vlm --vlm-model granite_docling https://arxiv.org/pdf/2206.01062
from docling.document_converter import DocumentConverter

source = "https://arxiv.org/pdf/2408.09869"  # a document via a local path or URL
converter = DocumentConverter()
result = converter.convert(source)
print(result.document.export_to_markdown())  # output: "## Docling Technical Report[...]"

More advanced usage and configuration options.

Documentation

Check out Docling's documentation for details on installation, usage, concepts, recipes, extensions, and more.

Examples

Go hands-on with our examples, demonstrating how to address different application use cases with Docling.

Integrations

To further accelerate your AI application development, check out Docling's native integrations with popular frameworks and tools.

Get help and support

Please feel free to connect with us using the discussion section.

Technical report

For more details on Docling's inner workings, check out the Docling Technical Report.

Contributing

Please read Contributing to Docling for details.

References

If you use Docling in your projects, please consider citing the following:

@techreport{Docling,
  author = {Deep Search Team},
  month = {8},
  title = {Docling Technical Report},
  url = {https://arxiv.org/abs/2408.09869},
  eprint = {2408.09869},
  doi = {10.48550/arXiv.2408.09869},
  version = {1.0.0},
  year = {2024}
}

License

The Docling codebase is under MIT license. For individual model usage, please refer to the model licenses found in the original packages.

LF AI & Data

Docling is hosted as a project in the LF AI & Data Foundation.

IBM ❤️ Open Source AI

The project was started by the AI for knowledge team at IBM Research Zurich.

docling (docling-project/docling)

Searching Database…

69.1K ·GitHub
Что это?Docling разбирает документы разных форматов, таких как PDF, DOCX, PPTX, XLSX, HTML и другие, и превращает их в единое представление, готовое для конвейеров генеративного ИИ.
Это библиотека Python или инструмент командной строки?И то, и другое: Docling в первую очередь библиотека Python для использования в коде, но также включает простую утилиту командной строки для быстрых преобразований, необязательный API-сервер (docling-serve) и MCP-сервер, чтобы агенты могли вызывать его напрямую.
Как начать пользоваться?Установите пакет для Python, затем либо запустите утилиту командной строки, чтобы создать файл Markdown из документа, либо используйте Python API в своём коде для более сложной настройки.
Нужна ли конкретная версия Python?Да, Docling требует Python 3.10 или новее; поддержка Python 3.9 была прекращена в версии 2.70.0.
Одинаково ли работает в macOS, Linux и Windows?Да, поддерживаются macOS, Linux и Windows на архитектурах x86_64 и arm64, но нужна свежая версия Python, так как 3.9 больше не поддерживается.
Может ли Docling работать полностью офлайн с конфиденциальными документами?Да, поддерживается локальный запуск, поэтому чувствительные данные можно обрабатывать полностью в изолированных от интернета средах, без обращения к внешним сервисам.
Какие форматы файлов может преобразовывать Docling?Docling работает с PDF, DOCX, PPTX, XLSX, HTML, EPUB, Apple Pages, письмами (EML/MSG), изображениями, LaTeX, обычным текстом, а также с аудио (WAV/MP3) и видео (MP4/AVI/MOV/MKV/WebM).
Какие форматы экспорта он создаёт?Документы преобразуются в Markdown, HTML, WebVTT, DocTags или в JSON без потерь через единое представление 'DoclingDocument'.
Есть ли интеграция с AI-фреймворками, например LangChain?Да, Docling предлагает готовые к подключению интеграции с LangChain, LlamaIndex, Crew AI и Haystack для создания агентных ИИ-приложений.
Что такое GraniteDocling?Это одна из визуально-языковых моделей (VLM), поддерживаемых Docling для продвинутого анализа PDF и других документов; её можно выбрать прямо из командной строки.
Size
462.1 MB
Stars
69.1K
Age
2y
Commits · 90 Days