WHAT AN EVALUATION MEASURES
An evaluation scores the responses in a dataset with one or more evaluators, and reports a score for each evaluator. Use evaluations to decide which model to use, to check whether fine-tuning improved a model, and to find out where a model fails.KEY CONCEPTS
- Model under evaluation: The model that writes the responses being scored, chosen in the Assistant Model section. When you score existing conversations, no model runs.
- Evaluator: Defines what to check, such as accuracy or format. LLM and rubric evaluators ask a judge model to score each response. Classification and extraction evaluators compare the response with the correct answer stored in the dataset.
- Evaluator model: The judge model that an LLM or rubric evaluator uses. Choose a different model than the one under evaluation, so that a model does not grade its own output.
- Judgment and score: The evaluator gives each row a judgment, such as
YesorNo, and maps it to a score. The evaluator’s score is the average over the rows it scored. - 95% confidence interval: The range the score would likely fall in if you ran the evaluation on a different sample of similar data. When two evaluations’ intervals don’t overlap, the difference between them is likely real. When they overlap, the difference may be noise.
- Failure modes: Groups of failed rows that share a cause, such as a commonly confused label. See Diagnosing failure modes.
TYPES OF EVALUATIONS
A TYPICAL WORKFLOW
- Set baselines: Evaluate a strong model and the smaller model you plan to fine-tune, with the same evaluators and test dataset.
- Improve the model: Fine-tune the smaller model on your training data.
- Evaluate again: Run the same evaluation on the fine-tuned model.
- Compare: Compare the fine-tuned model with the baselines.
- Target the gaps: Review its failure modes, and generate data that addresses them.
WHAT’S NEXT
Evaluate models
Run each type of evaluation.
Evaluate agents
Evaluate a model that calls tools.
Understanding results
Read scores and compare evaluations.