Structured Field Extraction
Invoices, purchase orders, delivery notes, forms, and statements read into the exact fields your system expects, validated against a schema so a malformed result is caught before it is written.
Baaz builds document extraction that returns structured, validated data instead of a wall of text. Vision language models read the page as a page, so tables, handwriting, and mixed layouts survive, with a schema, a confidence threshold, and a human review queue around the model.
Each of these ships with a schema, a confidence policy, and a review path, because extraction without those is a demo.
Invoices, purchase orders, delivery notes, forms, and statements read into the exact fields your system expects, validated against a schema so a malformed result is caught before it is written.
Line items with quantities, rates, and totals pulled out as rows. Tables that span pages, merged cells, and inconsistent column widths are the usual reason naive extraction produces plausible nonsense.
Filled forms, delivery slips, annotations, and ledgers. Legible handwriting is now well within reach of vision models. Poor handwriting is not, so the review queue is designed around that reality.
Identify what a document is before extracting from it, so an invoice, a credit note, and a packing list each follow the right path through your workflow.
KYC documents, licences, and certificates with field extraction plus checks on expiry and completeness, built for environments where the images cannot leave your network.
A queue where low-confidence extractions land with the source image beside the proposed values, so a person corrects instead of retyping, and corrections feed the next evaluation round.
The recognition engines, validation layers, and review tooling we use to turn a scan into a record your systems can trust.
Fast and predictable on fixed-layout, clean documents.
Reading the page as a page, for tables, handwriting and mixed layouts.
Structure before content: what kind of document, and where things sit on it.
The layer that stops a malformed extraction reaching your database.
Where uncertain extractions go, and how corrections come back.
Delivering records into the systems that use them.
Classical OCR is not obsolete and vision models are not a universal upgrade. The document decides.
If every document has the same template and the scans are clean, classical OCR with zonal rules is faster, cheaper, and more predictable than any model. Do not over-engineer this case.
Varying suppliers, multi-column pages, and tables that span pages are where character-level OCR breaks down and reading the page as a whole wins clearly.
Any handwritten field pushes you to vision models, with the caveat that published accuracy for handwriting varies enormously by document and legibility, so your own sample is the only trustworthy test.
When extracted values post to finance or compliance records, a confident wrong answer costs more than a flagged uncertain one. That argues for a strict schema, a confidence threshold, and abstention over a guess.
Collect a real sample across every source, including the ugly scans people apologise for. The messy tail decides the architecture, and a clean sample hides it.
We build the ERP and finance systems these documents feed, so extraction posts into the system of record with an audit trail behind it.
The output contract is defined before any model is chosen, so extraction is validated against a concrete contract.
A field the system cannot read comes back empty and flagged. A plausible guess that posts to a ledger is the most expensive failure in document automation.
We evaluate on the worst of your real backlog, because published accuracy figures vary wildly by document type and none of them describe your scans.
Nothing reaches full automation on day one, so the human path is designed as a first-class surface from the start.
Invoices, KYC files, and medical forms often cannot be sent to a hosted API. Self-hosted models let the documents stay on your infrastructure.
Documents are frequently the most sensitive data a business holds, so deployment follows your compliance boundary. Because the models we use are open weight, extraction can run entirely on your own infrastructure.
Documents are processed inside your account and never reach a third-party API.
For invoices, KYC files, and medical records that cannot leave your network.
Extraction runs with no outbound connectivity, including any model tuning.
We operate and monitor the pipeline under your terms, with an audit trail you own.
Years of scanned history processed in bulk, with the review queue sized to match.
Originals and extracted records kept exactly as long as your policy says.
Classical OCR recognises characters and returns text, discarding most of the layout. That is why it concatenates adjacent columns on a multi-column page into a single incoherent string. Document vision reads the page as a whole, keeping structure, so tables, forms, and mixed layouts come back as fields and rows your code can consume directly.
Not everywhere. On fixed-layout clean scans, classical OCR with zonal rules is faster, cheaper, and more predictable, and reaching for a model there is over-engineering. Vision models win clearly on varying layouts, tables that span pages, and handwriting. Many production pipelines use both and route by document type.
Legible handwriting is now handled well by vision models, and poor handwriting still is not. Published figures vary enormously, and one study testing several OCR-free models found accuracy ranging from the low forties to the high sixties, while vendor pages quote far higher. Nothing in that range describes your documents, so we test on your own sample and design the review queue around whatever the real rate turns out to be.
Three things working together. The output is validated against a strict schema so malformed results are rejected, the model is trained or prompted to return an explicit empty value for a field it cannot find, and anything below the confidence threshold routes to human review instead of posting. Cross-field checks catch the rest, such as line items that do not sum to the stated total.
On a narrow document type with consistent quality, a high automation rate is realistic. Across a messy real-world mix it is not, and teams that target it tend to get there by raising thresholds until wrong values post silently. We aim instead for a high automation rate on the documents the system handles confidently, with a review queue that stays small and a measured automation rate you can watch.
Yes. Because we work with open-weight models, both extraction and any fine-tuning can run inside your own cloud account or on your hardware, including fully air-gapped. For invoices, KYC files, and medical records that is often the deciding requirement, and it rules out hosted document APIs entirely.
Ready to scope this stack? Brief the Baaz squad or browse more services.