Lab: The evaluation harness and its gate
Module 11 · Lab · About 90 minutes · Needs: lessons 1 to 5 of this module, and the Module 6 and Module 9 labs (or the cells in Step 1)
What you are building
On Friday 9 October Grace's pilot is three weeks away, and it starts only if a gate passes. The five lessons each built a piece of that gate in its own notebook, with its own copy of the questions and, in Lesson 5, a stand-in search. This lab puts them into evals/, the folder the course guide names. questions.py holds the one evaluation set. harness.py holds the metrics and the two runs: retrieval on Module 6's real search, and answers through Module 9's respond(). judge.py is Lesson 4's judge. gate.py is what Lesson 5's workflow calls: python -m evals.gate --tier pr or --tier nightly, which exits with 1 when something got worse. The model is called in Steps 5 and 7 only.