Extraction confidence

Extraction reads an invoice and writes structured fields onto the document: vendor, vendor address, invoice number, dates, total, tax, currency, purchase order number, property hint, terms and remit-to, plus line items where it can find them. Each field is stored with a confidence value and a record of where it came from.

A reviewed invoice: extracted fields on the right, each with the confidence behind it, and the original document on the left.
Every field carries the confidence behind it, and the original sits beside it.

This page explains what those numbers mean, what they are used for, and where they stop being trustworthy. Anyone who reviews invoices should read the escalations section; the rest is for people deciding how much to automate.

Per field, and one derived document score

Confidence is attached to individual fields, and a single document score is derived from them: the lowest of the four fields the pipeline requires — vendor, invoice number, invoice date and amount — capped by the model's own overall figure. The per-field numbers are what you read; the derived one is what routes.

"This invoice is 82% correct" is not a statement anyone can act on. "The total is certain and the invoice number is a guess" tells a reviewer exactly where to look, which is the only useful form the information can take. The invoice screen shows the score beside each field for that reason.

Each field also records its source, which is a different question from how confident the reading is:

SourceMeaning
ocrRead off the document itself — the attachment, rather than the email body. The model reads the page; for a photo or an image-only PDF, Amazon Textract first reads the text of the page.
bodyTaken from the text of the email rather than an attachment.
ruleWritten by one of your rules, or by a vendor or property default.
userTyped or corrected by a person.

A GL account stamped from a vendor default carries a deliberately middling score. It was configured by you, so it is a standing instruction rather than a guess, but it was not seen on the page — and a reviewer should be able to tell those apart at a glance.

The review threshold

The document's overall score decides where it goes after extraction. At or above 0.7 it becomes ready_for_approval. Below that it becomes needs_review.

In the interface, field scores are banded so they can be read without arithmetic: 90% and above is shown as good, 70% to 90% as worth a look, and below 70% as doubtful.

A threshold is a blunt instrument, which is why it is not the only thing that routes an invoice to a human.

The escalations that override a high score

Two conditions send an invoice to a person regardless of how confident the extraction claims to be. A model that is confidently wrong is more dangerous than one that admits it is stuck.

EscalationWhy
The file is quarantinedA rule you wrote said hold it. That decision outranks the extractor entirely.
The property could not be settled with confidenceThe invoice named a building too weakly, or it fits more than one. A rule about who sent the bill has said nothing about which building pays it, so this outranks an auto-approval too.

An unmapped vendor does not by itself route an invoice to review. It surfaces later, at export: a bill whose vendor has no counterpart in your ledger is parked rather than posted. If you want a new biller to stop at a person, write a quarantine rule that matches the sender's address or the vendor.

The arithmetic check also runs at export. The document screen shows the line-item total against the header total and the variance between them while you are reading it, and before a bill is posted to your ledger, inletAP checks that the lines plus tax settle at exactly the stated total, within a penny for rounding. If they do not, the document is parked with both figures named rather than posted. A wrong number in a ledger is quiet, permanent and somebody else's problem to find.

An invoice that states tax but has no tax code to carry it is parked for the same reason: posting the pre-tax figure would underpay the vendor by the tax, silently and in real money.

Values checked against the text of the document

When a document has text of its own — a PDF made on a computer, a Word or Excel file, a web page — inletAP looks in that text, and in the email, for the values it read: the total, the invoice number, the invoice date, the tax, the purchase order number and the GST/HST or QST number. When the invoice lists line items, it also checks that the lines and the tax add up to the total. If it cannot find one of those values, the page prints the total as a credit but it was read as an amount owed, or the lines and the tax do not add up, the invoice waits in review with a sentence that says which. This happens even when a rule would have approved the invoice automatically; a quarantine rule still comes first.

On the invoice, a field whose value was not found says so under its box, and the information button beside a field shows the line of the document the value was found in. Correct the value, or check it against the page, before you approve.

28 seconds, with narration. The narration is also written into the picture as captions, so nothing is missing with your sound off. Every screen in it is the product itself, on demo data.

What the demo shows, in words

What it shows, in words: the headline “Values checked against the document” over the Total field of an inletAP invoice screen. It reads 2318.50, and the note under it says “Not found in the document's text. Check it against the page.” Narration: inletAP looks for the total, the tax and the invoice number in the text of the document. The invoice itself, a PDF from Cascade Roofing Ltd: Sales Tax 8.25% $181.50 and TOTAL DUE $2,381.50 USD, then Invoice # INV-2026-0412. When it finds one, it quotes the line, and can outline it on the page: the pointer opens the evidence for the Tax field, which says “Found in the document's text” and quotes “Subtotal $2,200.00 Sales Tax 8.25% $181.50”; the pointer presses Show on page, and the page outlines $181.50. This total is not in the text: the page prints TOTAL DUE $2,381.50 USD, and the Total field reads 2318.50 with the note “Not found in the document's text. Check it against the page.” So the bill goes to review, with the reason: the invoice shows the status Needs review and the sentence “We could not find the total we read in the text of the document. Check it against the document before this bill is approved.” A credit on the page, read as an amount owed, goes to review too: a credit note from Metro Waste Solutions prints TOTAL CREDIT -$557.49 USD, outlined on the page; its Total field reads 557.49 with the note “Printed as a credit on the page. Check the sign.”, and its status is Needs review. The clip ends on a card: Values checked against the document, a total not found in the text goes to review, on every plan, including Free, inlet-ap.com.

A photo or an image-only PDF has no text of its own, so Amazon Textract reads the text of its pages first and the same checks run on that text; the information button can then outline the line on the page. When the text of a page could not be read, these checks do not run and the information button says so: check those values against the image yourself.

What extraction gets wrong

Accuracy is good on the layouts you see most and imperfect on the long tail. A regional supplier's one-off template, a scan photographed at an angle, a handwritten total, an invoice pasted into an email with the columns collapsed — these are the cases where the score drops and a person is asked.

That is the design rather than an apology for it. The realistic aim is calibration: being right most of the time and honest about the rest. An extractor that was quietly confident on the awkward 5% would be far more expensive to use than one that hands them over.

Two consequences worth planning for:

  • Your first month will have more review than your third. Vendor mappings, property aliases and rules accumulate as you work, and each one removes a class of decision.
  • A document the extractor could not read at all still costs you one processed invoice once a person finishes keying it in. The alternative — the invoices that take the most human effort being the only free ones — would be a strange thing to charge for.

Correcting a field

Change the value on the invoice, opened from the Review Queue. The field's source becomes user, its confidence becomes 1.0, and the audit trail records the field, the new value, your name and the time.

Four fields must be present before an invoice can go for approval: vendor, invoice number, amount and due date. Note the difference from the four that set the document's confidence score above — that set uses the invoice date, this one uses the due date. An invoice missing a due date can score highly and still refuse to go on, because a bill with no due date is a bill nobody can schedule. Fill it in on the Review Queue and send it again.

What counts as an edit, and what the log can tell you afterwards

Each of those changes is one fields_updated entry written by a person, and the Reports page divides the invoices carrying at least one of them by the invoices extraction actually read. That figure is the extraction edit rate in the metrics reference: the share of invoices where somebody changed what inletAP proposed.

One limit is worth knowing before you read too much into it. The log stores the value as it stood immediately before that edit, not the value extraction first proposed. On the first change to a field those are the same thing. On the second change to the same field, the "before" value is the first editor's, not the machine's — so the log answers "what did this field say before this change" exactly, and "what did extraction originally read" only for the first change. That is why we report a rate per invoice and not a score per field.

Where to go next