Nythrex

Guide · AI quality

LLM evals for non-ML teams: measure quality, not vibes.

“It seems better” is how most teams decide whether an AI change is an improvement. It’s also how regressions reach production. Evaluations — evals — are simply automated tests for AI behaviour. You don’t need a data-science team to build useful ones; you need real examples, clear criteria and discipline.

By Nythrex EngineeringUpdated 3 min read

Eval setCollect realcasesDefine “good”ScoreautomaticallyChange thesystemCompare runsAdd failures ascases

Why “try a few prompts” doesn’t work

LLM outputs vary, and improvements in one area often cause regressions in another. A change that fixes the three examples you tried may break twenty you didn’t. Without a fixed test set, every discussion about quality is opinion against opinion — and the loudest stakeholder wins.

Build your first eval set in a week

  1. 1

    Collect real inputs

    Pull 50–100 real questions, tickets or documents from the actual workflow. Include common cases, hard cases, and cases where the right answer is “I don’t know”.

  2. 2

    Write what “good” means

    For each case, write the reference answer or the key facts it must contain — together with the domain experts. This is the most valuable hour of the project.

  3. 3

    Tag the cases

    Label by type (product area, language, difficulty) so you can see where the system is weak, not just the average.

  4. 4

    Automate the run

    A script that runs every case through the system and stores outputs, scores, cost and latency per run.

  5. 5

    Keep it alive

    Every production failure becomes a new case. The set grows with real usage.

How to score outputs

MethodGood forWatch out for
Exact / rule-based checksClassification labels, extracted fields, JSON format, required phrasesBrittle for free text
Reference comparisonAnswers with known key factsParaphrases can be wrongly marked as wrong
LLM-as-judgeFree-text quality: correctness, faithfulness to sources, toneJudges have biases — calibrate against human ratings
Human reviewCalibration, ambiguous cases, final sign-offSlow and expensive — use for samples
Retrieval metricsRAG: did the right passage reach the context?Needs labelled relevant passages

Metrics that matter for most teams

  • Correctness — is the answer right?
  • Faithfulness — is every claim supported by the provided sources? (RAG)
  • Refusal quality — does it decline when it should, and not when it shouldn’t?
  • Format compliance — valid JSON, required fields, length limits.
  • Safety — no leakage of personal data, no policy violations, resists prompt injection.
  • Cost and latency per case — reported next to quality, every run.

Evals in CI: the habit that prevents regressions

  1. 01

    Change

    Prompt, model, retrieval or tool

  2. 02

    Run eval set

    Automatically, on every change

  3. 03

    Compare

    Against the last accepted run

  4. 04

    Review diffs

    Which cases got better or worse

  5. 05

    Ship or fix

    Thresholds decide

Treat the eval run like a test suite: if quality on a critical category drops below a threshold, the change doesn’t ship. When a model provider announces a new version, the same suite tells you in an hour whether switching is safe.

Frequently asked questions

Want a second opinion on your project?

Tell us what you’re building and where you’re stuck. We’ll reply within one business day with the most practical next step — even if that step isn’t us.

Start a project