RAG and enterprise search
Retrieval with visual grounding
The problem
Flat text extraction destroys the two things retrieval depends on: where a passage sits in the document, and where it came from on the page. Chunks split mid-table and answers cannot be traced.
Why Docling
Every element and chunk keeps its page and bounding-box coordinates, so a retrieved passage points at the exact region on the page. You can highlight where an answer came from, not just cite a page number.
What it uses
- Reading order
- Structure-aware chunks
- Tables
- Figures
- Provenance
Path to production
- Batch processing
- Concurrency
- Managed queues
- Private deployment
from docling.document_converter import DocumentConverter
from docling.chunking import HybridChunker
doc = DocumentConverter().convert("report.pdf").document
for chunk in HybridChunker().chunk(doc):
embed(chunk.text, metadata={
"headings": chunk.meta.headings,
"page": chunk.meta.doc_items[0].prov[0].page_no,
})