Specialized inference and human review
Confidence is not a guarantee
A high confidence score can coexist with a wrong amount. Treat confidence as a routing signal, not proof of correctness or a calibrated probability for your population. Choose separate thresholds by field and consequence using labeled validation examples. For our fictional receipts require a positive integer amount, a known currency and a matching sum of line items. Reject malformed data; send uncertain, inconsistent or high-impact values to a reviewer. Even correct-looking high-confidence outputs need sampled audits.
Human review and durable workflow
Store an opaque job ID, input version, operation, status and minimal evidence. A worker validates input, invokes the authorized operation, parses the response into an application schema and routes accepted values or a review case. For asynchronous APIs handle completion events, duplicate delivery, pagination and terminal failures; do not treat submission as success. Record reviewer decision and corrected value, maintain access boundaries and prevent duplicate downstream writes with a durable idempotency key. A review queue is not approval; only a recorded authorized decision can release held work.
Measure recognition errors
For OCR compare normalized field values against labels; report exact-match accuracy and missing-field rate, not just confidence. Speech word error rate (WER) equals substitutions plus deletions plus insertions divided by the reference word count. Reference “blue box arrived” versus “blue boxes arrived today” has one substitution and one insertion, so WER is 2/3 (about 66.7%). WER may exceed 100% and is undefined for an empty reference; track empty-reference insertions separately. Use the same explicit normalization for both candidates; do not erase important digits or negation.
Failure and fallback
A timeout or throttling error is not an empty inference result. Retry only transient errors with bounded backoff and jitter; preserve a deadline and check asynchronous job status before resubmission. Unsupported formats or languages need a different validated route or a clear rejection. If review capacity is exhausted, pause ingestion rather than lower quality thresholds silently. Avoid automatic payment, identification of real people or consequential decisions based on a model output. In the offline lab all review actions are simulations.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Specialized inference and human review — knowledge check
Select specialized APIs, evaluate errors and constrain usage.
A receipt amount has confidence 99 but disagrees with the line sum. What next?
For blue box arrived vs blue boxes arrived today, what is WER?
What should happen after asynchronous job submission?
Review queue full: what is a safe response?
Why preserve source offsets?