Design Confidence Based Human Review Routing for Invoice Extraction
Last updated: November 29, 2026
Quick Overview
Design the Document Understanding pipeline that classifies incoming documents, extracts invoice fields with ML models, and decides per field or per document whether the result can flow straight to the ERP or must go to a human validator in Action Center. Include how validator corrections improve the models.
UiPath
November 29, 20260
0
0 solved
Design the Document Understanding pipeline that classifies incoming documents, extracts invoice fields with ML models, and decides per field or per document whether the result can flow straight to the ERP or must go to a human validator in Action Center. Include how validator corrections improve the models.
Document Understanding customers judge the product by straight-through processing rate at a fixed error tolerance, so ML engineers are expected to design the routing layer, not just the extractor. The interviewer looks for calibration, field-level business rules, feedback loops from validation, and safe model updates per customer.
What the Interviewer Expects
- Defines metrics: field accuracy, straight-through rate, human handling time, cost of an error
- Describes the pipeline: ingestion, OCR, classification, extraction, validation rules, routing
- Uses calibrated confidence plus deterministic checks (totals add up, vendor exists) to route
- Explains how validated corrections become training data with care for label noise
- Plans per-customer fine-tuning or adaptation with offline evaluation and shadow rollout
Key Topics to Cover
How to Approach This
- Start by mapping the business objective to a concrete ML objective and metric.
- Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
- Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
- Address the serving latency budget and whether batch or real-time inference is needed.
- Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
- How do you pick thresholds when a wrong bank account number costs far more than a wrong PO date?
- A new vendor layout appears and accuracy drops. How do you detect it quickly?
- When would you use a generative extractor over a trained layout model, and how do you get confidence from it?
- How do you keep one customer's documents from leaking into another customer's model?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice ML System Design ProblemsSample Answer
Requirements
Input: PDFs, scans and emails at up to a few million pages a day across tenants. Output: structured invoice fields (vendor, invoice number, dates, totals, line items, bank details). Goal: maximize the...
High-Level Design
- Ingest and digitize: OCR with layout (tokens plus boxes), language detection.
- Classify document type (invoice, credit note, receipt) and split multi-document files.
- Extract fields...