← All posts

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.

Keep reading

Subagents, hooks and skills: the three levers of a Claude Code harness

How I split work across subagents, enforce behaviour with hooks, and package know-how as skills — the setup behind agents that automate 50,000+ hours a year.

From PDFs in S3 to searchable data: an ingestion pipeline that reruns safely

How I structure Airflow + Amazon Textract pipelines so a failed night never means duplicate or missing records.