Home / Insights / Generative AI and LLMs
Generative AI and LLMs
LLM Evaluation in Practice: Combining Offline Test Sets, User Feedback and A/B Tests
No single evaluation method tells you whether an LLM feature is good enough. Offline test sets, online feedback and controlled A/B tests each answer a different question, and a release process needs all three in the right order.
Key takeaways
- Offline test sets answer is this change safe to ship?; online signals answer is it working for real users?; A/B tests answer is it better than what we had? Do not ask one layer to do another layer’s job.
- Build the offline set from real inputs, include edge cases and grade with code first, an LLM judge second and humans last, as most model providers’ own evaluation guidance recommends.
- Thumbs up and down ratings are useful but biased: treat them as a prompt for investigation, and lean on behavioural signals such as acceptance, edits and retries.
- Run A/B tests only for decisions where the difference matters to the business, define the primary metric and guardrails before launch, and watch for novelty effects.
On this page
- Why one evaluation method is never enough
- Layer one: building an offline test set that catches regressions
- Layer two: reading online feedback without being misled by it
- Layer three: when an A/B test is worth running
- How to decide which layer to invest in first
- Putting it into practice: a 6-week rollout plan
- Risks, costs, governance and a pre-launch checklist
- Frequently asked questions
- Sources and methodology
Most teams that ship a large language model (LLM) feature start evaluating it the same way: someone tries twenty prompts, the answers look reasonable, and the feature goes live. A month later, a prompt tweak or a model upgrade quietly breaks a use case nobody re-tested, and the first sign is a support ticket. The problem is not a lack of effort. It is that a single informal check is being asked to answer three different questions at once.
This article is for product owners, CTOs and QA leads who own an LLM feature in production, or are about to. It sets out a three-layer approach we use in QA on LLM application development projects: offline test sets that gate each release, online signals that tell you how the feature behaves with real users, and A/B tests for the decisions where you need causal evidence. For each layer it covers what to build, what it costs in effort, where it misleads, and how the layers connect into one release process.
Why one evaluation method is never enough
An LLM feature can change behaviour even when your code has not, because prompts, models and retrieved data all move. It helps to separate three questions, because each needs different evidence:
- Is this change safe to ship? Before release, you need a repeatable check that a new prompt, model or retrieval setting has not broken known cases. This is the job of an offline test set.
- Is the feature working for real users? After release, users ask things your test set never imagined. You need online signals: explicit feedback, behavioural data and sampled human review.
- Is version B better than version A? When a change affects cost, conversion or retention, opinions and offline scores are not enough. You need a controlled experiment.
The layers depend on each other. Online signals feed new cases into the offline set. Offline scores decide which candidates are worth an A/B test. A/B results tell you which offline metrics actually predict user value. If you already run release checks for AI features, our earlier piece on evaluation sets, regression checks and human review covers the release-gate mechanics in more depth; here the focus is on how the three layers fit together.
A quick comparison
| Layer | Question it answers | When it runs | Main strength | Main blind spot |
|---|---|---|---|---|
| Offline test set | Did we break anything we know about? | Every prompt, model or pipeline change | Fast, repeatable, cheap per run | Only covers cases you thought of |
| Online feedback and monitoring | How does it behave with real users? | Continuously in production | Real distribution of inputs | Noisy, biased, hard to attribute |
| A/B test | Is the new version better for users and the business? | For significant changes only | Causal evidence on outcomes | Slow, needs traffic, costs exposure |
Layer one: building an offline test set that catches regressions
The offline test set is your safety net. It is a versioned collection of inputs, each with an expected outcome or grading rule, that you run against every candidate change before it reaches users.
Where the cases come from
Anthropic’s guidance on developing evaluations makes two points that match our experience: test cases should mirror the real-world distribution of inputs, and they should deliberately include edge cases, such as missing or irrelevant input, very long input, harmful requests and ambiguous cases where humans would also disagree. In practice we build the first version from four sources:
- Real requests from logs, support tickets or a pilot, anonymised before they enter the set.
- Business-critical scenarios that the product owner names explicitly: the questions that would embarrass you or cost money if answered wrongly.
- Known failure cases from earlier testing, each added as a regression case once fixed.
- Adversarial cases: prompt injection attempts, out-of-scope requests and requests that should be refused.
How to grade: code, model, then human
Grading is where most of the cost sits. The same Anthropic guidance recommends choosing the fastest, most reliable method that works: code-based grading first, LLM-based grading for nuanced judgements once you have checked its reliability, and human grading only where nothing else will do. It also notes that many automatically graded cases with slightly lower signal usually beat a handful of hand-graded ones.
- Code-based checks: exact match for classifications, JSON schema validation for structured output, presence of required phrases or citations, absence of banned content, length limits.
- LLM-as-judge: a second model scores the answer against a written rubric, ideally returning a constrained output such as pass or fail, or a score from 1 to 5.
- Human review: a domain expert grades a sample, mainly to calibrate the judge and to review cases the judge marks as uncertain.
Can you trust an LLM judge?
The research is encouraging but comes with caveats. In Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena (Zheng et al., 2023), the authors found that strong models used as judges reached over 80% agreement with human preferences, similar to the level of agreement between humans. The same paper documents position bias, verbosity bias and self-enhancement bias. Practical mitigations follow directly:
- Write specific rubrics with examples of pass and fail, not a request to rate quality.
- When comparing two answers, run the comparison twice with positions swapped.
- Where practical, use a different model as judge from the one that produced the answer.
- Calibrate: have a human grade 50 to 100 judged cases and measure agreement before relying on the judge’s scores. Recalibrate when you change the judge model or rubric.
Make it a release gate
An offline set only protects you if it runs automatically and has teeth. Store test cases alongside prompts in version control (see our guide to prompt management and versioning), run the suite in CI on every change, and write down the rule: for example, no drop in pass rate on critical cases, and no more than a two-point drop overall without product owner sign-off.
Layer two: reading online feedback without being misled by it
Once the feature is live, real users become your largest source of evaluation data. The difficulty is that most of that data is indirect, and the direct part is biased.
Explicit feedback: useful, but skewed
Thumbs up and down buttons, star ratings and free-text comments are cheap to add and easy to understand. Microsoft’s Experimentation Platform team, in its metric framework for evaluating LLM features, notes that such ratings tend to have low sample sizes and selection bias, because the users who leave feedback are not representative, and recommends using them alongside behavioural metrics rather than instead of them. We treat a thumbs-down as a pointer to a conversation worth reviewing, not as a quality score.
Behavioural signals: what users do
The same framework describes a funnel from the LLM being triggered to the user accepting or rejecting the response, plus quality signals such as how quickly users re-prompt and how much they edit the output before keeping it. Translated to common feature types:
| Feature type | Positive signal | Negative signal |
|---|---|---|
| Drafting assistant (emails, reports) | Draft accepted with light edits | Draft discarded or heavily rewritten |
| Support chatbot | Conversation ends without escalation; no repeat contact | Rephrased question, request for a human, repeat contact within days |
| Search or Q&A over documents | Click on cited source; no follow-up query | Immediate reformulation; no citation opened |
| Classification or extraction | Result passes downstream checks unchanged | Manual correction by an operator |
Sampled human review
Behavioural signals tell you something is wrong; they rarely tell you what. Schedule a weekly review of a sample of production conversations, stratified so it includes thumbs-down cases, escalations and a random slice of ordinary traffic. Reviewers tag each failure with a category (wrong fact, missed context, tone, refusal when it should have answered, and so on). The tagged failures become new offline test cases. This loop, production to review to test set, is what keeps the offline layer relevant.
Layer three: when an A/B test is worth running
An A/B test exposes a random share of users to a new version and compares outcomes against a control group. It is the only layer that gives causal evidence that a change improves what the business cares about. It is also the slowest and most expensive layer, so reserve it for decisions where the answer matters.
Good candidates for a controlled test
- Switching to a cheaper or faster model, where you need proof that user outcomes hold up.
- A substantial prompt or retrieval redesign that scored similarly offline but changes the style of answers.
- Adding an LLM feature to a flow that already has conversion or retention metrics, such as onboarding or checkout support.
Designing the test
- Define one primary metric tied to user value, such as task completion, acceptance rate or escalation rate.
- Define guardrail metrics that must not get worse: latency, cost per session, content-filter triggers and complaint rate.
- Estimate sample size before you start, using your baseline rate and the smallest difference worth detecting. If you cannot reach it in a few weeks, an A/B test is the wrong tool; use offline evaluation plus a staged rollout instead.
- Fix the duration in advance and avoid stopping early when results look good, which inflates false positives.
- Watch for novelty effects. The Microsoft framework suggests tracking retention measures, such as active days and returning users of the LLM feature, partly to detect novelty. Early enthusiasm for anything new often fades.
Lower-risk experiment types
The same framework describes two useful variants before a full A/B test. A dark launch runs the new component without showing its output to users, which checks capacity and errors. A shadow experiment runs both versions on the same requests but shows only the control output, which lets you compare offline-style scores on real traffic without exposing anyone to the new version. Combined with feature flags and canary releases (see our comparison of blue-green, canary and feature-flag releases), these give you a graded path from offline evaluation to full exposure.
How to decide which layer to invest in first
Not every team needs all three layers at full strength on day one. The right mix depends on risk, traffic and how often the feature changes.
| Situation | Prioritise | Can defer |
|---|---|---|
| Pre-launch, internal pilot, under 100 users | Offline test set with code checks and human review | A/B testing (not enough traffic) |
| Regulated or high-stakes answers (health, finance, legal) | Offline critical cases with strict gates; human review of samples | LLM-judge-only grading for critical cases |
| Consumer feature with high traffic | Behavioural metrics and A/B tests for big changes | Large hand-graded sets; rely on judge plus sampling |
| Frequent model or prompt changes | Automated offline suite in CI | Weekly manual comparisons |
| Cost pressure, considering a cheaper model | Offline comparison on quality, cost, latency; then shadow or A/B test | Changing the prompt and the model at the same time |
A useful rule: the offline layer is non-negotiable for any feature that will change after launch, which is all of them. Online signals are required as soon as real users arrive. A/B tests are an investment you make when traffic allows and the decision is worth it. If you are still choosing a model, run a structured comparison first; our method for comparing GPT-4, Claude, Gemini and open models uses the same test-set discipline.
Putting it into practice: a 6-week rollout plan
The following plan suits a team that has a live or nearly live LLM feature and no structured evaluation yet. Timelines are illustrative and assume one QA engineer and part-time involvement from a developer and the product owner.
- Week 1: agree success criteria. Write down what good looks like in measurable terms. Anthropic’s guidance suggests criteria that are specific and measurable, and notes that most applications need several at once, such as accuracy, consistency, tone, privacy, latency and cost. Name the cases that must never fail.
- Week 2: build the first test set. Collect and anonymise real inputs, add critical and adversarial cases, and write grading rules. Start with code-based checks wherever possible.
- Week 3: add and calibrate an LLM judge. Write rubrics, have a human grade a sample, measure agreement and adjust the rubric until agreement is acceptable to the product owner.
- Week 4: wire it into CI. Run the suite on every prompt, model or retrieval change. Publish a short report: pass rates by category, cost per run, latency, and differences from the last release.
- Week 5: instrument production. Add feedback buttons, log behavioural events (accept, edit, retry, escalate) with privacy controls, and build a dashboard that includes cost and latency.
- Week 6: start the review loop. Run the first weekly sampled review, tag failures, add them to the test set, and decide which upcoming change, if any, justifies an A/B test.
Risks, costs, governance and a pre-launch checklist
Evaluation is not free, and a poorly designed programme can create false confidence. The common failure modes we see:
- Teaching to the test. Prompts are tuned until the offline set passes, while real-world quality stalls. Keep a held-out portion of the set that is not used during prompt iteration, as Anthropic’s guidance also recommends before shipping.
- Stale test sets. A set built at launch and never updated slowly stops representing users. The weekly review loop is the fix.
- Uncalibrated judges. An LLM judge that nobody has checked against humans is an opinion, not a measurement.
- Privacy leaks into evaluation data. Production conversations copied into test sets can contain personal data. Anonymise before storage, restrict access and apply your data retention rules to evaluation data too.
Governance framing
The NIST AI Risk Management Framework, released in January 2023 for voluntary use, and its Generative AI Profile (NIST AI 600-1, released in July 2024) give organisations a common vocabulary for measuring and managing AI risks. Even if you are not formally adopting either, mapping your three evaluation layers to measuring and managing risk makes it easier to answer the questions enterprise customers and auditors increasingly ask about how AI features are tested.
Pre-launch checklist
- Success criteria written down and agreed by the product owner.
- Versioned offline set with real, critical and adversarial cases, plus a held-out portion.
- LLM judge calibrated against human graders; code checks used wherever possible.
- Suite runs on every change, with a written release-blocking rule.
- Cost, latency and behavioural events (accept, edit, retry, escalate) tracked in production.
- Weekly sampled review feeding failures back into the test set.
- A/B tests pre-register metric, guardrails, sample size and duration.
Frequently asked questions
How many test cases do we need before launch?
There is no universal number. Start with enough cases to cover every distinct intent and every critical scenario at least a few times, plus adversarial cases. For a focused feature that is often a few hundred; grow it from production failures rather than trying to anticipate everything up front.
Can we rely on an LLM to grade our LLM?
For many judgements, yes, once calibrated. Research on LLM-as-judge found strong models agreeing with human preferences over 80% of the time, but also documented position and verbosity biases. Measure agreement with human graders on your own data, use specific rubrics, and keep humans on the critical cases.
Are thumbs up and down ratings worth adding?
Yes, because they are cheap and point you to conversations worth reviewing. But only a small, unrepresentative share of users click them, so pair them with behavioural signals such as acceptance, edits, retries and escalations.
We do not have much traffic. Can we still run A/B tests?
Often not with enough statistical power. With low traffic, rely on a strong offline set, shadow comparisons on real requests, pairwise human review and a staged rollout behind a feature flag.
What should block a release?
Agree it in writing before the first release: typically any failure on critical cases, a pass-rate drop beyond an agreed threshold, a safety regression, or a cost or latency increase above budget without sign-off.
Sources and methodology
Guidance reflects PoliteTech delivery experience. The external references below informed specific points in this article.
- Anthropic: Define success criteria and build evaluations (documentation) — accessed 9 November 2026. Guidance on measurable success criteria, edge-case test design, held-out sets and the order of grading methods (code, LLM, human).
- Zheng et al.: Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena (arXiv, 2023) — accessed 9 November 2026. Over 80% agreement between strong LLM judges and human preferences; position, verbosity and self-enhancement biases.
- Microsoft Research Experimentation Platform: How to Evaluate LLMs, A Complete Metric Framework (2023) — accessed 9 November 2026. Online metric categories, bias in explicit feedback, novelty effects, dark launches and shadow experiments.
- NIST: AI Risk Management Framework — accessed 9 November 2026. AI RMF release (January 2023) and the Generative AI Profile, NIST AI 600-1 (July 2024), used for the governance framing.
Related reading
Continue your research
Need an evaluation process your team can actually run on every release?
We can help you build the test set, calibrate an LLM judge and wire evaluation into CI and production monitoring for your LLM feature.
