Development & AI Upgrades · Tutorials

Building an LLM Evaluation Set So Every Change Is Measurable

Without an evaluation set, changing a prompt or a model is guesswork. This tutorial builds a set of dozens to a couple of hundred real business questions, defines a scoring standard, runs batch comparisons, and turns it into a reusable regression baseline.

Estimated time: About 20 minutesService: Enterprise AI Applications & Transformation

Steps

  1. Collect real questions

    Draw questions from support logs, tickets and sales conversations, covering frequent cases and edge cases in roughly real proportions. Do not invent questions: invented ones tend to be answered well and hide real defects.

  2. Write expected points, not reference answers

    For each question, note the key points that must appear: policy basis, application channel, time limits, common pitfalls. Wording varies every run, so scoring against coverage is stable while verbatim comparison is not.

  3. Use one shared table

    Record id, question, expected points, model output, score, question type and notes. Keep the fields fixed so each batch run appends a column and comparisons stay straightforward.

  4. Automate the batch run

    Write a script that calls the API for each row and writes output into a new column, also recording latency and token usage. Automate whatever can be judged programmatically: format validity, presence of citations, fabricated links.

  5. Double-score and arbitrate

    Have two people score independently against the same rubric, then discuss disagreements and turn the conclusions into rules. Write the rubric down, or scores stop being comparable when the scorer changes.

  6. Compare versions and guard regressions

    Run the full set whenever you change a prompt, model or retrieval setup, and compare against the previous version. A few improved examples prove nothing; confirm nothing else got worse. Feed production failures back into the set.

Practical tips

  • Realism beats volume: a few dozen real questions expose the main problems
  • Change one variable at a time, otherwise you cannot attribute the result
  • Model self-scoring is triage only; keep sampled human review

FAQ

What if there is no labelling capacity?

Start with 30 to 50 core scenarios labelled by the business side rather than engineers. They know what a correct answer looks like.

How often should it run?

On every change, plus a monthly baseline run to catch drift from data and business shifts.

Related news

Explain your case first, then confirm the scope

Tell us your entity, business model and current progress. We will confirm what we can assist with and what you need to do before discussing fees.