aifree.dev

How do I know my new prompt is actually better?

Evals: a fixed question set, a grader and several runs · Builder · 5 min · sampling, llm · after Temperature and sampling

An eval is a fixed set of questions, a grader that scores each answer the same way, and several runs per prompt. A new prompt is better only if it wins on the same set by more than runs vary.

Before you start: could you explain this to a friend?

1 = not at all · 5 = easily

  1. 1 Guess first

    Same 10 questions (“Germany:” → “Berlin”), GPT-2, exact-match grading. Your old prompt scored 2 of 10, your new one 6 of 10, one run each. Averaged over endless runs, how much better is the new prompt?
  2. 2 Look

    Same 10 questions, two prompts

    1 / 4

    old prompt

    France: Paris
    Italy: Rome
    Japan: Tokyo
    Germany:

    new prompt

    Capital cities:
    France: Paris
    Italy: Rome
    Japan: Tokyo
    Germany:
    Answers to 10 capital questions, old prompt run 2, new prompt run 4
    questionold · run 2new · run 4
    Germany (Berlin)✗ Frankfurt✗ Frankfurt
    Spain (Madrid)✓ Madrid✓ Madrid
    Russia (Moscow)✗ Anton✓ Moscow
    China (Beijing)✗ Chong✓ Beijing
    Egypt (Cairo)✗ Islamabad✓ Cairo
    Greece (Athens)✓ Athens✓ Athens
    England (London)✗ Edinburgh✓ London
    Ireland (Dublin)✗ Geneva✗ Cork
    Austria (Vienna)✗ Ger✗ Tar
    Canada (Ottawa)✗ Toronto✗ G
    score2 of 106 of 10

    measured with GPT-2 small, temperature 1, 5 seeded runs, exact match · 2026-10-23

    One run each, graded by exact match: the new prompt 6 of 10, the old one 2. Decisive?

    One run is a dice roll: the same prompt on the same questions scores 3 one time and 6 the next.

  3. An eval has three parts. A fixed set of questions, the same for every prompt. A grader: exact match when there is one right answer, a rubric for open answers, or an LLM-as-judge, which agreed with humans over 80% of the time in a 2023 study but is swayed by answer order and length. And several runs.

  4. 4 You are the model

    You review a prompt change. For four real scoreboards from the picture’s runs, decide: ship the new prompt, not proven yet, or keep the old one.

    you review the prompt change · 10 capital questions, exact match · what does each scoreboard prove?

    scoreboard 1 of 4

    2 questions (Germany, Spain), run 1: old prompt 0 of 2, new prompt 1 of 2.

    measured with GPT-2 small, temperature 1, 5 seeded runs, exact match · 2026-10-23

    You review the change. Ship it, wait for more runs, or keep the old prompt?
  5. 5 Check

    In the picture, how far apart are the two prompts over endless runs?
  6. The next trap is overfitting. Tweak a prompt until it passes your 10 questions and it fits those 10, not the task. Keep held-out questions you never look at while writing, add real failures to the set as they come, and grow it: Anthropic advises more questions with automatic grading over fewer graded by hand.

  7. 7 Say it back

  8. 8 Mission · 5 min

    With a free Gemini API key, build a tiny eval: 5 questions with one exact answer each, your old prompt and a new one, 3 runs each on gemini-3.5-flash-lite at temperature 1 (30 calls, a short script). Count exact matches per run. Did one prompt’s score change between runs? Is the gap between prompts bigger than that?

Three quick ones

Drawn at random from this lesson's pool; different next time.

Done?

Now: could you explain this to a friend?

1 = not at all · 5 = easily

Answer the three quick ones first.

Sources

  • Measured with scripts/explain-data/evals.ts on 2026-10-23: GPT-2 small (Hugging Face gpt2, run locally), temperature 1, 5 seeded runs per prompt, exact match on the first sampled token. 10 test questions: plain sentence “The capital of X is” runs 0, 0, 0, 0, 1 (0.537); old prompt (France: Paris / Italy: Rome / Japan: Tokyo / X:) 3, 2, 2, 4, 3 (3.409); new prompt (“Capital cities:” + the old one) 4, 4, 3, 6, 3 (3.61). 6 held-out questions: old 1, 3, 1, 4, 5 (2.47); new 4, 3, 3, 4, 3 (2.764). Numbers in brackets: the long-run score, the sum of GPT-2’s odds for each right token
  • https://arxiv.org/abs/2306.05685 (Zheng et al., Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena, v4 2023-12-24, checked 2026-10-23): “strong LLM judges like GPT-4 can match both controlled and crowdsourced human preferences well, achieving over 80% agreement, the same level of agreement between humans”; “position, verbosity, and self-enhancement biases”
  • https://platform.claude.com/docs/en/test-and-evaluate/develop-tests (checked 2026-10-23): exact match “perfect for tasks with clear-cut, categorical answers”; string match, code-graded, LLM-graded; “Prioritize volume over quality: More questions with slightly lower signal automated grading is better than fewer questions with high-quality human hand-graded evals”
  • https://ai.google.dev/gemini-api/docs/pricing (updated 2026-10-22, checked 2026-10-23): Gemini 3.5 Flash-Lite free tier, input and output “Free of charge”; https://ai.google.dev/gemini-api/docs/rate-limits (updated 2026-10-15): “Rate limits are applied per project, not per API key”; aifree.dev catalog google-gemini-developer-api-free-tier (verified 2026-10-12)

Published Oct 23, 2026 · updated Oct 23, 2026

Embed this

Paste this into a blog post or course page: the lesson's main picture in an iframe, with a link back to the full lesson.

<iframe src="https://aifree.dev/embed/explain/evals" width="100%" height="620" style="border:0;max-width:720px" title="How do I know my new prompt is actually better? (aifree.dev Explain)" loading="lazy"></iframe>
<p><a href="https://aifree.dev/explain/evals">How do I know my new prompt is actually better? Interactive lesson on aifree.dev</a></p>

Never miss new offers and news

New tools, credits, and AI news are added regularly. Pick how you want to hear about them.

Telegram channel
Join @aifree_dev and get new free AI offers and news right in your Telegram feed.
Browser notifications
Turn on push notifications and get an alert on this device whenever something new is posted. No account needed.
Email newsletter
A weekly digest of new, changed and expiring free AI offers. Double opt-in, one-click unsubscribe.

Unsubscribe anytime. Privacy

Frequently asked questions

What is aifree.dev?

aifree.dev helps everyone access AI through a curated directory of free AI tools, API credits, free tiers, and startup programs for coding, image, voice, video, and students - verified regularly.

How are offers presented?

Each offer includes its access details, free models when available, and expiration information when provided. Limited-time deals stay visible so they are easy to compare.

Do education and startup programs need verification?

Yes. Providers usually ask students to verify their status with a school email, student ID, or a program like the GitHub Student Pack, and ask startups to verify company details such as age, funding, or website. Check each offer’s claim page for the exact requirements.

What kinds of free AI offers are listed?

Free tiers and free trials from AI providers, free API credits, startup and student programs, and free tools for coding, image generation, voice, and video.

How can I suggest a tool or report a broken link?

Use the submit form: paste the offer page URL and a short note. A person checks every submission before anything is listed. Broken links and changed terms go through the same form.

+

Know a good one?

Tell us about an AI tool worth knowing. Found a broken link? We want to hear that too.

Submit an offer