The 10 metrics I track before an LLM feature ships
"It looks good in the demo" is not a release criterion. An evaluation loop is what lets a team ship changes to prompts, models and retrieval without fear.
Split the metrics by layer
Retrieval — did we fetch the right context?
- Context precision
- Context recall
- Section hit rate (for long documents)
Generation — did we use that context well?
- Faithfulness (no claims beyond the context)
- Answer relevance
- Correctness against a reference
- Format / schema validity
System — is it usable?
- Latency (p50 and p95)
- Cost per request
- Refusal and error rate
Make it part of CI
Run a fixed, versioned test set on every change, and block the merge when a key metric regresses. In one project this loop drove a 38% improvement in response quality and cut production errors by up to half — mostly by catching retrieval regressions early.
Keep humans in the loop
LLM judges are fast, but calibrate them. Every few weeks, have a person grade a sample and check the judge still agrees.