All jobs / AI engineer / AI Evals
AI engineer interview question · 3–5 years
Your agent eval runs each of fifty cases once. Yesterday 46 passed. Today, on the same code, 43 did.
What is wrong with how you are measuring, and what do you change?
The strongest answer
A single run per case measures noise as well as quality: agents vary from run to run, so I run each case several times, report a pass rate with its spread, and call a change an improvement only when it clears that noise — while fixing what can be fixed, such as seeded data and a clean environment
Why it works
Exactly — a three-case swing on fifty is inside the noise of one run each. Without repeats you cannot tell a real regression from a re-roll.
What a good answer covers
- One run per case is mostly noise.
- Repeat each case; report a rate.
- Compare changes against the spread.
- Fix the environment where you can.
Answers that fall short
- Close, but not the strongest: The eval set is too small; with a few hundred cases the two numbers would agree
More cases narrow the estimate, but each case is still a coin you flipped once. Repeats tell you how stable each case is. - Weak: Something must have changed between the two days, so I would look for the commit that caused it
Check, by all means — but you said nothing changed. An agent is not deterministic, and treating it as if it were sends you hunting for a cause that does not exist. - Red flag: Take the better of the two results; the agent has shown that it can reach 46
Reporting the best run is how teams end up surprised by production. The honest number is the rate, not the peak.
Who gets asked this
More AI Evals questions
- 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…
- Why can’t you test an LLM feature with ordinary exact-match unit tests, and what do you do instead?
- What is a golden dataset for an LLM feature, and where do its cases come from?
- Your feature extracts supplier, date and total from invoices into JSON. A teammate proposes grading every…
- 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?