Locked learning resources

Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Locked learning resources

This lesson is for members only. Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Rerun the Same Prompt

In this lesson, you asked whether v2, the short-sentence version, can replace v1. You ran the same prompt version several times on the same cases and saw how far its pass rate moves by itself, before reading anything into a difference between two versions.

Key Points

  • One run each looks like an answer. So far, each judge run graded one set of answers, once. Run once on the twenty status cases, v1 passed nineteen (95%) and v2, which answers in one short sentence, passed seventeen (85%). Ten points looks settled, but it reads 95% as an exact measurement of v1.
  • The same score can hide different verdicts. Run a second time, v1 passed nineteen again, but a different case failed: the hiker’s question about breakfast at hut 6 instead of the Italian question about whether hut 6 is open.
  • Rerun the same version to see its spread. Five runs of v1 passed 85%, 90%, 95%, 80% and 90%: a spread of fifteen points with the same prompt. That spread covers reruns on these twenty questions only: how much twenty questions say about new ones is a separate doubt, for the next lesson. A second set of five moved between 80% and 90%. Your numbers will differ, but expect a spread of a few cases.
  • Inside the spread, you can’t tell them apart yet. v2’s single 85% lands inside v1’s spread, so you can’t tell the two versions apart yet. The both-orders count from Judge Two Answers in Both Orders judged one set of answers too, so it carries the same doubt. Until a comparison shows otherwise, keep the version you have.
  • Two things move. The assistant writes a new answer to every question on every run, and the judge grades each answer again and can give even the same answer a different verdict.
  • The failures aren’t random. Almost every failure in the five runs is a hut 6 question, graded against the warden’s August 28 closure report. A pass rate inside the spread doesn’t excuse that.
  • Temperature zero doesn’t guarantee the same text. Providers don’t promise identical text at temperature zero, and some models don’t take a temperature at all (checked 1 Dec 2026).
  • Each case is a big step on a small set. With twenty cases, each case is five points, so two runs three cases apart are fifteen points apart.
  • The rule: before you believe a difference, rerun the version you have three to five times. If the new version’s rate lands inside that spread, you can’t tell them apart yet, so keep the version you have. The spread is a rough warning, not a cutoff: inside it, you don’t know yet, and outside it, look closer, as the next lesson does.
  • It costs runs. Five runs cost five times the calls, judge included, about eight minutes here, so measure the spread when you’re about to decide, not on every edit.

Final Code

Add a script to package.json:

Locked learning resources

Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Already a member? Sign-In

Locked learning resources

The full lesson is for members only. Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Already a member? Sign-In

00:00 You’ve checked your status judge against a person’s grades. Now the wardens want to know whether v2, which answers in one short sentence, can replace v1. So you’ll give each version a pass rate and see how far you can trust it.

00:15 So far, each judge run you’ve made graded one set of answers, once. This script is that judge run, with two changes. It takes the version to answer with. And it takes how many times to run the whole set.

00:29 Each run asks the assistant the twenty status questions, has the judge grade every answer, and prints the pass rate and the cases that failed.

00:39 Run v1 once. It passes nineteen of twenty, ninety-five percent. Now run v2 once. Seventeen of twenty, eighty-five percent. That’s ten points. It’s tempting to call it settled and say short answers cost two cases.

00:59 But that reads ninety-five percent as an exact measurement of v1. Is it?

01:06 Run v1 a second time. Same prompt, same twenty cases, same judge. The first run failed one case, the Italian question about hut 6. Your turn: pause the video and predict.

01:20 Does the second run fail that same case? It passed nineteen again, ninety-five percent. But the case that failed is a different one, the question about breakfast at hut 6.

01:33 The score held, yet the cases that passed and failed changed.

01:40 So run it five times. The number after the version says how many. Eighty-five, ninety, ninety-five, eighty, ninety.

01:51 The same prompt moved between eighty and ninety-five percent. That’s a spread of fifteen points, on these twenty questions only. New questions add their own doubt, which the next lesson takes up.

02:04 Now put v2’s single run beside it. Eighty-five percent lands inside v1’s spread, so you can’t tell the two versions apart yet.

02:14 In a second set of five, v1 moved between eighty and ninety. Your numbers will differ, but expect a spread of a few cases.

02:24 Look at which cases failed. The first run failed three cases. The third run failed only one of them. Almost every failure is a hut 6 question, the hut the warden reported closed.

02:36 A pass rate inside the spread doesn’t excuse that.

02:40 The assistant writes a new answer to every question on every run. And the judge grades each answer again, and can give even the same answer a different verdict.

02:51 Setting the temperature to zero doesn’t guarantee the same text. Providers don’t promise it, and some models don’t take a temperature at all. With twenty cases, each case is five points.

03:03 So two runs three cases apart are fifteen points apart.

03:09 Before you believe a difference, rerun the version you have three to five times. If the new version’s rate lands inside that spread, you can’t tell them apart yet, so keep the version you have.

03:21 The spread is a rough warning, not a cutoff. Inside it, you don’t know yet. Outside it, look closer, as the next lesson does. And five runs cost five times the calls, judge included.

03:33 Here that took about eight minutes. So measure it when you’re about to decide, not on every edit. Here, v1 moved fifteen points by itself, and v2’s single run landed inside it.

03:47 In Compare Versions Case by Case, you’ll run both versions several times on the same cases and count the cases that got better and worse.

Become a Member to join the conversation.