← AI GitHub

AI GitHub

Docling for structured document conversion

Extract document structure, reading order and tables for search or analysis.

Data and RetrievalPublished 2 min read

Key Takeaways

  • Docling represents parsed content in a document model.
  • Prepare sample files that reflect the layouts your app sees and pick an output format that preserves the needed structure.
  • Run a report with a two-column page and a table.
  • OCR and layout processing can need additional models and compute.

How it works

Docling represents parsed content in a document model. Its conversion pipeline can preserve relationships between text, tables and pages for downstream export or chunking.

What you need

Prepare sample files that reflect the layouts your app sees and pick an output format that preserves the needed structure. A document export and a chunking pipeline are separate choices.

What to try first

Run a report with a two-column page and a table. Compare reading order and table rows in the exported result with the original.

Compare captions with nearby figures and tables after conversion. Preserving the wording without that relationship can put important context in the wrong chunk.

Where to look for failures

OCR and layout processing can need additional models and compute. Inspect the document representation before deciding how to split it for retrieval.

Related Franklin pages

Compare converted output on a few documents with different structures. Choose according to the information downstream consumers need to recover, such as tables, source locations or heading boundaries.

For how recognizing characters fits into the larger document processing workflow, see Franklin’s glossary. Optical character recognition

Project documentation

Try it for your workflow

Explore the project’s documentation for setup and usage, or save this page to a collection for later.

Read the project documentation ↗