Skip to content
Byte Yatra Blogs

Twenty real tasks beat a thousand synthetic ones

How to build an evaluation set that catches regressions before your users do

Byte Yatra Team

2 min read ·

Every change to an agent, a new prompt, a new tool, a new model, can make it better at one thing and worse at another. Without an evaluation set you find out from users. With a small, honest one you find out in minutes.

Start from real logs

Pick twenty tasks your users actually sent, with outcomes you can check automatically: a file exists, a test passes, a row changed.

  • Real tasks carry the messy wording, typos and missing details that synthetic ones smooth away.
  • Automatic checks mean you can run the set on every change, not once a quarter.
  • Twenty is enough to spot a regression and small enough to read every failure.

Read the failures yourself. The score tells you that something broke; the transcript tells you what.

Track three numbers

Success rate, steps per task and cost per task. A change that raises success but doubles cost is a decision, not a win.

MetricWhy it mattersWarning sign
Success rateDoes it do the job?Drops on any change
Steps per taskIs it wandering?Creeps up week after week
Cost per taskCan you afford it at scale?Jumps with a new model or prompt

Write checks, not opinions

Where you can, check outcomes in code:

def check_refund_task(env):
    order = env.db.get_order("ORD-1042")
    assert order.status == "refunded"
    assert env.outbox.count(to="asha@example.com") == 1

For answers that cannot be checked mechanically, use a short rubric and grade a sample by hand. A model can help grade, but spot-check it against your own judgement.

Grow the set from incidents

Every time something goes wrong in production, turn it into a new task. After a few months the set reflects the problems that really happen, not the ones you imagined.

Run it everywhere

Run the full set before every release and a smaller subset on every pull request. Keep the results over time; a slow slide is easier to see on a chart than in a single run.

Responses

Loading responses