Skip to content

ENGINEERING

Evaluating LLM featuresbefore launch.

Language models change between versions and rarely give the same answer twice. Here is why every AI feature needs an evaluation set, how to build a useful one, and how to run it on every change.

  • Codesgenii team
  • 7 min read
  • 23 November 2026
On this page
  1. Why evaluation comes first
  2. Build the set from real examples
  3. Decide how to score
  4. Run it on every change
  5. Keep watching after launch

Why evaluation comes first

Traditional software does the same thing every time. Language models do not. The same prompt can produce different answers, and a new model version can quietly improve one task while breaking another. Without a fixed set of tests, every prompt tweak is a guess, and the first person to notice a regression is usually a customer.

Build the set from real examples

Sit down with the people who will use the feature and collect real inputs: actual customer emails, real documents, genuine questions. Include the hard and awkward ones, the vague requests and the cases where the right answer is to refuse or ask a follow-up. Then agree, together, what a good answer looks like for each.

  • Start with 50 to 200 examples, then grow over time
  • Include edge cases, refusals and tricky inputs
  • Write down what good looks like before you test
  • Add every real-world failure to the set once it is fixed

Decide how to score

Some checks can be automatic: did the output follow the format, did it cite a source, did it include a banned phrase? Others need judgement. You can use a second model as a grader for things like relevance and tone, but check its scores against human reviews regularly so you trust the grader too.

Run it on every change

Treat the evaluation like unit tests. Run it automatically whenever a prompt, model, retrieval setting or tool changes, and block a release if quality drops below the agreed bar. This turns AI development from trial and error into normal engineering.

Keep watching after launch

Real users will find cases your test set missed. Log inputs and outputs (with privacy controls), collect thumbs up and down, and review a sample every week. The best evaluation sets are never finished, they grow with the product.

LET'S TALK

Have a problem worthsolving with software?

Tell us where you are and where you want to be. We reply within one business day. (placeholder)

Next step: discovery callYouDiscovery call