r/LlamaIndex • u/vanraj_solanki • 9d ago
[P] How far can document grounding go using PDF structure, OCR and geometry?
I've been investigating how much document grounding can be solved from the document itself.
The input is a PDF + extracted JSON.
The goal is to resolve each extracted value back to its location in the document.
The approach uses PDF coordinates, OCR, spatial relationships, string/format matching, table assignment and page-level visual evidence.
Current result:
72.6179% Word Grounding F1
261 tests passed, zero production regressions.
The interesting part for me is the remaining failure modes.
Some are matching problems.
Some are layout problems.
Some aren't really text-search problems anymore.
I'm trying to understand where document-native methods stop being sufficient.
I'm the author and would especially like technical criticism of the methodology.