Evaluating LLM apps · senior
Testing in production and evaluating agents
Offline evals are not enough. Roll out with shadow mode, a canary and an A/B test with a business metric, and evaluate agents on the end state, the path and consistency.
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceThe notes
What you must know
- Rollout path: shadow mode (run on real traffic, log, do not show), then a canary of a small share of users, then an A/B test.
- Main metric is a business outcome, such as resolved without a human or task completed, with guardrails: escalations, repeat contact, p95 latency, cost per conversation and safety flags.
- Thumbs are rare and skewed. Use them to choose what to review, not as the main metric. Quieter signals: copying the answer, rephrasing, leaving, asking for an agent.
- Split by user, not by request. Run at least a week to cover weekday and weekend patterns, and fix sample size and stopping rule before starting.
- Evaluate an agent on outcome (check the end state in a test environment, not the agent's claim), path (right tools, valid arguments, no forbidden actions, steps and cost) and reliability.
- Use sandboxed tools with seeded data so tests are repeatable and safe.
- Run each task several times. At least once in k tries (pass@k) flatters the agent. Every time in k tries shows consistency, which customers feel.
- Add hard cases: vague requests, tool failures, vanishing slots and instructions injected into tool results. Keep traces with a span per step.
The red pen
Common traps: mistake → fix
Mistake: Thumbs up and down are enough to choose a model
Fix: they are rare and biased.
Mistake: An agent is good if the final message looks right
Fix: check the real end state.
Mistake: One successful run proves it works
Fix: run several times and measure consistency.
Easy to hard
Questions interviewers ask, easy to hard
- How do you test a new model in production?
- Would you trust thumbs up and down?
- How is evaluating an agent different from evaluating an answer?
- What does pass@k hide?
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceYour first interview is free
Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.