The decision
A choice over document types, then extraction of the fields for that type: amount, due date and vendor for an invoice; parties and term for a contract. GLiNER2.5-Decide both decides and extracts, which suits this pipeline.
How to build it
- OCR or parse each upload to text.
- Classify the type. Below a threshold, send it to a person.
- Extract the type's fields, and validate them with simple rules (dates parse, amounts add up).
- Write the result to your database, keeping the source page and the confidences.
Make it better
Show reviewers only the fields with low confidence instead of the whole document. That is where the time savings are.