LLM evals for product teams: a practical starting point
How to build a small, useful evaluation set for your AI feature so every prompt or model change comes with a number, not a feeling.
Samed Škulj
· 3 min read
Without evals, every change to an AI feature is a guess. You tweak the prompt to fix one bad answer and quietly break three others. You switch to a cheaper model and nobody knows if quality dropped. Evals turn "it feels better" into "it passes 46 of 50 instead of 41".
You do not need a platform or a research team to start. You need a spreadsheet's worth of examples and a script.
What an eval actually is
An eval is a test suite for model behaviour. Each case has:
- an input (the same thing your app sends to the model),
- an expectation (what a good output looks like),
- a check that compares the two and returns pass, fail or a score.
Run all cases, get a number. Change something, run again, compare.
Step 1: collect 30 to 50 real cases
Pull real inputs from production or from your beta. Include:
- Typical cases that make up most traffic.
- Hard cases your team argued about.
- Known failures from user reports or your own testing.
- Edge cases: empty input, very long input, another language, rude input.
Write the expected output, or at least the properties a good output must have. This is the slow part, and the most valuable. It forces the team to agree on what "good" means.
Step 2: write checks, cheapest first
Use plain code for everything you can:
- Output parses as JSON and matches the schema.
- Required fields are present and the right type.
- An extracted value equals the expected value.
- Length is within limits.
- Forbidden content is absent (internal notes, other customers' names).
For things code can't judge, such as "is this reply polite and does it answer the question", use a second model as a grader. Give it a short rubric and ask for a pass or fail with a one-line reason. Keep the rubric specific: "mentions the refund amount from the order" beats "is helpful".
Check the grader itself: grade 20 outputs by hand and see if it agrees with you. If it doesn't, fix the rubric before you trust its numbers.
Step 3: run it on every change
Wire the eval into a script your team can run locally and in CI:
npm run eval -- --suite ticket-replies
Print a table: case, pass or fail, reason. Save results with the prompt version and model name, so you can compare runs.
Run it when you:
- change a prompt,
- change the model or its settings,
- change what context you retrieve,
- upgrade the SDK or provider.
Step 4: feed production back in
Your eval set should grow every week. When a user rejects an output, reports a problem, or edits a draft heavily, look at it. If it shows a pattern, add it as a case. Over time the set becomes a precise description of what your feature must do.
Track a few production metrics alongside:
- Accept rate: outputs used without edits.
- Edit distance: how much users change drafts.
- Reject or regenerate rate.
Evals tell you about quality before release. These tell you about quality after.
Common mistakes
- Only testing happy paths. The bugs live in the edge cases.
- Changing the eval set and the prompt in the same commit. You can no longer compare.
- Chasing 100%. Some cases are ambiguous. Mark them and move on.
- Trusting a grader you never checked. Graders drift too.
Where this fits
Evals are the step that makes the rest of the process safe: picking and shipping the first feature, swapping to a cheaper model, or adding guardrails. Every AI feature build I do ships with an eval suite your team can keep running after I hand it over.

Written by Samed Škulj
Senior Full-Stack Engineer since 2021. I have shipped with teams at Deel, HTEC Group (for Zoox), Ministry of Programming, and now help SaaS teams add AI features and get AI-built apps ready for production. LinkedIn