Day 15 / Daily GitHub Discovery / AI / LLMs

Docling

Convert complex office documents and PDFs into structured content for search and AI.

~18,000 stars · checked Sep 28, 2026
PythonPyTorchTransformersEasyOCRTesseract
Visit GitHub (opens in a new tab)

What it does

Docling parses PDFs, office documents, HTML, and images into a unified document model. It can preserve layout, reading order, tables, and formulas while exporting Markdown or structured data.

Why it’s interesting

Document structure matters to retrieval: preserving headings and tables gives downstream chunkers more context than plain text extraction. Local processing can also help with sensitive files.

Real-world use case

Convert research papers before indexing them in a RAG system; keep section headings and tables attached to the relevant chunks.

What I can learn

  • 01

    Layout analysis

    identify page regions and reading order.

  • 02

    Table recognition

    reconstruct rows, columns, and spanning cells.

  • 03

    Structured chunking

    split by document hierarchy instead of arbitrary character counts.

One thing to explore

Conversion pipeline

Follow the docling/pipeline implementation and connect it to the concepts above.

Explore the source (opens in a new tab)

10-Minute Challenge

Parse a PDF into Markdown

Before you start: Python 3 and a local PDF file. First-run model downloads can make this take longer than ten minutes.

  1. Install Docling in a Python environment.
  2. Run the script against a PDF you are allowed to process.
  3. Inspect the first Markdown output and compare a table or heading to the source PDF.
Terminal
pip install docling
Python
from docling.document_converter import DocumentConverter

result = DocumentConverter().convert("paper.pdf")print(result.document.export_to_markdown()[:1000])

Keep exploring

All repositories →