All jobs / AI engineer / AI Evals
AI engineer interview question · 1–3 years
You compare an old and a new prompt with a pairwise LLM judge. The new prompt wins almost every pair. Its answers are always shown second, and they are longer.
What do you check before you believe the result?
The strongest answer
Position and verbosity bias: run every pair in both orders and count only verdicts that survive the swap, check whether length alone is winning, and compare a sample with human preferences
Why it works
Exactly — judges can favour a position or the longer answer. Swap the order, control for length, and calibrate against people.
What a good answer covers
- Pairwise judges have position and length bias.
- Run both orders; keep consistent verdicts.
- Check whether longer always wins.
- Calibrate on a human-labelled sample.
Answers that fall short
- Close, but not the strongest: Re-run the whole comparison a few times and average the results to reduce the noise
Averaging removes random noise. A bias points the same way on every run, so the average is just as wrong. - Weak: Nothing — a near-unanimous result is far too strong to be an artefact of the setup
A consistent bias produces exactly this kind of landslide. The size of the win is not evidence of its cause. - Red flag: Report the win rate as it is; the new prompt is mine and the numbers support it
Shipping a result you have reason to doubt, because it flatters your change, is the habit evals exist to stop.
Who gets asked this
More AI Evals questions
- 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…
- Why can’t you test an LLM feature with ordinary exact-match unit tests, and what do you do instead?