When an interviewer asks, “How do you know your LLM feature works?” your job is to explain how you would catch a bad change before users see it. Use the free AI Engineer Interview Cheat Sheet (4 pages, 12 must-know questions with short model answers) to rehearse this and other questions. Enter $0 to get it free.
What the interviewer is checking
The interviewer wants to hear what counts as a failure, how you would detect it, and which failures would block a release. Start with one feature so you can make those decisions concrete.
Suppose the feature drafts a support reply from a customer message and a policy excerpt. A fluent reply can still give the wrong deadline or promise a refund the policy does not authorize. An evaluation should catch both errors and tell you which case failed.
A strong answer
“I’d start with a small golden set drawn from real support requests, with customer details removed. I’d keep the policy excerpt with each request and include common cases, ambiguous cases, and cases where the feature should ask a clarifying question. For each one, I’d write down what the reply must get right and what would make it fail.
“I’d run deterministic checks first. I’d validate the response format and compare facts with a single expected value, like a deadline in a structured field. For qualities that need judgment, like whether the reply explains the next step clearly, I’d use a model grader with a rubric and examples of passing and failing replies. I’d have a person independently score a sample, including borderline cases, and use disagreements to refine the rubric.
“I’d rerun the suite on every prompt or model change and compare results case by case with the current release. If a new version starts promising refunds it can’t authorize, I’d block it even if the average score goes up. I’d keep the failing case and rerun it after the fix.”
Follow-ups to expect
- How big should the test set be? Start with a set small enough to review by hand that covers common inputs and costly failures. Add cases when you discover a new failure mode or a gap in coverage. If you tune prompts against the same examples repeatedly, keep a separate set for release checks.
- How do you handle subjective outputs? Score observable behaviors. For a support reply, ask whether it gives a specific next step and makes any uncertainty clear. Accept different wording that meets the same criteria. Have people review a sample of passes and failures, especially when the grader and reviewers disagree.
- What can go wrong with the model grader? In pairwise comparisons, it may favor whichever answer appears first. Swap the order and inspect judgments that flip. It may also reward longer answers that contain no extra useful information. Include concise passing examples during calibration and check whether added detail actually satisfies the rubric.
- What would you measure online? For support drafts, track how often agents accept, edit, or discard them. Review a sample of the edits so you can distinguish factual corrections from wording preferences. Acceptance measures what agents do with a draft. A separate review can check whether accepted drafts follow policy.
The weak answer
“I tried a few prompts and it looked good” describes a smoke test. It leaves the interviewer guessing which inputs you chose, what you checked, and whether you would catch a regression after changing the prompt. You can build on that first pass by saving the inputs, defining expected behavior, and adding a case where the feature should decline to make a promise.
A drill
Pick a feature you could explain without a diagram. Write six test cases, then practice answering aloud in 60 to 90 seconds.
- For each case, write one requirement and one failure condition.
- Choose a fact or format rule you can check automatically and a quality criterion you would put in a grading rubric.
- Describe one disagreement a human reviewer might have with the grader and how you would resolve it.
- Imagine the new version improves five replies and introduces a serious policy error in the sixth. Explain your release decision and name the regression you would add to the release report.
Keep practicing
Repeat the drill with a feature from your own work. When you describe the evaluation, name one case that would change your release decision. For more interview practice, use The 0 to 1 AI Engineer Interview Playbook (twenty chapters on RAG, agents, evals, fine-tuning and LLM system design), 30 percent off with code BF30 through Mon Nov 30.
Valenx Press. Practice material, no company affiliation, no interview promise.
