Every $ became USD
Textract reported US dollars on all eight, even invoices that print AUD or NZD. Summit Freight prints no currency at all, so it should have gone to review, but the guessed USD let it through.
Document processing case study
A pipeline that reads supplier invoices with AWS, pulls out the seven fields accounts need, and decides whether each invoice can go straight through or needs a person to check it.
Supplier invoices arrive as PDFs, and every supplier lays theirs out differently. To pay one, accounts need seven fields from it:
Paying a wrong total is worse than paying late, so the pipeline never guesses. Every invoice ends up accepted or needs_review, and a review always comes with its reasons.
AnalyzeExpense feature also tries to find invoice fields like the supplier and the total.Eight fictional invoices, each testing something different, in five layouts. An answer key records the values printed on each and the outcome a perfect reading should get. So far, only the Textract-only baseline has run.
| Invoice | What it tests | Should be | Textract | Fields it got wrong |
|---|---|---|---|---|
| Northwind Office | Complete and correct | accepted | accepted | currency |
| Bluegum Consulting | Date written out in words | accepted | accepted | supplier (“BC”), currency |
| Harbour Print | No invoice number | needs_review | needs_review | currency |
| Kestrel IT | Total $10 more than subtotal + tax | needs_review | needs_review | invoice number, supplier (split over two lines), currency |
| Coastal Catering | Total 1 cent off from rounding | accepted | accepted | currency |
| Summit Freight | No currency printed, only “$” | needs_review | accepted | supplier (“SF”), currency |
| Tui Timber | New Zealand supplier: NZD, 15% GST | accepted | accepted | currency |
| Corner Cafe | Receipt with no subtotal printed | needs_review | needs_review | currency |
Textract reported US dollars on all eight, even invoices that print AUD or NZD. Summit Freight prints no currency at all, so it should have gone to review, but the guessed USD let it through.
On the two banner layouts, Textract took the supplier’s initials from the logo (“BC”, “SF”) as the business name.
Kestrel IT went to review as it should, but partly because Textract missed its invoice number on the sidebar layout, not only because of the bad total.
It did get every amount and every date right, including the date written in words. The ABNs and due dates printed next to the invoice number and invoice date didn’t fool it.
Claude is told to return only values printed on the invoice: no working out a missing subtotal, and no currency guessed from a $ sign. A gap goes to review.
Claude must answer in a JSON schema built from a Pydantic model. Amounts come back as text and become exact decimals, so money never passes through a float.
Textract’s fields and Claude’s go through identical validation, and the answer key comes from the same data as the PDFs, so the comparison is fair.
The Claude step is built and tested against a fake client, but it hasn’t run yet: on a brand-new AWS account, every Bedrock model quota starts at zero, and the increase for Claude Haiku 5.5 is still pending.