All jobs / AI engineer / Document AI
AI engineer interview question · 5+ years
Your service extracts supplier, totals and bank details from invoices in hundreds of layouts. Finance wants extracted invoices paid without a person looking at them.
What do you agree to, and what do you refuse?
The strongest answer
Auto-pay only what passes every check: schema, lines summing to the total, supplier and bank details matching master data, high confidence. Everything else goes to a reviewer shown the source region, and accuracy is tracked per field
Why it works
Right — validation against what you already know is what makes automation safe, and a changed bank account is precisely the field that never goes straight through.
What a good answer covers
- Automate only what you can verify.
- Cross-check totals and master data.
- Low confidence goes to a human.
- Show the reviewer the source region.
Answers that fall short
- Close, but not the strongest: Agree for invoices under a value limit, and send every invoice above the limit to a person for review
A value limit caps the damage but checks nothing: a small invoice with a swapped bank account still pays the wrong party. - Weak: Agree once accuracy on a test set is high enough; past that point, human review is wasted effort
An average says nothing about which invoice is wrong today. You need per-document checks and confidence, not only a test score. - Red flag: Agree; the model returns valid JSON for every invoice, and finance can claw back any wrong payments later
Valid JSON means the shape is right, not the values. Paying on unverified bank details is how invoice fraud succeeds.
Who gets asked this
More Document AI questions
- Two PDFs look identical on screen, but your parser gets clean text from one and nothing from the other. Why…
- Why is “just extract the text from the PDF” harder than it sounds?
- Your document Q&A is good on prose but wrong on figures that come from tables. In the extracted text, a table…
- How do you chunk a long contract or manual that has headings, numbered clauses, tables and figures?
- A legal team will only use your contract assistant if every answer points to a real page and clause. How do…
- In your equipment manuals the wiring diagrams and annotated screenshots carry the key information. The…
- A customer’s legal team asked your contract assistant whether a 300-page agreement had an auto-renewal…