5 concepts · 10 practice questions
An eval is a repeatable test of an LLM system: a set of inputs, a way to score the outputs, and a number you can compare between versions. Without one, every prompt, model or retrieval change is judged by a few hand-picked examples, and a fix for one case silently breaks five others. Evals turn "it looks better" into evidence, and they are what makes it safe to change the system at all.
def run_eval(system, cases):
results = [score(case, system(case.input)) for case in cases]
return sum(r.passed for r in results) / len(results)
baseline = run_eval(current_system, cases) # 0.82
candidate = run_eval(new_prompt_system, cases) # ship only if it holds up
Sign in to read the rest and take the 10-question test.
Sign in to continue