---
title: How would you A/B test a new model or prompt in a chat product? Which metrics are primary, secondary and guardrails?
url: https://gurkanozkan.ai/learn/questions/applied-llm-evl-04/
markdown: https://gurkanozkan.ai/learn/questions/applied-llm-evl-04.md
kind: question
role: Applied LLM
stage: Technical
difficulty: Medium
json: https://gurkanozkan.ai/api/learn/questions/applied-llm-evl-04.json
robots: noindex
---

# How would you A/B test a new model or prompt in a chat product? Which metrics are primary, secondary and guardrails?

Applied LLM · Technical · Medium

Theme reported publicly: [PolyAI](https://job-boards.eu.greenhouse.io/polyai/jobs/5032627101), [Spotify](https://jobs.lever.co/spotify/288ef608-a1e5-4127-b606-3a9981640f91)

## Answer

*Model answer, written in a candidate's voice*

### In short

- Offline gate first: fixed eval set, regression suite, safety/quality thresholds before live traffic.
- Shadow then canary: replay/shadow traffic, small canary, ramp only if guardrails hold.
- Randomise at the right unit (user/account or conversation), avoid per-message leakage, and handle novelty by separating new/first-session users.
- Pre-register primary metric, duration and power; LLM metrics are noisy, so use longer windows and multiple signals rather than peeking.
- Primary: user value such as resolution without escalation, retention and conversion.
- Secondary: feedback/thumbs, regenerations, task completion, CSAT.
- Guardrails: latency p95, cost per request, safety flags, complaints/escalations, refusal/hallucination-like failures.
- Segment by language, plan, device, intent and new vs returning users; report heterogeneity.
- Treat conversation length as ambiguous: more turns may mean more help or more frustration, so interpret it with resolution and feedback, not as a win.

### In full

I would start offline: run the new model/prompt against a fixed eval set and regression suite, including safety and quality thresholds, and only ship if it beats or matches the baseline without regressions. Then I would shadow it on real traffic, then canary it to a small slice, ramping only if guardrails hold. I would randomise at the user/account level (or conversation level where that is the true unit of experience), not message-by-message, and I would pre-register the primary metric, duration and power; because LLM metrics are noisy, I would avoid peeking and use longer windows plus multiple signals rather than a single lucky day. The primary metric should be tied to user value, such as resolution without escalation, retention or conversion; secondary metrics include feedback/thumbs, regenerations, task completion and CSAT; guardrails include latency p95, cost per request, safety flags, complaints/escalations and refusal or hallucination-like failures. I would segment by language, plan, device, intent and new versus returning users, and I would interpret conversation length carefully: longer chats can mean better help or more frustration, so I would not call it a win unless resolution and feedback improve. If the primary signal is ambiguous, I would stop or narrow the rollout rather than declare success.

*Checked against sources by an independent AI reviewer.*

## What a strong answer covers

- Primary tied to user value (resolution without escalation, retention, conversion); secondary (feedback, regenerations); guardrails (latency p95, cost per request, safety flags, complaints)
- Randomisation unit, novelty effects, duration, power; LLM metrics are noisy
- Offline gate first; canary or shadow traffic
- Segments (language, plan); ambiguous metrics such as conversation length interpreted carefully

## Common mistakes

- Thumbs-up rate as the only metric
- stopping early on a noisy uplift

## Topic guides

- [Evaluation: metrics, evals for LLM systems and statistical rigour](https://gurkanozkan.ai/learn/topics/evaluation.md)
- [Experimentation and causal inference](https://gurkanozkan.ai/learn/topics/experiments.md)
- [Product sense, adoption and growth for AI features](https://gurkanozkan.ai/learn/topics/product-growth.md)
---

*Study material compiled with AI: drafted by a local model (Inkling 2 Mini) from public sources, then checked against those sources by independent AI reviewers (Claude) in November 2026. Not reviewed line by line by a person.*
