Guides · Choose, switch and retire models

Build a test set (golden dataset) from your real prompts

Updated 2026-12-02

Short answer: a test set (or "golden dataset") is a list of real inputs your product sends to a model, each with a description of a correct answer. Pull 30–100 from your logs: mostly typical cases, plus the hard and weird ones that have gone wrong before. For each, write checks (not a perfect answer to match word for word). It's the one piece of an AI feature you keep through every model change.

Where to get the prompts

Don't write the inputs yourself from scratch. Made-up inputs are cleaner than real ones, so models look better on them than they'll do in production.

How many

SizeWhat it can tell you
10–20Whether a model is in the right league. Not enough to choose between two close ones.
30–50Big differences: format errors, a model that's clearly worse, cost and speed.
100+Differences of a few percent in pass rate. Worth it for a high-volume feature.

With 50 prompts, one more failure moves the pass rate by 2 points. Read differences of 1–2 failures as a tie.

What a test case contains

id:       12
prompt:   Extract the invoice fields as JSON
input:    (invoice text from a real customer, anonymized)
checks:   valid JSON
          has fields: date, total, vat
          total equals 1,284.50
notes:    date written as 03/04 — European format, must be April 3

Mix

Privacy

Real prompts can contain personal data. Replace names, emails, addresses and account numbers with realistic fakes before the set leaves your systems, and only send it to providers whose API terms you've accepted for your production data anyway.

Keep it alive

Add a case every time a wrong answer reaches a user. Re-run the set when you change a prompt, when a model is deprecated, and when a new model might be cheaper. That's how you compare models on your own prompts in minutes instead of a day.

Let every new model take your test, automatically

Modeldrop (in development) keeps your prompts and your rules for a correct answer. Every time a major lab releases a model, it runs your prompts on it, compares the results with the model you use today and emails you the verdict: how many pass, what it would cost at your volume and how fast it is. No API keys, no eval code.

See the founding offer

Related guides