All jobs / AI engineer / AI Evals
AI engineer interview question · 5+ years
How do you evaluate a multi-step agent, where two correct runs can take completely different paths?
The strongest answer
Grade the outcome by checking the end state in a sandbox, not the agent’s claim; add trajectory checks — forbidden actions, wasted steps, cost — and run each task several times, because one pass proves little
Why it works
Exactly — verify what changed in the world, constrain the path only where the path matters, and treat success as a rate across trials.
What a good answer covers
- Grade the end state, not the story.
- Verify outcomes in a sandbox.
- Check forbidden actions, steps and cost.
- Repeat trials; report a success rate.
Answers that fall short
- Close, but not the strongest: Compare each run with a reference sequence of tool calls and fail it when the steps differ
A single golden path fails good runs that found another route. Constrain what must or must not happen, not the exact sequence. - Weak: Ask the agent at the end whether it completed the task, and score its own report
Agents report success on tasks they did not finish. The environment’s state is the evidence; the transcript is a claim. - Red flag: Run it on real customer accounts for a week and count the complaints that come in
Customers are not a test environment, and complaints catch only the failures someone noticed and bothered to report.
Who gets asked this
More AI Evals questions
- 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?
- 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…