Evals You Can Trust: Measuring an AI Feature

Stephen Gruppetta 24 Lessons 6h 28m Updated advanced ai testing

Your AI feature works on your laptop, but how good are its answers, and would you notice a change that made them worse? In this course, you’ll replace “it seems better” with numbers you produce yourself. You’ll follow the Ridgeline Huts trail-conditions assistant, which answers hikers’ questions from the wardens’ dated condition reports, so a wrong answer can send someone to a flooded river crossing.

You’ll learn how to:

  • Build an eval set from real questions that covers the cases that matter
  • Grade free-text answers with code checks and a model judge that you check against your own grades
  • Tell a real improvement from run-to-run noise
  • Run the evals on every change in a pull-request check

In the project, you’ll turn three hundred real hiker questions into an eval set, compare two prompt versions over five runs each, and decide from the per-case results which one ships.

Before you start, you should have built an AI feature in JavaScript: calling a model through a small module, checking structured output, and writing a first eval set. You’ll need Node 26 and an API key for OpenAI or Anthropic for the project. The coding exercises need no key.

What’s Included:

  • 24 Lessons
  • Video Subtitles and Full Transcripts
  • Translated Subtitles in 8 Languages
  • 2 Downloadable Resources
  • Interactive Quiz to Check Your Progress
  • 8 Hands-On Coding Exercises
  • Q&A With JavaScript Experts: Ask a Question
  • Certificate of Completion

Downloadable Resources:

Related Learning Paths:

About Stephen Gruppetta

Stephen obtained a PhD in physics and worked as a physicist in academia for over a decade before becoming a programming educator. He's constantly looking for simple ways to explain complex things.

» More about Stephen

Each tutorial at RealJS is created by a team of developers so that it meets our high quality standards. The team members who worked on this tutorial are:

← Browse All Courses