docling
Use Docling to convert, parse, configure, extract, chunk, serve, and maintain document-processing workflows across Python APIs, CLI commands, optional pipelines, and repository edits.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- docling
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Use Docling to convert, parse, configure, extract, chunk, serve, and maintain document-processing workflows across Python APIs, CLI commands, optional pipelines, and repository edits.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/install-and-environment.md3.1 KB
- 参考文档references/repo-provenance.md2.0 KB
- 参考文档references/repo-routing-metadata.json492 B
- 参考文档references/troubleshooting.md3.2 KB
- 脚本scripts/check_docling_environment.py2.9 KB
03 SKILL.md 正文
Docling
Use this skill when a task involves Docling, the Python SDK and CLI for converting PDFs, Office documents, HTML, Markdown, images, audio/video, XML, CSV, and other sources into DoclingDocument for downstream AI workflows.
Start Here
- Read
references/install-and-environment.mdwhen choosingdoclingvsdocling-slim, optional extras, Python versions, model artifacts, or safe environment checks. - Read
references/repo-provenance.mdbefore deciding whether this skill matches a current checkout or should be refreshed. - Read
references/troubleshooting.mdfor cross-cutting install/import, optional dependency, model download, CLI/API, remote-service, and repository-edit failures. - Use the sub-skill route map below; each sub-skill owns its nearby references and scripts.
Route Map
| User task | Use sub-skill | Why |
|---|---|---|
| Convert a local file, URL, binary stream, or in-memory Markdown/HTML/DocLang string with Python | sub-skills/conversion/SKILL.md |
Owns DocumentConverter, convert, convert_all, convert_string, DocumentStream, limits, headers, and conversion failures. |
Build or explain docling local CLI commands and supported formats |
sub-skills/cli-and-formats/SKILL.md |
Owns docling convert, --from, --to, output directories, image export/fetch modes, and command construction. |
| Tune the standard PDF pipeline, OCR, table structure, accelerators, artifacts, and option models | sub-skills/pipeline-configuration/SKILL.md |
Owns PdfPipelineOptions, OCR/table options, artifacts_path, AcceleratorOptions, and option validation. |
Export, serialize, chunk, or post-process an existing DoclingDocument |
sub-skills/document-outputs/SKILL.md |
Owns Markdown/JSON/YAML/HTML/Text/DocTags/WebVTT exports, image modes, table extraction, and RAG chunking. |
| Use VLM, ASR/audio-video, enrichments, advanced model backends, GPU/MLX, or offline model prefetch | sub-skills/advanced-pipelines/SKILL.md |
Owns VlmPipeline, AsrPipeline, enrichment flags, model catalog decisions, optional extras, and no-download preflights. |
Call a running docling-serve endpoint or use docling convert-remote/service client SDK |
sub-skills/remote-service-client/SKILL.md |
Owns service URL/API key handling, remote CLI, sync/async client, batches, jobs, chunk endpoints, and network-safe checks. |
| Extract structured fields from documents | sub-skills/extraction/SKILL.md |
Owns DocumentExtractor, extraction templates/options/results, and VLM extraction caveats. |
| Modify the Docling repository itself | sub-skills/repo-maintenance/SKILL.md |
Owns package layout, extras, CLI/docs generation, tests, validation, and repository-specific agent rules. |
Public Package Facts
- Install the full user package with
pip install doclingfor typical users; installdocling-slimwith extras only when intentionally composing a smaller environment. - Python support in this snapshot is
>=3.10,<4.0. - The
doclingCLI exposes localconvertbehavior and remoteconvert-remotebehavior; baredocling SOURCEroutes to local conversion. docling-tools models downloadprefetches model artifacts for offline/local use, but it can download large files; do not run it unless the user wants model downloads.- Core Python APIs include
DocumentConverter,DocumentExtractor,InputFormat,OutputFormat, pipeline option classes,HybridChunker, andDoclingServiceClient.
Safety Defaults
- Do not run model downloads, VLM/ASR inference, remote service calls, network document fetches, or GPU-heavy examples unless the user asks or the workflow explicitly requires them.
- Prefer no-network helpers first: command builders, config preflights, import checks,
--help, and tiny local fixtures. - Treat original repository docs, examples, tests, and scripts as evidence only; this skill's runtime instructions and helpers are bundled under this directory.
- For remote model APIs inside a local pipeline, require
enable_remote_services=True; for docling-serve conversion, route toremote-service-client. - For repository code changes, obey
AGENTS.md, run focused tests for touched behavior, and runmake validatebefore considering the change complete when feasible.
Bundled Shared Helpers
scripts/check_docling_environment.pychecks package importability, CLI availability, optional modules, and common external binaries without converting documents or downloading models.
Common First Moves
- Python conversion: route to
conversion, then usedocument-outputsif the user needs Markdown/JSON/HTML/chunking/table files. - CLI conversion: route to
cli-and-formats, then usepipeline-configurationfor OCR/table/model flags oradvanced-pipelinesfor VLM/ASR/enrichment choices. - Remote service: route directly to
remote-service-client; do not upload documents during preflight unless the user authorizes a live service call. - Current-checkout edits: route to
repo-maintenance; do not use public runtime examples as a substitute for repository tests.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).