Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

docling

БесплатноБез исполняемых скриптовНе проверен

Python document processing library for parsing PDF, DOCX, and 10+ formats with advanced layout understanding, unified document representation, and AI…

enunoот enuno★ 17 звёзд на GitHub27 установок в других каталогах

Об этом скилле

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-docling package 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

  1. Document Converter: Orchestrates format-specific workflows
  2. Format Backends: Specialized parsers per format (PDF, DOCX, etc.)
  3. Processing Pipelines: Layout analysis, table extraction, OCR
  4. Docling Document: Unified document representation (Pydantic v2)
  5. 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
Полный SKILL.md на GitHub

Установить docling в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/README.md

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), без исполняемых скриптов.

Похожие скиллы

Сравнить docling с