A harness in twenty lines

Lesson 7 of 28 · Building evals · 2 min Get the course to watch

A harness is the loop that feeds every case to your system, applies the checks, and tells you what failed. It is not clever. The value is that it runs the same way every time, in seconds, so you run it all the time.

The rest of this lesson

  • The code
  • Run it
  • Print failures not just a score
  • Keep the system call real
  • Save the results
  • When a hand rolled harness stops being enough
  • The idea to keep

The full lesson is animated and narrated, with a short quiz, and you can pause it to ask a question. It comes with Evals, Observability and Guardrails for LLM Systems.