Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

docling-graph

Latest version: v1.10.0

Overview

Last scanned
3 Dec 2026
Published
3 Dec 2026
PyPI package Publisher: ayoub-ibm
1,003 Stars
108 Forks
2 Versions
3.1K Downloads
Python Repo language

Scan summary

docling-graph was last scanned on 3 Dec 2026 at version 1.10.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 2 versions; the latest was published on 3 Dec 2026.
  • Findings: No rules fired in version 1.10.0.
  • Downloads: 3,123 downloads.

Versions

2 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.10.0 LATEST 3 Dec 2026 No rules fired
1.9.2 8 Nov 2026 No rules fired

No rules fired in 1.10.0

Findings

Findings for v1.10.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.10.0; other versions have their own rules, not their own score.

Known vulnerabilities

1 CVE · last 14 May 2026

0 CRITICAL 0 HIGH 1 MEDIUM 0 LOW

Versions

  • ≥ 1.5.1
  • < 1.5.1 1 MEDIUM

Vulnerabilities

  • CVE-2026-44520 Medium 14 May 2026 docling-graph has SSRF via Missing Internal IP Validation in URLInputHandler Fixed in 1.5.1

README

The publisher’s own README, as collected from the registry.

Docling Graph

Docs PyPI version Python 3.10 | 3.11 | 3.12 uv Ruff License MIT Pydantic v2 Docling NetworkX Typer Rich vLLM Ollama LF AI & Data

Docling-Graph turns documents into validated Pydantic objects, then builds a directed knowledge graph with explicit semantic relationships.

This transformation enables high-precision use cases in chemistry, finance, and legal domains, where AI must capture exact entity connections (compounds and reactions, instruments and dependencies, properties and measurements) rather than rely on approximate text embeddings.

This toolkit supports two extraction paths: local VLM extraction via Docling, and LLM-based extraction routed through LiteLLM for local runtimes (vLLM, Ollama) and API providers (OpenAI, Gemini, IBM watsonx, Mistral and more), all orchestrated through a flexible, config-driven pipeline.

Key Capabilities

Latest Changes
  • 🪶 Lightweight install: No PyTorch by default. Local document conversion is available via docling extra.

  • ✨ Reliable dense extraction: Fill recovery preserves failed instances, fixes parent-child links, and more.

  • 🚀 Merging at scale: Merge thousands of graphs, batched Cypher export and scalable alias detection.

Quick Start

Requirements
  • Python 3.10 or higher
Installation
Lightweight installation (recommended)

If your documents are already converted into a supported format (DoclingDocument, DocLang, Markdown, or plain text), are HTML pages or Word, PowerPoint and Excel files, or you use a remote docling-serve instance for document conversion, install the base package:

pip install docling-graph

This avoids installing PyTorch and Docling conversion models, keeping the installation lightweight (approximately 500 MB instead of several GB).

Full installation (local document conversion)

To process PDFs and images locally, which needs Docling's layout, OCR and table models, install the optional Docling dependencies:

pip install "docling-graph[docling]"

This includes the Docling stack required for local document conversion, along with LiteLLM support for local and remote LLM providers.

Optional VLM support

To enable Vision-Language Model (VLM) capabilities for document processing, install the additional vlm extra:

pip install "docling-graph[vlm]"
Remote document conversion

Alternatively, you can process PDFs and images using a remote docling-serve instance without installing the full Docling stack locally.

For example:

docling-graph convert doc.pdf --docling-serve-url http://localhost:5001 ...

[!NOTE] Upgrading from v1.9 or earlier?

Starting with this version, Docling is an optional dependency. The base installation reads pre-converted documents (DoclingDocument, DocLang, Markdown, or plain text), HTML, and Word, PowerPoint and Excel files.

To process PDFs or images, install docling-graph[docling] or configure a remote docling-serve instance. Attempting local conversion without either configuration raises a ConfigurationError.

For comprehensive installation instructions, including all available optional extras and GPU configuration, see the Installation Guide.

API Key Setup (Remote Inference)

Copy .env.example to .env and fill in the values for the provider(s) you use:

cp .env.example .env

See API Keys Setup for provider-specific instructions (including Amazon Bedrock's AWS credential chain).

Basic Usage
CLI
# Initialize configuration
docling-graph init

# Convert document from URL (each line except the last must end with \)
docling-graph convert "https://arxiv.org/pdf/2207.02720" \
    --template "docs.examples.templates.rheology_research.ScholarlyRheologyPaper" \
    --processing-mode "many-to-one" \
    --extraction-contract "dense" \
    --debug

# Visualize results
docling-graph inspect outputs

# Merge the graphs of several runs into one
docling-graph merge outputs/run_a outputs/run_b -o merged/
Python API - Default Behavior
from docling_graph import run_pipeline, PipelineContext
from docs.examples.templates.rheology_research import ScholarlyRheologyPaper

# Create configuration
config = {
    "source": "https://arxiv.org/pdf/2207.02720",
    "template": ScholarlyRheologyPaper,
    "backend": "llm",
    "inference": "remote",
    "processing_mode": "many-to-one",
    "extraction_contract": "auto",
    "provider_override": "mistral",
    "model_override": "mistral-medium-latest",
    "structured_output": True,  # default
    "use_chunking": True,
}

# Run pipeline - returns data directly, no files written to disk
context: PipelineContext = run_pipeline(config)

# Access results
graph = context.knowledge_graph
models = context.extracted_models
metadata = context.graph_metadata

print(f"Extracted {len(models)} model(s)")
print(f"Graph: {graph.number_of_nodes()} nodes, {graph.number_of_edges()} edges")

Every node above also carries a deterministic __provenance__ attribute by default (provenance="standard"), pointing back to the source chunk and page it was extracted from — no extra LLM calls involved. See Data Grounding & Provenance.

For debugging, use --debug with the CLI to save intermediate artifacts to disk; see Trace Data & Debugging. For more examples, see Examples.

Pydantic Templates

Templates define both the extraction schema and the resulting graph structure.

from pydantic import BaseModel, Field
from docling_graph.utils import edge

class Person(BaseModel):
    """Person entity with stable ID."""
    model_config = {
        'is_entity': True,
        'graph_id_fields': ['last_name', 'date_of_birth']
    }

    first_name: str = Field(description="Person's first name")
    last_name: str = Field(description="Person's last name")
    date_of_birth: str = Field(description="Date of birth (YYYY-MM-DD)")

class Organization(BaseModel):
    """Organization entity."""
    model_config = {'is_entity': True}

    name: str = Field(description="Organization name")
    employees: list[Person] = edge("EMPLOYS", description="List of employees")
Generating a template from documents

Instead of writing the template by hand, you can induce one from a few example documents:

docling-graph template from-docs invoice1.pdf invoice2.pdf \
    --output templates/invoices.py \
    --name InvoiceDocument \
    --trial-run

The documents are converted with Docling, then LLM passes propose classes, fields, and relationships as structured data — a deterministic renderer turns that into the Python module, so no LLM ever writes code. Candidates are filtered by deterministic gates (identity examples, enum members and evidence quotes must appear verbatim in the source) and merged across documents, which share one vocabulary so the same concept gets the same name everywhere. --trial-run then runs a real extraction on the first document and prints an advisory quality report.

Each generator also writes an editable SPEC YAML next to the template (templates/invoices.spec.yaml). Rename an edge or flip an entity to a component with a one-line YAML edit and re-render, rather than hand-patching generated code:

docling-graph template from-spec templates/invoices.spec.yaml -o templates/invoices.py

Templates can also be compiled from an existing ontology — OWL/RDFS/SKOS, LinkML, or JSON Schema — with no LLM involved at all (needs the templategen extra: pip install 'docling-graph[templategen]'). Any template, generated or hand-written, can be checked against the rulebook:

docling-graph template from-ontology schema.ttl --root ex:InsurancePolicy -o templates/policy.py
docling-graph template lint templates.invoices.InvoiceDocument

For complete guidance, see:

Documentation

Comprehensive documentation can be found on Docling Graph's Page.

Documentation Structure

The documentation follows the docling-graph pipeline stages:

  1. Introduction - Overview and core concepts
  2. Installation - Setup and environment configuration
  3. Schema Definition - Creating Pydantic templates
  4. Pipeline Configuration - Configuring the extraction pipeline
  5. Extraction Process - Document conversion and extraction
  6. Graph Management - Converting, grounding, exporting, and visualizing graphs
  7. CLI Reference - Command-line interface guide
  8. Python API - Programmatic usage
  9. Examples - Working code examples
  10. Advanced Topics - Performance, testing, error handling
  11. API Reference - Detailed API documentation
  12. Community - Contributing and development guide

Contributing

We welcome contributions! Please see:

Development Setup
# Clone and setup
git clone https://github.com/docling-project/docling-graph
cd docling-graph

# Install with dev dependencies
uv sync --all-extras --dev

# Run Execute pre-commit checks
uv run pre-commit run --all-files

License

MIT License - see LICENSE for details.

Acknowledgments

Docling Graph builds on outstanding open-source projects:

  • Docling - document conversion and VLM extraction
  • Pydantic - schema definition and validation
  • NetworkX - graph construction and analysis
  • LiteLLM - unified LLM provider interface
  • Cytoscape - interactive graph visualization

IBM ❤️ Open Source AI

Docling Graph has been brought to you by IBM.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases docling-graph

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Frame 2085668439 (1)
Group 1261154229