Hamel Husain breaks down four ways AI evaluations fail: using generic metrics that don't match your product, letting language models judge without checking if they agree with humans, mixing retrieval and generation in RAG systems, and skipping end-to-end audits. He shares practical tools to fix each one.
Chapters
I've taught over 4,000 people from companies like Google, Amazon, and Meta on how to test AI products. And here are the 4 most common mistakes I see. Number 1, you're using off-the-shelf metrics like helpfulness score, coherence score, hallucination score. These are just someone else's generic prompt hidden behind 5 layers of abstraction. They measure abstract qualities that usually have nothing to do with your product, and good scores on these don't mean your system works. Number 2, a really popular technique to test AI products is to use an LLM as a judge, but most people don't measure if the LM as a judge agrees with the human. If it only matches human labels 60% of the time, it's useless. So you have to make sure you measure your judge. Number 3, if you have a RAG system, you need to separate retrieval from generation. If retrieval is broken, no amount of prompt engineering is going to fix the generation bit. And 4, you need to audit your whole system end to end. I built skills that walk your coding agent through each of these mistakes and many more. They work with Cloud Code, Codex, or whatever coding agent you want to use. They come from a year of watching thousands of people make these exact mistakes and many more. I left a link to a blog post with the skills and how to use them in the comments.