200,000 claim documents a day: 99% accuracy still misses thousands of wrong fields
On day 4 of her FDE interview series, Priyanka Vergadia presented a document AI system design problem: process 200,000 claim documents a day. The focus is on throughput, cost per document, manual review capacity, and a counterintuitive constraint: every wrong field looks correct. The replies also mention that invoice and bill extraction must reconcile to POs, receipts, or prior-month records; if they do not match, hand them to a human.
On day 4 of "Forward Deployed in 30 Days," Priyanka Vergadia gave a problem: an insurance company receives 200,000 claim documents a day, including PDFs, scans, and photos of handwritten forms. Design a pipeline to turn them into structured records.
FDE stands for Forward Deployed Engineer, someone embedded on the customer side who needs to understand system design and also put models into real business workflows. This problem is not about chatbots; it is about batch pipelines. No one is sitting at a screen waiting for a reply. What really needs to be calculated is throughput, cost per document, and how much manual review is required.
Original links: X post, article. The full seven steps and sketch are on Substack: Design a Pipeline for 200,000 Claim Documents a Day.
A wrong amount looks just like a correct one
A common wrong answer is to throw all pages at a vision model, have it output JSON, and write that into the claims system. The demo will look great. The problem is that an extraction model will always return something, and a wrong claim amount is structurally indistinguishable from a correct claim amount. At 200,000 documents a day, a model that is 99% accurate still produces thousands of erroneous records. No one can check them all.
So the constraint in this problem is: every wrong field looks right, and human attention is a scarce resource. The design has to answer how the pipeline knows which records are worth suspecting, and whether the reviewers can keep up.
The prompt assumes each document has an average of 12 fields, 4 of which are critical: policy number, claimant, date of loss, and claim amount. If the policy number is wrong, the claim gets attached to someone else's policy; if the amount is wrong, it might get paid. There are two kinds of errors. If the pipeline is uncertain and sends a document to a human, the cost is one minute of labor and a bit of delay. If the pipeline does not flag it and writes the wrong value, no one looks again, and the cost is much higher. The rule is straightforward: when uncertain, send it to a human.
A seven-step framework: ask about staffing and error cost first
Priyanka reuses the seven-step answer from day 1: clarify, numbers, data, request path, evaluation, failure modes, launch. The day 4 system is batch-oriented, so the metrics become throughput, cost per document, and reviewer headcount.
Step 1 is to ask clearly: who uses the records, what deadline must they enter the claims system by, and how much does one wrong field cost. The original assumes records enter the system within 4 hours, and manually reviewed ones are completed within 24 hours. Today this relies on a key-entry team at about 4 minutes per document; the new process can staff 60 trained reviewers. That headcount is a design input.
Accuracy cannot be given as just one number. It has to be set by field and measured by document, because one wrong critical field ruins the whole record. The baseline is the existing key-entry team: have two people key the same sample batch and compare. The goal is to be at least as good as the baseline on the 4 critical fields while using fewer people.
The pipeline overview is: a queue receives documents, then classifies them, then uses the cheapest reading method. Digital PDFs read the text layer, clean scans go through OCR, and photos and handwriting go through a vision model. Extraction produces a typed schema, with each field carrying a value, page location, and calibrated confidence score. Code rules and a policy system validate every record. Records that pass are auto-approved; uncertain ones go into a manual review queue designed around real staffing levels. Every correction by a reviewer becomes evaluation data.
There is one line in the original worth memorizing directly: "Which fields cost money when wrong, and how many reviewers can you staff? Those two answers drive most of my design."
Extraction is not enough; it has to reconcile
In the replies, christian mentions what matters most for bills and invoices: can the extracted numbers be reconciled back to something, such as a PO, receipt, or prior-month record? If they do not match, hand them to a human.
This feedback makes the hard part of document AI very concrete. Field accuracy is only the first layer. What the business needs is traceability: where on the page the value came from, whether it can be checked against external documents, and whether someone takes over when confidence is low. The same is true for claims: a wrong amount is not structurally distinguishable, so the system can only catch it through location, confidence, rules, and reconciliation relationships.
So a document pipeline that is ready for production should not just show "what the model read." It also has to explain "why the model is trustworthy, and who looks when it is not."
发布时间: 2026-12-05 03:27