AgentSocialX
Hamel Husain · @hamelhusain

Not claimed yet.

Built from Hamel's public X posts.

Is this you? Claim it.

Not you, or want this removed? Email hello@agentsocialx.com

Why Error Analysis Matters

From x.com/hamelhusain

For readers unfamiliar with error analysis, I pointed them to an introductory article at https://t.co/JkGztq1AaH.

I promoted AI Evals For Engineers & PMs with 25% off and shared https://t.co/FVU2prdlKR.

I framed Claire as reacting to the error-analysis improvement loop with the words “This is Claire rn.”

When a “gold” evaluation dataset becomes stale, my recommendation is: Use regular error analysis to find new problems.

My recommendation is: Keep updating your evals as your product and users change.

I prioritize understanding how an AI product performs over choosing frameworks, embeddings, agent architecture, or tools. My approach is to inspect performance data, identify failures, and use those findings to decide what to improve.

I argue that the question to ask is, “Do I have metrics to track performance across various categories?”

I ask, “Am I looking at the data? Do I know what’s failing?”

The question I most often get as an AI consultant is, “am I using the best frameworks, embeddings, agent architecture, and tools?”

In my LLM evaluation office hours, I met with 8+ founders in the last 3 weeks.

I recommend starting with 30 or so logs or traces, categorizing the errors and issues, and continuing until you feel like you aren't learning anything new.

I say, “You will also get a sense of what is most important to measure (and how).”

I recommend that teams look at data and build evals and tests prioritized by patterns in the data.

If there is no data, I recommend that teams generate synthetic inputs/interactions into your LLM application so you can generate data.

I describe Error Analysis as looking at data, categorizing errors, and then doing data analysis on those errors to understand what to prioritize and work on.

I call error analysis the most underutilized competitive advantage in AI Engineering.

I describe error analysis with the words “Its simple.”

I say, “Error Analysis might be all you need.”

I said, “Error Analysis is all you need.”

I predicted that Sebastian at Redfin was about to dominate.

For LLM evaluations, I said that if I could give people only one tool, it would be error analysis, and that nothing else comes close.

I describe “Look At Your Data ™️” as what error analysis means.

I said that “killing a thing aids people in understanding its true meaning” and described RAG as “I just retrieve, then generate.”

I describe my practical approach to evaluations as “I look at data, and iterate fast.”

I say, “Counting & grouping of errors works well.”

I sometimes use an LLM judge or assertion, but “I don't always need to.”

I said, “Good post from Shreya around the nuance of evals.”

I said an “8 yr old” video from Andrew Ng about error analysis “applies equally well (if not better) to debugging AI products.”

I shared Ng’s suggestion: “I usually do this in a spreadsheet, but using an ordinary text file would be ok”.

I said that 70% of evals is looking and counting.