docling
БесплатноБез исполняемых скриптовНе проверенPython document processing library for parsing PDF, DOCX, and 10+ formats with advanced layout understanding, unified document representation, and AI…
Об этом скилле
Docling - Document Processing for Gen AI
Overview
Docling is a powerful Python library developed by IBM Research that simplifies document processing for generative AI applications. With 48,400+ GitHub stars and 159 contributors, Docling excels at parsing diverse document formats—including advanced PDF understanding with layout analysis—and provides seamless integrations with AI frameworks like LangChain, LlamaIndex, and Model Context Protocol (MCP) servers.
Key Features
📄 Multi-Format Document Processing
- 12+ Input Formats: PDF, DOCX, XLSX, PPTX, HTML, Markdown, AsciiDoc, CSV, Images (PNG, JPEG, TIFF), USPTO XML, JATS XML, WebVTT
- Advanced PDF Understanding: Page layout analysis, reading order detection, table structure recognition, code block extraction, mathematical formula parsing, image classification
- Unified Document Representation: All formats parsed into consistent Docling Document structure
- 5+ Export Formats: Markdown, HTML, JSON (lossless), Plain Text, Doctags markup
🤖 AI Ecosystem Integration
- LangChain Official Extension:
langchain-doclingpackage with document loaders - LlamaIndex Integration: Docling Reader + Node Parser for RAG applications
- MCP Server: Model Context Protocol server for agentic applications
- Framework Support: Compatible with Crew AI, Haystack, and other AI frameworks
🚀 Production Features
- Local Execution: Run entirely offline for sensitive data (no remote service dependencies)
- OCR Support: Built-in optical character recognition for scanned documents
- Vision Language Models: VLM integration for enhanced understanding
- Audio/ASR Support: Transcription capabilities for audio formats
- Table Extraction: TableFormer with FAST/ACCURATE modes
- Code Detection: Automatic code block identification and preservation
Architecture
Document Processing Pipeline
Input Document → Format Detection → Backend Selection → Pipeline Execution → Docling Document
↓
[Export] → Markdown, HTML, JSON, Text
[Serialize] → Chunking, Embedding
Core Components
- Document Converter: Orchestrates format-specific workflows
- Format Backends: Specialized parsers per format (PDF, DOCX, etc.)
- Processing Pipelines: Layout analysis, table extraction, OCR
- Docling Document: Unified document representation (Pydantic v2)
- Serializers: Export to various formats with customization
Extensibility
- Base classes available for subclassing (custom backends, pipelines)
- Custom model integration (HuggingFace models)
- Configurable processing options per document type
Installation
Basic Installation
# Standard installation
pip install docling
# Verify installation
python -c "import docling; print(docling.__version__)"
Platform Support
- Operating Systems: macOS, Linux, Windows
- Architectures: x86_64, arm64
- Python: 3.9+ (Pydantic v2 requirement)
Dependencies
- Core: Pydantic v2, PyMuPDF (PDF processing)
- Optional: TensorFlow/PyTorch (for ML models), OpenCV (image processing)
- Auto-Downloaded: ML models (layout analysis, table extraction) on first use
Offline/Air-Gapped Installation
# Prefetch models
docling-tools models download
# Or specify artifacts path
export DOCLING_ARTIFACTS_PATH=/path/to/models
# Download custom HuggingFace models
docling-tools download-hf-repo --repo-id <model_id>
Use Cases
1. Basic Document Conversion
from docling.document_converter import DocumentConverter
# Initialize converter
converter = DocumentConverter()
# Convert document
result = converter.convert("document.pdf")
# Export to Markdown
markdown_content = result.document.export_to_markdown()
print(markdown_content)
# Export to HTML
html_content = result.document.export_to_html()
# Export to JSON (lossless)
json_data = result.document.export_to_dict()
2. Advanced PDF Processing
from docling.document_converter import DocumentConverter
from docling.datamodel.pipeline_options import (
PdfPipelineOptions,
TableFormerMode
)
# Configure PDF processing
pipeline_options = PdfPipelineOptions()
pipeline_options.do_table_structure = True
pipeline_options.table_structure_options.mode = TableFormerMode.ACCURATE
pipeline_options.do_ocr = True
# Initialize converter with options
converter = DocumentConverter(
pipeline_options=pipeline_options
)
# Convert with advanced features
result = converter.convert("complex_report.pdf")
# Access structured content
for table in result.document.tables:
print(f"Table: {table.to_markdown()}")
for figure in result.document.pictures:
print(f"Figure caption: {figure.caption}")
3. Batch Processing with Resource Limits
fro
Установить docling в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл docling?
Python document processing library for parsing PDF, DOCX, and 10+ formats with advanced layout understanding, unified document representation, and AI ecosystem integrations (LangChain, LlamaIndex, MCP server)
Как установить скилл docling?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл docling запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic