Structured data extraction in a production application
An operations pipeline extracts supplier, invoice number, currency, total, tax, and due date from emailed invoices. Gemini 2.5 Flash receives OCR text plus layout hints and must return one versioned JSON object.
Missing fields remain null. Ambiguous totals include candidate values and source spans. The pipeline validates types and arithmetic before accepting the record; failures go to repair or review.
