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

Evals You Can Trust: Measuring an AI Feature (Summary)

The Ridgeline Huts wardens asked how you know the trail-conditions assistant is right. You can now answer with numbers you produced yourself.

What You Can Do Now

  • Build an eval set from real questions that covers the cases that matter.
  • Grade free-text answers with checks and a model judge you’ve checked against people.
  • Tell a real improvement from run-to-run noise.
  • Run the evals on every change.

From One Pass Rate to Evidence

  • Invented cases say little. On twelve invented cases, all thirty-six answers passed, which said little about real hikers.
  • A set from real questions. You sampled seventy-nine real questions, counted every slice, and held some out.
  • A judge you checked. Your judge asked one yes-or-no question. It agreed with you on thirty-eight of forty answers, yet caught only three of your five fails. So its pass rate is an upper bound. Answers with two reports go to a person.
  • Noise you measured. One prompt, rerun five times unchanged, moved between eighty and ninety-five percent.
  • A check on every pull request. You tested the eval code and checked every pull request against per-slice floors. When a teammate’s change dropped the Valbrune ford to five of twelve, the check failed. A rerun and the saved answers showed four questions got worse, not noise.
  • A project you finished. In the project, you settled the wardens’ ford complaint: a season set with the ford case in it, a judge for answers from dated reports that you checked against your own grades, and a ship decision from per-case and held-out results.

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 The wardens asked how you know the assistant is right. Now you can answer with numbers. You can build an eval set from real questions that covers the cases that matter.

00:11 You can grade free-text answers with checks and a model judge you’ve checked against people. You can tell a real improvement from run-to-run noise. And you can run the evals on every change.

00:24 On twelve invented cases, all thirty-six answers passed, which said little about real hikers. So you sampled seventy-nine real questions, counted every slice, and held some out.

00:38 Your judge asked one yes-or-no question. It agreed with you on thirty-eight of forty, yet caught only three of your five fails. So its pass rate is an upper bound.

00:49 Answers with two reports go to a person.

00:53 One prompt, rerun five times unchanged, moved between eighty and ninety-five percent. You tested the eval code and checked every pull request against per-slice floors.

01:05 When a teammate’s change dropped the Valbrune ford to five of twelve, the check failed. A rerun and the saved answers showed four questions got worse, not noise.

01:17 In the project, you settled the wardens’ ford complaint: a season set, a judge for dated reports, and a ship decision.

01:26 Four things to remember. Sample real questions, and count every slice. Ask a judge one question at a time, and check it against a person. Rerun before you believe a difference.

01:39 Fail a check on rates, not one answer. One broken safety case blocks a change. Evals show what got worse, on the cases you included.

01:52 The next course runs the assistant for real users, through a simulated season of hiker traffic. For more on tests, see Testing, Documenting and Building a Node API.

02:05 Thanks for working through this course.

Become a Member to join the conversation.