AI / Engineering journal

How to Evaluate an LLM Feature Before Launch

LLM features look great in demos and fail on real inputs. A practical way to measure quality before launch and keep measuring it every time something changes.

Sylantix Engineering Team7 min read
A laptop evaluation table beside printed AI test cases.
Sylantix / Engineering journalLLM Evaluation · LLM · AI
In this article 10 sections
TL;DR

Key takeaways

  • A demo shows the best case. An evaluation set of real, messy inputs shows what users will get.
  • Score the things that matter for the feature: correctness, grounding in sources, format, sensible refusals and tone.
  • Model-graded checks scale, but they need to be calibrated against human judgment on a sample before you trust them.
  • Rerun the set on every prompt, model or retrieval change, and keep watching live outputs after launch.

Testing beyond the demo inputs

Five good ticket summaries tell you little about how a feature will handle long threads, mixed languages or contradictory messages. Those cases need to be part of the evaluation before release.

A useful evaluation set comes from the inputs users will actually submit. For each example, define what an acceptable answer includes and what would make it wrong, then rerun those checks as the feature changes.

Why demos mislead

Demos are built from inputs the builder understands, usually short, clean and typical. Real traffic is longer, messier and full of cases nobody imagined: forwarded email chains, pasted tables, three languages in one message, a customer who writes in all capitals.

Language models also fail differently from ordinary code. A bug in normal software tends to fail every time. A model fails on some fraction of inputs, often confidently, and the failures cluster around exactly the cases that are hard for people too. You only see that fraction by running many inputs and counting.

Build the evaluation set from real inputs

An evaluation set is a list of inputs paired with what a good output looks like. It does not need to be huge to be useful. A few dozen carefully chosen cases catch far more problems than a few impressive demos.

Where the cases should come from:

  • Real historical data. Past tickets, documents, emails or queries, with personal data removed or masked.
  • The hard cases on purpose. Long inputs, mixed languages, missing information, contradictory instructions, edge formats.
  • Known past failures. Every time the feature gets something wrong in testing or production, add that case to the set.
  • Cases where the right answer is "I don't know". Questions the available information cannot answer, so you can check the feature declines instead of inventing.

For each case, write down what a good answer must contain or must avoid. For retrieval features, note which source passage should support the answer. If you are still deciding how the feature should get its knowledge in the first place, our piece on RAG vs fine-tuning covers that choice.

Decide what to score

"Is it good?" is too vague to measure. Break quality into the properties that matter for this particular feature:

  • Correctness. Are the facts right? Did it extract the right field, the right amount, the right date?
  • Grounding. Is every claim supported by the provided sources, or did the model fill gaps from general knowledge?
  • Format. Does the output follow the required structure, so the rest of the system can parse it?
  • Refusals. Does it decline when it should, and only when it should? Over-refusal is a failure too.
  • Tone and length. Is it suitable for the reader, without padding or a voice that clashes with the product?

Not every feature needs every property. An extraction pipeline lives or dies on correctness and format. A drafting assistant cares more about tone and grounding. Pick the three or four that define success and score those consistently. Extraction features in particular benefit from field-level scoring, the same way the OCR vs intelligent document processing piece recommends measuring accuracy per field rather than per document.

Human review and model-graded checks

There are two ways to score outputs, and you will likely need both.

Human review

People reading outputs against the expected answer is the most reliable method and the slowest. It is essential at the start, when you are still learning what failure looks like, and for properties like tone that are hard to define. Two reviewers who disagree often reveal that the definition of "good" was never clear.

Model-graded checks

Using a model to grade another model's output scales well and makes it practical to rerun the set often. It works best for narrow questions with clear criteria: does this answer mention the cancellation fee, is this claim present in the source text, is the output valid against the schema.

Its limits are real. Graders can share the blind spots of the model being graded, reward confident wording and miss subtle factual errors. Before trusting a grader, score a sample by hand and compare. If the grader and the humans disagree often, fix the grading criteria before relying on the numbers.

Plain code checks belong in the mix too. Schema validation, length limits and required fields are cheap, exact and never get tired.

Treat every change as a regression risk

Model behavior shifts when almost anything changes: a prompt tweak, a new model version from the provider, a different retrieval setting, a change in how documents are split. A fix for one case often breaks two others.

So the evaluation set becomes a regression suite:

  • Run it on every prompt or model change before release, the way unit tests run on code changes.
  • Compare scores against the previous version, not against an absolute target only.
  • Look at the cases that changed from pass to fail, not just the average.
  • Keep the set under version control next to the prompts.

A worked example

Go back to the ticket summaries. A useful evaluation set for that feature might hold forty real tickets: twenty ordinary ones, ten long threads with several replies, five in a second language and five where the customer is clearly upset. For each, a reviewer writes two or three facts the summary must contain, such as the product, the problem and what the customer wants, plus one thing it must not do, such as softening an angry complaint into a polite request.

Scoring then becomes concrete. Did the summary contain the required facts? Did it describe the customer's mood accurately? Did it stay under the length limit? A simple code check covers length, a model-graded check covers whether each required fact appears, and a person reviews the mood cases by hand because that judgment is the hardest to automate.

Run once, this set shows before launch whether the feature copes with long threads, second-language tickets and angry customers. Run on every change afterwards, it stops any of those failures from quietly coming back.

Agree on launch criteria in advance

Decide what "good enough to launch" means before seeing the results, or the results will quietly redefine it. Useful criteria are specific: correctness above an agreed level on the core cases, no ungrounded claims in a defined set of sensitive questions, correct refusals on the unanswerable cases, and a human review step for anything the feature is unsure about.

It also helps to agree what happens below the bar. Often the answer is a narrower launch: the feature drafts, a person approves, and the review step is removed later once the numbers justify it.

Keep measuring after launch

An evaluation set captures what you knew before launch. Production shows you what you did not know.

  • Log inputs and outputs, with appropriate privacy controls, so failures can be reviewed and reproduced.
  • Collect cheap feedback signals such as edits to drafts, thumbs down, or how often users ignore the output.
  • Sample and review a handful of live outputs every week, not only the ones users complain about.
  • Feed new failure cases back into the evaluation set, so the suite grows with the product.
  • Watch cost and latency per feature alongside quality, since a quality fix that doubles the context size has a price.

Build your first evaluation set

Before your next LLM feature ships, collect thirty real inputs, including at least ten you expect to be difficult, and write down what a good answer looks like for each. Run the feature on all of them and read every output. Use the failures to decide what needs work before release. If you want help setting up evaluation as part of an integration, our LLM integration page explains how we build it in from the first release.

Facing this in your own product?

Describe your situation in a few sentences. Our engineering team replies within 24-48 hours on business days, and the first 30-minute consultation is free.

Sylantix Engineering Team

Written by the senior engineers who build these systems for clients: backends, AI features, mobile apps and the infrastructure under them. Questions about your own case go straight to them.

About the team →