Prompting and Everyday Use

How to Test Whether a Prompt Change Actually Improved Results

A small, repeatable method for comparing two prompts on the same inputs, scoring blind and spotting changes that only look better.

Key takeaways

  • Collect a fixed set of test inputs, including awkward ones, and reuse it for every comparison.
  • Write pass or fail checks before looking at any output.
  • Run each version more than once, since a single run mixes the effect of your edit with chance.
  • Score blind when judgment is involved, and read the failures instead of only counting them.
  • Change one thing at a time, and retest when the tool or model underneath changes.

To know whether a prompt change helped, run the old and new versions on the same set of realistic inputs, score the outputs against criteria you wrote in advance, and compare the results without knowing which prompt produced which. One good reply after an edit proves very little, because the same prompt can give different replies from run to run.

You do not need software or statistics training for this. A spreadsheet, ten or twenty test inputs and some honesty are enough for most everyday work.

Why impressions mislead

You edit a prompt, try it once, and the reply looks better. Several things could explain that. Your edit may have helped. The model may simply have drawn a better reply this time. You may have tested an easy input. Or you expected improvement and read generously.

Most chat tools include some randomness in how they pick words, which is why identical requests can yield different answers. The article on temperature and randomness explains the setting behind much of this.

There is also a quieter trap. A change that fixes the case in front of you can break cases you are no longer looking at. Telling a support-reply prompt to "be brief" may cure rambling and also cut the refund conditions from the replies that need them. Only a fixed set of inputs will show you that.

Build a small test set

A test set is a saved collection of inputs that you run every version against. For a prompt that turns meeting notes into action lists, it would be a folder of notes.

Aim for variety over volume. Ten to thirty inputs is a practical range for personal or team use. Include these kinds.

  1. Ordinary cases that make up most of the work.
  2. Very short and very long inputs.
  3. Messy ones with typos, contradictions or missing details.
  4. Cases where the right answer is "there is nothing to do" or "ask for more information."
  5. Every input that has caused a real failure before.

Remove or replace names and other private details. For each input, note what a good output must contain. "Two action items; the budget question is unresolved and has no owner." Writing that note takes a few minutes and spares you from rejudging each case from memory.

Write checks before you look

Criteria written after reading outputs tend to describe whatever the preferred version did well. Write them first, and make as many as possible answerable with yes or no.

Check Type How to judge
Every action item has an owner or says "unassigned" Pass or fail Read the list
No item that is absent from the notes Pass or fail Compare with source
Under 150 words Pass or fail Count
A newcomer could act on it 1 to 3 rating Human judgment

Mark which failures are serious. An invented task assigned to a real person is far worse than a list that runs ten words long. A version that wins on average but adds one serious error may be the worse prompt.

Run the comparison fairly

Hold everything constant except the thing you changed. Use the same tool, the same model setting if you can choose one, the same attachments and a fresh chat for each input. Earlier messages in a chat influence later replies, so running twenty tests in one long thread contaminates them. Switch off memory or standing instructions that might differ between runs.

Run each input at least twice per version when the stakes justify it, more if results swing widely. Save every output with a label for the version and the input.

Then hide the labels. Paste the outputs into a sheet in shuffled order, with a code column you cover up, or ask a colleague to do the shuffling. Score each output against your checks before revealing which prompt made it. Blind scoring removes the pull of knowing which version you hope will win.

A prompt testing loop
Read failures Pick the next single change. Score blind Hide which version made each. Fix the inputs Save realistic and awkward cases. Set checks Decide what passes first. Run both Same setup, repeated runs. 1 2 3 4 5 Fix the inputs Save realistic and awkward cases. 1 Set checks Decide what passes first. 2 Run both Same setup, repeated runs. 3 Score blind Hide which version made each. 4 Read failures Pick the next single change. 5

Read the numbers with modesty

Here is a made-up example. You test 20 inputs, once each, for the old prompt and the new one. Count the outputs that pass all checks.

Old prompt: 13 of 20 pass = 65%
New prompt: 15 of 20 pass = 75%
Difference: 2 outputs = 10 percentage points

Ten points sounds solid, but it rests on two outputs. Run the same test again and the gap might widen, vanish or reverse. With small sets, treat a difference of one or two cases as unproven.

Look case by case instead. Which inputs flipped from fail to pass, and which flipped the other way? In this hypothetical, the new prompt might fix five cases and break three, for a net gain of two. Those three new failures are the most important thing in the experiment.

A result is more convincing when the gain repeats across runs, when the fixed cases share the problem your edit targeted, and when nothing serious got worse.

Sort failures before you edit

A pass count tells you how often something went wrong. The failures tell you why. Read every one and give it a short label, such as "invented owner," "missed item," "too long" or "wrong format."

Then count the labels. If most failures share one, that is your next edit. If they scatter across many labels, the prompt may be close to as good as wording can make it, and the remaining problems may need a different fix.

Some failures are not the prompt's fault. The notes may be so thin that no reader could extract an owner. The file may not have uploaded completely. Your check may be ambiguous, so that two reasonable people would score the same output differently. Repair the input process or the check in those cases, and rescore both versions with the corrected check so the comparison stays fair.

Also read a few passes closely. An output can satisfy every check and still be unhelpful in a way you had not written down. When that happens, add a check, and note the date you added it.

Change one thing at a time

If you add an example, shorten the instructions and request a table all at once, you cannot tell which edit did what. One may help while another hurts, and the net result hides both.

Keep a short log: version number, what changed, why, pass count and notes. It stops you from circling back to ideas you already rejected, and it lets a coworker see how the prompt got its odd-looking clauses.

Watch for overfitting, which means tuning the prompt so closely to your test inputs that it handles them well and new ones poorly. A sentence like "if the notes mention the spring fundraiser, list the venue" is a warning sign. Hold back a few inputs that you never use while editing, and run them only when you think you are finished.

Can an AI do the scoring?

You can ask a model to grade outputs against your checks, which saves time on larger sets. It is a judge with habits of its own. It may favor longer answers, the first option shown or writing that resembles its own style.

If you use one, give it narrow yes-or-no questions with the source text attached, shuffle the order, and compare its grades with your own on a sample first. Keep human review for anything serious. The same caution applies to judging your own work, covered in getting critique without flattery.

Simple checks do not need a model at all. Word counts, required headings and forbidden phrases can be verified by eye or with spreadsheet formulas.

Retest when the ground moves

Providers update models and products, sometimes with little notice. A prompt that scored well in spring may behave differently by autumn. Rerun your test set after an announced change, after you switch tools, or when users report odd results. Because the inputs and checks are saved, this takes minutes.

When a new failure turns up in real use, add that input to the set. Over time the collection becomes a record of what your task demands. It pairs well with a personal prompt library, where each entry can point to its tests, and the broader idea of testing an AI tool before relying on it.

Finally, match effort to stakes. A prompt for your grocery list needs no experiment. One that drafts messages to hundreds of customers deserves a test set, a second reviewer and a plan for what happens when it gets one wrong.

Written for 4ArtificialIntelligence with AI writing tools and not reviewed line by line by a person. Check anything you rely on against a textbook or primary source. Report an error.

Keep reading

All 55 articles in Prompting and Everyday Use →

Latest news on this topic