1:1 mentoring with Big Tech AI engineers
Q52Premium

How do you do A/B testing on an agent? It's not like testing a button color.

Hard / Curveball

A/B TestingEvaluationProductionQuality

Asked at Meta · Sierra · Stripe

How to Answer

"Agent A/B testing framework:

  • (1)Split by user cohort, not by request — the same user should get the same variant for consistency.
  • (2)Metrics to compare: task completion rate, CSAT, cost per task, latency, hallucination rate. Need all to be equal or better, not just one.
  • (3)Shadow mode first — run variant B on all traffic but only show variant A's output. Compare offline. Only promote B to live when confident.
  • (4)Statistical significance — agent outputs are high-variance. Need larger sample sizes than UI tests. Typically 1000+ tasks per variant.
  • (5)Prompt version tracking — every prompt change is a versioned artifact in git. A/B test maps to prompt version A vs B."

The deep dive — diagrams, tradeoff tables, and the follow-up trap

Loading…