Skip to content
agenoverse
AI Development

Evaluating an LLM feature

A lightweight evaluation routine: a small real test set, a yes/no rubric, and a habit of re-running it before every release.

Updated

  • Level: Intermediate
  • 45 min to complete

// Before you start

This guide builds on these:

You do not need special tooling to evaluate an AI feature. You need a test set, a rubric and the discipline to run them.

Build the test set#

Start with twenty real or realistic inputs. For each, write what a good answer contains. Keep a few hidden for the final check.

Choose the rubric#

Three to five yes/no questions: correct, complete, in format, in scope, safe. Binary questions are easier to agree on than scores.

Automate the boring part#

A script that runs every example and prints "passed / total" is enough. Store the results in git so you can compare releases.

Read the failures#

The number tells you whether something changed. The failures tell you why. Read every one, and add the pattern to your test set.

// Try it

Build your first test set

Pick one feature of yours that uses an LLM. Write ten realistic inputs for it.

  1. For each input, write one sentence: what a good answer contains.
  2. Turn those sentences into three yes/no rubric questions.
Show a solution

A good first set mixes easy, typical and awkward inputs. For a ticket summariser:

  • An easy one: a clear, short complaint.
  • A typical one: a long ticket with some noise.
  • An awkward one: a ticket in two languages, or with no real question.
markdown
Rubric1. Does the summary say what the customer wants?2. Is it in three bullets or fewer?3. Does it avoid guessing at causes?
Which of these belong in a good rubric? Select all that apply.

Select all that apply.

Was this guide helpful?

These guides stay current because readers tell us what is off. One tap is plenty.