Evals
Writing
Courses
Free lessons
5 lessons, 41 min, 5 free
Glossary terms
- EvalAn eval is a repeatable test for software that uses a model. It has a set of inputs, a way to run your feature on them and a grader that scores each output, and it returns a rate instead of a pass or fail. Run it on every change to a prompt, model or retrieval setting.
- Error analysisError analysis is the habit of reading failed cases, sorting them into a few named groups and counting each group to decide what to fix next. It beats guessing and beats adding metrics. The biggest group usually is not the one you expected, so read real failures before you change anything.
- Golden setA golden set is a collection of real inputs, each paired with a known good answer or a labelling rubric, used to evaluate a model-backed feature. It should cover every category, include deliberately hard cases and be labelled before you look at model output. Keep part of it held out so tuning does not overfit.
- PromptA prompt is everything you send to a model in one request: instructions, examples, the conversation so far, retrieved documents and the user's input. The model produces its reply from this text alone. Because outputs depend entirely on the prompt, it deserves the same version control and testing as code.
- TemperatureTemperature is a sampling setting that controls how much randomness the model uses when choosing each next token. Lower values make outputs more predictable, higher values more varied. Even at zero, results are not guaranteed to be identical between runs, and some model families do not let you change the setting at all.
- HallucinationA hallucination is model output that reads fluently but is false or unsupported by the sources it was given. It is not a rare bug that a patch removes. It follows from how models generate text. You reduce it with grounding and verification and measure it with faithfulness checks.
- LLM as judgeLLM as judge means using a model to grade another model's output against a written rubric, typically with yes or no criteria. It scales evaluation of open-ended text, but a judge is just another prompt with its own biases. Check its agreement with human labels, for example with Cohen's kappa, before it gates anything.
More on Evals, by email
New writing on Evals goes out in the newsletter, with a note on why it is worth your time.