All jobs / AI engineer / AI Evals
AI engineer interview question · 1–3 years
Your feature extracts supplier, date and total from invoices into JSON. A teammate proposes grading every eval case with an LLM judge.
What do you suggest instead?
The strongest answer
Code checks wherever the answer is checkable — valid schema, exact field match, numeric equality on the total — because they are cheap, fast and repeatable; keep model grading for open-ended qualities
Why it works
Exactly — use the most deterministic grader that can decide the case. A judge adds cost and noise where an equality check is already certain.
What a good answer covers
- Use the most deterministic grader that works.
- Schema and exact match in code.
- Judges only for open-ended quality.
- Similarity is not correctness.
Answers that fall short
- Close, but not the strongest: Use the LLM judge, but give it the expected JSON so that it can compare the two side by side
It works, but you have paid for a noisy comparison that one line of code does exactly. Save the judge for what code cannot decide. - Weak: Use text similarity between the output and the expected JSON, and pass anything above a threshold
One wrong digit in the total scores as nearly identical. Similarity rewards looking right, and extraction needs being right. - Red flag: Read a few outputs by eye each release; extraction is simple enough not to need graders
Eyeballing a few misses the rare wrong total, which is the error a finance user cares about most.
Who gets asked this
More AI Evals questions
- You compare an old and a new prompt with a pairwise LLM judge. The new prompt wins almost every pair. Its…
- How do you make evals part of CI, so a prompt or retrieval change cannot quietly make things worse?
- Your assistant can call six tools. How do you evaluate whether it uses them correctly?
- Answers got worse after you changed the chunking in a RAG assistant. How do you evaluate the retriever on its…
- What is wrong with how you are measuring, and what do you change?
- Your offline eval score rose for three releases in a row. Over the same period, escalations from the…
- How do you evaluate a multi-step agent, where two correct runs can take completely different paths?
- An executive asks for “our hallucination rate” as one number for a board deck about your document-grounded…