AI Evals Interview Q&A
Q: Why can't you just unit-test an LLM's output the way you'd test a regular function?
A regular function has a defined correct output for a given input, so a pass/fail test is unambiguous. An LLM's output is open-ended text, and several differently-worded responses can all be equally correct — there's rarely one single right string to assert against. Evals replace that binary pass/fail with a scoring method suited to open-ended output — a rubric or a judge model — run against a fixed set of inputs so results are still comparable across versions.
Q: What's the idea behind using a separate model call to judge another model's output, and what's the real risk of relying on it as your only check?
LLM-as-judge scales far better than human review and correlates reasonably well with human judgment when given a clear rubric, which is why it's become a common way to score open-ended output at volume. The real risk is that the judge model has its own blind spots and failure modes — a judge that's confidently wrong in a consistent way can validate the same real problem release after release without anyone noticing, since nothing contradicts it unless a human spot-checks a sample independently.
Q: A team ships a new prompt version because it "felt better" across a handful of manual tests someone ran. What's missing, and what should the process look like instead?
What's missing is anything repeatable: no fixed set of inputs, no consistent scoring method, and nothing to compare the next change against later. A real process runs the same golden set through both versions, scores each with a defined method, and compares the resulting numbers — including a per-category breakdown, not just the aggregate — before deciding the new version is actually better rather than just better on the handful of cases someone happened to try.
Q: Your evaluation dataset was built a year ago, and the current prompt and model have both scored near-perfectly on it for months. What's the risk this should raise?
A static golden set built long ago may no longer reflect what real users currently send, and a near-perfect score against it can mean the system has simply plateaued against a now-stale target rather than genuinely performing well on current traffic. The set is worth refreshing with real, recent inputs — including ones that have caused problems since it was last updated — rather than trusting a score that's stopped being a meaningful test.
Q: What's the difference between exact-match scoring and rubric-based scoring, and when does each actually fit?
Exact match checks the output against one specific expected string — fast, unambiguous, and only appropriate where there's genuinely one correct answer, like a classification label or an extracted field. Rubric-based scoring applies a checklist of specific criteria instead, which fits open-ended generation where multiple differently-worded responses can all satisfy the same underlying requirements that exact match would wrongly reject.
Q: Why might two eval runs of the identical output, scored by the same LLM-as-judge, produce different scores?
A vague judge instruction ("rate this 1-5") leaves real room for the judge's interpretation to shift between runs, especially near score boundaries. A rubric with specific, concrete criteria for each score level narrows what the judge is actually deciding, which produces materially more consistent scores than an open-ended rating instruction — though it won't eliminate variance entirely.
Q: How would you evaluate an agent that takes several steps — calling tools, reasoning across turns — rather than a single input-output response?
Scoring only the final answer misses real problems: an agent can land on a correct final answer despite taking an unnecessary tool call or using a wrong argument that happened not to matter this particular time. A fuller evaluation checks whether the sequence of actions was reasonable, whether each individual tool call used sensible arguments, and whether the final outcome actually solved the task — not just whether the last message looked right.
Q: Why is calibrating an LLM-as-judge against human ratings worth doing before trusting it at scale?
A judge's reasoning can read as perfectly plausible while still disagreeing with what a human reviewer would actually conclude, and there's no way to know how often that happens without measuring it directly on a held-out sample scored by both. A judge that diverges from human judgment on a meaningful share of cases needs a clearer rubric, a stronger judge model, or an honest acknowledgment that the task isn't currently well-suited to automated judging.
Q: A golden set's aggregate pass rate improved after a prompt change. Is that enough to ship it?
Not on its own — an aggregate number can rise even while one specific category gets meaningfully worse, as long as enough other categories improved to offset it in the average. Breaking the score down by category (intent type, difficulty, input length) before shipping is what catches a localized regression that the headline number alone would hide completely.
Q: Beyond the golden set checked at release, why would a team also sample real production traffic for ongoing evaluation?
A golden set run at release catches a regression the specific change just introduced, but it says nothing about drift that builds up gradually afterward — a model provider's own silent update, a slowly shifting user population, a dependency that degrades over weeks without any single change triggering it. Sampling live traffic on an ongoing basis is what catches that second, slower failure mode that a one-time check can't.
Q: A RAG system's final answer is wrong. How would you figure out whether retrieval or generation caused it, instead of just re-prompting and hoping?
Score the two stages separately rather than guessing. Context precision and context recall tell you whether retrieval found the right material at all; faithfulness tells you whether the generated answer actually stayed grounded in whatever was retrieved. Low recall with high faithfulness means retrieval missed relevant material but the model was honest about what little it had. High recall with low faithfulness means the model had the right material and still made unsupported claims. Each diagnosis points at a completely different fix — better chunking/retrieval tuning versus a stricter grounding instruction — so collapsing both into one "RAG quality" score would hide which one actually happened.
Q: What's the difference between a regular eval and a red-team eval, and why does red-teaming need to be an ongoing process rather than a one-time pre-launch check?
A regular eval asks whether the system does its job correctly on realistic inputs. A red-team eval asks the adversarial question instead — can this system be talked into doing something it shouldn't, through a jailbreak, a prompt injection, or a social-engineering-style request. New attack patterns get discovered continuously, so a red-team set that's only run once before launch stops reflecting the attacks people are actually trying within months. It needs the same versioned, periodically-refreshed treatment as a golden set, re-run on every meaningful change rather than treated as a box checked once.

