# Repository Briefing: docling-project/docling-core
> Source: https://repoforai.com/repo/docling-project/docling-core (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/docling-project/docling-core
- **Category**: RAG, Data & Memory (知识库 / 爬虫 / 记忆层)
- **Primary Language**: Python
- **License**: MIT
- **Engineering Health**: A+ (95/100 · Maintenance 35/35 · Adoption 20/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v2.109.0 (2026-12-01) — https://github.com/docling-project/docling-core/releases
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: CLI
- **Momentum**: 308 ★ total (+1 24h / +4 7d) · 317 forks
- **When to Use**: Best for: Teams that already produce DoclingDocument objects and need a shared model for export, retrieval chunking, and corpus profiling. Skip if: You need raw-file conversion or a complete indexing and retrieval service out of the box, or you only need to split clean text.

## Overview
```text
### Architecture & Core Mechanics
Docling Core is an in-process Python library centered on DoclingDocument, a Pydantic model that defines the document schema and exposes an API for building documents. In a RAG pipeline, an upstream component supplies or constructs the structured document. Core then operates on that representation rather than requiring each downstream consumer to interpret the source file independently.

Serialization and chunking are distinct extension points with built-in implementations. The convenience export methods on DoclingDocument sit on top of the serialization API. This lets applications keep a common document model while choosing different output representations or chunking policies for different consumers.

### Key Capabilities & Differentiators
A DoclingDocument can be exported to Markdown or HTML via its helpers, or processed through the serialization API when the built-in representation does not fit. The chunking API includes a hybrid chunking example and supports custom implementations for downstream retrieval needs.

The profiling API works on single documents and collections. It reports on pages, tables, pictures, and text items, and provides deciles, histograms, and collection visualizations. Use these measurements to select representative test fixtures and identify structural outliers before tuning chunking; they are not retrieval quality metrics.

### Trade-offs & Limitations
Compared with splitting plain text or Markdown, retaining a structured model gives exporters and chunkers access to document structure instead of forcing them to infer it from flattened text. The cost is an extra schema boundary and a need to test custom transformations. If you need raw-file conversion, use full Docling upstream; if you already have clean text and need only simple splitting, a generic splitter introduces less integration work.

The MIT license permits commercial integration, subject to its notice requirements on redistribution. Local image access is a separate trust decision: references using a filesystem path or `file://` are not read by default and raise `ValueError` when loading is attempted. Leave that default in place for mixed-trust inputs; if trusted documents need local images, opt in per document rather than changing process-wide settings.

### Hardware & Deployment Guide
Install with `pip install docling-core` and import it into the Python application that performs document transformations. The development setup targets Python 3.10 through 3.15 and uses `uv sync --all-extras`. Runtime configuration is available through `DOCLINGCORE_` environment variables or `docling_core.utils.settings.settings`. Size the worker for document complexity, concurrent transformations, and any image or tokenizer loading rather than assuming a GPU or a fixed VRAM requirement.

v2.109.0 adds tokenizer loading from an artifacts path, useful for pre-staging tokenizer assets in controlled environments, and preserves WebVTT cues with misnested end tags. v2.108.0 adds TrackItem and DocLang support; v2.107.1 addresses WebVTT serialization for sub-millisecond cues and escaping in cue text and voice names. Test representative exports and chunk boundaries before upgrading a pinned production version.
```

## Key Capabilities
```text
- Data model: Pydantic-backed DoclingDocument provides a schema and an API for building structured documents.
- Serialization: Extensible serializers power the document helpers for Markdown and HTML export.
- Chunking: Built-in and extensible chunking APIs; v2.109.0 can load tokenizers from an artifacts path.
- Profiling: Inspect page, table, picture, and text-item statistics, with deciles, histograms, and collection visualizations.
- File access: Filesystem paths and file:// image references are blocked by default; trusted documents can opt in per document.
- Packaging: MIT-licensed Python library installed via pip, with runtime settings under the DOCLINGCORE_ prefix.
```

## Quick Start / Clone
```bash
pip install docling-core
```
