Evals & Observability·Question 75 of 83Quick-fire

How do you run an A/B test for an LLM feature, and what do you measure?

Quick-fire answer from the Awesome Generative AI Guide (MIT)

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

Split live traffic between the variants (a new prompt, model, or retriever versus the current one) and compare outcomes that matter to users and the business, not just an offline score: task success or resolution rate, user acceptance or edit rate, escalation rate, latency, and cost per interaction. Guard for the LLM-specific traps: non-determinism adds noise so you need enough sample size, quality is a distribution so watch the tail not just the mean, and a change can improve one segment while hurting another. Pair the online test with your offline eval, which gates the change before it ever reaches the A/B split. The offline eval says "safe to try," the A/B test says "actually better for users."

Full worked answer

Split live traffic between the variants (a new prompt, model, or retriever versus the current one) and compare outcomes that matter to users and the business, not just an offline score: task success or resolution rate, user acceptance or edit rate, escalation rate, latency, and cost per interaction. Guard for the LLM-specific traps: non-determinism adds noise so you need enough sample size, quality is a distribution so watch the tail not just the mean, and a change can improve one segment while hurting another. Pair the online test with your offline eval, which gates the change before it ever reaches the A/B split. The offline eval says "safe to try," the A/B test says "actually better for users."

Learn more: Evaluation topic

What a good answer covers

  • Split live traffic between the variants (a new prompt, model, or retriever versus the current one) and…
  • Guard for the LLM-specific traps
  • Pair the online test with your offline eval, which gates the change before it ever reaches the A/B split
  • The offline eval says "safe to try," the A/B test says "actually better for users."

Key terms: Learn more

Quick-fire answer from the Awesome Generative AI Guide (MIT) · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep