All jobs / AI engineer / AI Evals
AI engineer interview question · 1–3 years
How do you make evals part of CI, so a prompt or retrieval change cannot quietly make things worse?
The strongest answer
A fast fixed subset runs on every change to prompts, model settings or retrieval code and is compared with the stored baseline; a real drop blocks the merge, and the full suite runs before release
Why it works
Exactly — a quick gate on every change, a baseline to compare with, and a threshold that allows for run-to-run noise. The slow suite guards the release.
What a good answer covers
- A prompt change gets a gate like code.
- Fast subset on every change.
- Compare with a stored baseline.
- Allow for noise; full suite before release.
Answers that fall short
- Close, but not the strongest: Run the full eval suite on every commit and fail the build if any single case fails
Right instinct, but a slow suite that fails on any single noisy case gets switched off sooner or later. Subset, baseline, tolerance. - Weak: Run the evals by hand before big releases; CI is for deterministic tests only
Between big releases is when the small prompt edits land. Those are the changes that need the gate. - Red flag: If the eval step fails I re-run it until it passes, since the model is random anyway
Re-running until green hides a real regression behind the noise. If the gate is flaky, fix the threshold or the sample size.
Who gets asked this
More AI Evals questions
- 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?
- What is a golden dataset for an LLM feature, and where do its cases come from?