Skip to content

Bake-off on your invoices

Accuracy on synthetic invoices proves the software works, not that it reads your invoices. A bake-off measures it on a sample of your own invoices, scored against what your AP team actually posted.

  1. Invoices: 500 or more recent originals as received: PDFs, scans, phone photos, EDI or XML files and email attachments. Include the top suppliers by volume, utilities, multi-page invoices and credit memos. Do not clean them up.
  2. The AP export for the same invoices: one CSV from the ERP with a row per invoice (number, supplier, date, amount, currency, type, PO number, tax, freight). Oracle EBS, Workday and Tyler Munis exports work as they come.
  3. How files and rows connect: a column with each row’s file name, or file names that contain the invoice number.

Nothing leaves the agency’s environment. The kit runs on a laptop or VM the agency controls; only model calls go out.

Terminal window
export ANTHROPIC_API_KEY=...
pnpm bakeoff --dir /data/invoices --export /data/ap-export.csv --sample 500

The sample is stratified: top suppliers in proportion, with credit memos and non-PO invoices at their real share. The same seed always picks the same files.

MeasureWhy it matters
Field accuracyHow often each value is right
Straight-through rateHow many invoices need no one
Straight-through precisionOf those, how many were exactly right
Errors that would post without reviewThe number that matters most: should be zero
Accuracy after reviewWhat would reach the ERP

report.md is the summary to share; results.csv has a row per invoice so AP can check any disagreement in minutes.