Evaluation metrics
How to Choose LLM Evaluation Metrics for an AI Feature
Match each evaluation metric to a product decision and make the cost of false positives and missed cases visible.
An evaluation metric earns its place when a team knows what it will do if the score changes. For a fictional support assistant, the workflow has two jobs. It routes requests to self-service or to a specialist, then drafts an explanation for the chosen path. Routing can be scored against a reviewed label. Whether the explanation gives the right next step needs a different test. Set up separate measures for those two jobs so the result can guide a product decision. OpenAI’s evaluation best practices
Translate failure into something measurable
Start by reviewing the user action affected by a mistake. A customer with a payment dispute loses time when the system routes them to ordinary self-service. Unnecessary specialist routing also has a cost because it uses a limited queue. Set recall on required escalations as the primary routing measure, then track precision and the share of all requests sent to specialists. That lets the team see why increasing recall may create more work.
For generation, define facts the answer must preserve, such as the qualifying condition and the next action. Use an automated check for allowed route values or required fields. Use an anchored rubric when more than one wording is valid. A binary check is helpful when the underlying question is precise, such as whether a cited policy actually supports the claim. A separate score for clarity can preserve useful nuance. Google’s precision and recall guide
Read the numerator and denominator together
Suppose a labeled set contains 100 fictional support requests. Reviewers say 24 require specialist help. The model routes 32 to specialists, including 21 of those 24. Recall is 21 divided by 24, or 87.5%. Precision is 21 divided by 32, or about 65.6%. The queue receives 32% of requests, and three required escalations are missed. That breakdown gives a support lead more to work with than a single accuracy number.
Imagine the team sets a fictional release rule of at least 90% recall and at most 35 specialist referrals per 100 requests. The configuration meets the queue limit and falls short on recall. Review the three missed cases in context before changing the model or the referral policy. If two share the same exception language, check whether the input context preserves the exception and create additional cases that probe that boundary.
Give reviewers a rubric they can apply twice
Score the draft explanation under three named outcomes. Pass means it gives an accurate reason and a next action the user can take. Revise means the route is sound but a required step is omitted or unclear. Fail means the explanation directs the user to an inapplicable step or invents a policy. Put one example under each outcome and ask reviewers to compare scores on the same cases. Rewrite any criterion that two reviewers consistently interpret differently.
Check whether the metric holds in production
Keep release and production measures together in the review. Compare the offline routing and rubric results with live escalation volume and a small reviewed sample of completed interactions. Report denominators and the time window for each. If the offline metrics improve and live complaints about incorrect routing increase, inspect which requests reached the live system and whether the evaluation set represented them. That evidence tells the team which metric or sample deserves repair. Anthropic’s guide to evaluation graders