Skip to main content Skip to main content

AI applications

Document extraction: define the fields before extracting them

The hard part of invoice extraction is not text recognition but the fact that the same field means different things in different sources. Extract faster with unclear definitions and you only produce errors faster.

English summary. The full project note is published in Chinese.

ClientTrading company with invoice and contract entry roles
Cycle6 weeks
ScopeDocument upload, field extraction, confirmation queue, export
DeliverablesField dictionary, template list, extraction service, review records
Acceptance50 sample documents checked field by field; missing and incorrect values both flagged

Three kinds of amount

An invoice may carry a net amount, tax and a gross total; a contract may have a contract value, a settled amount and an amount already paid; a discount may sit on its own line or already be folded into the unit price. We define each field by name, type, source, whether it is required, and what happens when it cannot be read.

Every result must trace back to the page

Each field keeps its position and a cropped image of the source area, so a reviewer can see the evidence in one click. The model proposes a candidate value; it does not decide. When several candidates exist, a rule selects one and records the source rather than silently overwriting.

Low confidence does not reach the ledger

Records below the threshold enter a confirmation queue and only continue after human review. Corrections are logged, so later statistics can separate model output from manual edits. Extracted values are not written directly into accounting or settlement tables; the confirmation step prevents later reversals.

Boundary

Coverage focuses on documents with stable layouts. New templates are tested on a small sample before being added to automatic extraction, and documents that change frequently keep a manual entry route.

Read the full note in Chinese

Does this resemble a problem you are facing?

Describe your current process and systems. We will give an initial view on scope and delivery order.