New Tool Radar

AI Concepts

How to Compare Two Prompts on the Same Task Side by Side

Compare two prompts on the same task side by side by running both on the same test questions and scoring the answers.

Schematic illustration of compare two prompts on the same task side by side: step one write the test set, step two run both prompts, step three score and keep the winner.

Two prompts can look equally good until they are tested on the same questions. The way to choose is to run both on the same set of test questions, score the answers against the same rules, and keep the winner. Same questions, same scoring, same model and settings: change only the prompt, or the comparison proves nothing.

Prerequisites

  • Two prompts for the same task.
  • A set of at least 5 test questions with known good answers.
  • A scoring rule: what counts as correct for each question.

Steps

Step 1: Write the test set

Write 5 test questions with known good answers. Use the same set for both prompts; a different set for each prompt is not a comparison.

Step 2: Run both prompts

Run each prompt on all 5 questions, with the same model, temperature and other settings. Save the answers side by side, so the comparison is visible.

Step 3: Score and keep the winner

Score each answer against the rule: correct or not, with no partial credit unless the rule allows it. Keep the prompt with the higher score, and keep the test set with it, so the choice can be re-checked later.

Worked example: Bluebell Bakery product questions

The fictional Bluebell Bakery compares two prompts for answering product questions, on 5 test questions.

Prompt Questions correct Score Verdict
Prompt A: short instruction 3 of 5 3 Loses
Prompt B: role plus rules 5 of 5 5 Wins

Prompt B answers 5 of 5 questions and prompt A answers 3 of 5, so the bakery keeps prompt B with its test set.

Expected result. Both prompts are scored on the same test set, and the winner is kept with the evidence. UNTESTED: this guide was not run against a live model or API. The worked example below is fictional practice material, and its result is the expected result, not a measured one.

Limits

  • Five questions is a small test; use more before a final decision on an important prompt.
  • Keep the model and settings identical, or the comparison measures the settings, not the prompts.
  • This guide does not cover testing with real users.

Sources

See all