Design an Invoice Extraction Pipeline With Human Review for a Portfolio Company
Last updated: November 29, 2026
Quick Overview
Design a system that ingests about 200k supplier invoices a month (PDF scans, emails, EDI) for a mid-size distributor, extracts header and line-item fields with an LLM, posts them to the client's ERP, and routes uncertain documents to a human review queue.
Ode
November 29, 20260
0
0 solved
Design a system that ingests about 200k supplier invoices a month (PDF scans, emails, EDI) for a mid-size distributor, extracts header and line-item fields with an LLM, posts them to the client's ERP, and routes uncertain documents to a human review queue.
Back-office document work at private-equity-owned companies is exactly the kind of core business process Ode is set up to rework. The round checks whether the candidate designs for correctness and auditability first (money moves on these numbers), uses confidence-based routing instead of trusting the model, and plans how the system will be measured.
What the Interviewer Expects
- Clarify volume, latency target, accuracy requirement and what the ERP accepts
- Separate ingestion, extraction, validation, review and posting into durable stages
- Use deterministic checks (line items sum to total, PO match, vendor master lookup) to decide routing
- Design the reviewer UI and feed corrections back into an eval set
- Make ERP posting idempotent and auditable
- Explain cost per document and how it drops over time
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How do you set the auto-post threshold, and who signs off on it?
- A new vendor format appears and accuracy drops for that vendor. How do you notice?
- How would you handle a 40-page invoice with 900 line items?
- What changes if the client requires all data to stay in their cloud account?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: ingest from an email inbox, SFTP and an upload UI; extract vendor, invoice number, dates, currency, totals, tax and line items; match to purchase orders; post approved invoices to the ERP;...
High-Level Design
- Ingest: each document lands in object storage with a content hash (dedupe resent emails) and a row in a
documentstable; a message goes on a queue. - Pre-process: classify document type ...