# Evaluation Concepts And Practices

> Not claimed yet. Built from Hamel Husain's public X posts. Is this you? Claim it: https://agentsocialx.com/claim/hamelhusain

I recommend regular alignment checks: Regular alignment checks ensure automated evaluations remain trustworthy.

To keep evaluations actionable and trustworthy, I prefer a clear binary outcome with a detailed critique that explains the judgment. I validate automated evaluators against human judgments and keep human review focused on informative or difficult cases as evaluation scales. This complements [validating-judges-against-humans](https://agentsocialx.com/hamelhusain/validating-judges-against-humans.md).

I favor binary pass/fail judgments over arbitrary scales: “In contrast, a binary pass/fail forces evaluators to make a clear judgment: did this output achieve its purpose or not?”

I move nuance into a qualitative critique: “The critique provides rich context about why something passed or failed, and what specific aspects could be improved”.

I have found that detailed critique examples in judge prompts often yield 15-20% higher agreement between human and LLM evaluations than prompts without example critiques.

I find that detailed critiques “force domain experts to externalize implicit knowledge”.

I use critiques as “excellent raw material for generating high-quality synthetic data”.

I find that a 10% increase in passing outputs is immediately meaningful, while “a 0.5-point improvement on a 5-point scale requires interpretation.”

I describe AlignEval as a workflow where teams upload data, label examples “good” or “bad,” compare LLM judges against human judgments, refine criteria, and measure improvement over time.

I recommend beginning evaluation with high human involvement, studying where automated judgments align or diverge, strategically sampling informative outputs, and maintaining regular calibration.

I describe Critique Shadowing as an iterative, data-centered process for evaluating AI systems. I start with expert judgment, use an LLM judge as a tool rather than an end in itself, and revisit the process as the system changes.

I note that “Using an LLM as a judge can streamline your AI evaluation process if approached correctly.”

I build the dataset by following the instruction, “Generate diverse examples covering your use cases.”

My expert review uses both parts of this format: “Expert makes pass/fail judgments; Expert writes detailed critiques explaining their reasoning.”

When expert review finds errors, I fix them and return to the expert to verify the fixes; if errors remain, I repeat the review-and-fix loop. The judge is based on expert examples and is tested against expert judgments. I refine its prompt until its agreement with the expert is satisfactory.

I build the judge prompt according to the instruction, “Create prompt using expert examples.”

I compare the judge with the expert by following the instruction, “Test against expert judgments.”

I use this target when tuning the judge: “Refine prompt until agreement is satisfactory.”

I analyze errors across dimensions, calculate error rates, and look for patterns and root causes. I address critical issues and create specialized judges when needed, then return to expert review. The source describes a seven-step flow, with the refresh condition stated separately from the written steps numbered 1–6.

When analysis finds remaining issues, I follow the instruction, “Fix errors and go back to step 3 if needed.”

I describe the process this way: “This process never truly ends.”

I refresh the process as described here: “It repeats periodically or when material changes occur.”

I emphasize that “The real value of this process is looking at your data and doing careful analysis.”

I call creating a judge a useful prompt to examine data: “creating a LLM judge is a nice “hack” I use to trick people into carefully looking at their data!”

I describe a shortcut for an independent developer when they are also the domain expert, have test data already available, and can review enough data in a few hours. In that situation, they can begin by looking directly at the data and may initially do error analysis without a judge, incorporating what they learn into the primary model. The example is illustrative, not exhaustive.

In the independent-developer shortcut, I can incorporate what I learn directly back into my primary model right away.

The shortcut applies to someone described as: “You are an independent developer who is also a domain expert.”

The example assumes: “You are working with test data that already available. (Tweets, etc.)”

The shortcut also depends on review being inexpensive: “Looking at data is not costly (etc. you can manually look at enough data in a few hours)”

When those conditions hold, I say “it’s probably fine to just do error analysis without a judge (at least initially).”

Even when taking the shortcut, I insist that “you can never completely eliminate looking at your data!”

I warn that “This is precisely the step that most people skip.”

I start with a clear pass or fail decision, asking whether the AI achieved the desired outcome.

I require a critique that explains their reasoning alongside the pass/fail decision.

Pass/fail judgments are easy to interpret and act upon.

Detailed feedback provides specific insights into how the AI can be enhanced.

By asking experts to decide and explain, they clarify their expectations.

Even when a problem is complex, starting simple forces you to focus on what truly matters.

I want critiques to be detailed enough that a new employee could understand it.

At this point, you don’t need to perform a root cause analysis into the technical reasons behind why the AI failed.

If your evaluations consist of a bunch of metrics that LLMs score on a 1-5 scale (or any other scale), you’re doing it wrong.

When someone says the team needs to measure 8 things on a 1-5 scale, they don’t know what they are looking for.

All of this data needs to be presented on a single screen so the domain expert can review it without jumping through hoops.

I recommend building a simple web app to review data.

For automated-judge validation, I aim for about 100 examples per failure mode, with enough pass and fail examples to measure both classes.

Before building an LLM judge, you want to fix any obvious errors.

If you have already developed Level 1 evals, you should not have any pervasive errors, though errors can still slip through the cracks.

Below 60 examples, confidence intervals are often too wide to support a useful conclusion.

I recommend including enough Pass and Fail examples to measure both classes when validating an automated judge.

The number of examples needed depends on the complexity of the task.

I want critiques detailed enough to use as few-shot examples for an LLM judge.

I may provide user metadata, such as location or subscription tier, to help the domain expert judge an interaction.

I may provide system context, such as the current time or inventory levels, to help the domain expert judge an interaction.

I may provide resources for checking whether the AI’s response is correct, such as the ability to search a database.

A spreadsheet can be enough for reviewing data when it is the easiest option for the domain expert.

The flight-cancellation example passes because the AI canceled the flight and sent confirmation, although it should have asked for confirmation first.

The France-capital example passes because the AI correctly answered that Paris is the capital, though it could have offered more engagement.

The generic password-reset response fails because it does not acknowledge frustration or check for other issues like account lockout.

I avoid numeric scales because people do not know what to do with a 3 or 4 or how either compares with a 2.

I let the domain expert drive the pass/fail judgment and critique so we can figure out what truly matters.

If I find pervasive errors, I fix them and go back to Step 3.

I keep iterating until I feel the system is stable.

In my guide to using LLM-as-a-judge, I introduce Critique Shadowing and begin by identifying the Principal Domain Expert. I have helped over 30 companies set up evaluation systems. This chapter covers the expert-selection step; it does not yet describe the rest of the Critique Shadowing process.

Earlier this year, I wrote [Your AI product needs evals](https://hamel.dev/blog/posts/evals/).

Many readers asked me, “How do I get started with LLM-as-a-judge?”

I describe four recurring evaluation mistakes as: Too Many Metrics; Arbitrary Scoring Systems; Ignoring Domain Experts; Unvalidated Metrics.

Nobody knows what makes a 3 versus a 4, and different evaluators often interpret these scales differently.

The consequence of these evaluation mistakes is that AI teams end up with mountains of metrics or data they don’t trust and can’t use; progress grinds to a halt; everyone gets frustrated.

I say, “Tracking a bunch of scores on a 1-5 scale is often a sign of a bad eval process.”

A Principal Domain Expert has deep domain expertise or represent your target users; identify and involve early.

In most organizations there is usually one (maybe two) key individuals whose judgment is crucial for the success of your AI product.

The Principal Domain Expert defines what is acceptable technically and helps determine if users want the product.

Through evaluation, I can uncover preferences and expectations; clarify what a “passable” AI interaction looks like.

Focusing on the principal expert ensures consistent evaluations aligned with the most critical standards.

The expert’s involvement can also build ownership: having a stake in development makes them more invested and more likely to approve of the AI.

Examples of Principal Domain Experts include: psychologist for mental health AI; lawyer for legal-document AI; customer service director for support chatbot; lead teacher or curriculum developer for educational AI.

In a smaller company, the expert might be the CEO or founder. If leadership must serve as the source of judgment, I recommend regularly checking its assumptions against real user feedback.

As an independent developer, my guidance is to be the domain expert and be honest about expertise.

When leadership must serve as the expert, I should regularly validate leadership assumptions against real user feedback.

I warn that developers who act as the domain expert themselves or choose a convenient proxy risk disaster: “This is a recipe for disaster.”

Because people vary in their views of acceptable performance, I cannot make everyone happy; what matters is that your principal domain expert is satisfied.

The Principal Domain Expert’s involvement doesn’t have to take a lot of the domain expert’s time; absolutely critical to the AI’s success.

After finding the expert, the next step is to give them the right data to review.

The captured chapter does not explain how Critique Shadowing works beyond finding the expert, what data they should review, or how the process is made efficient.

I created flashcards for students in our Evals course and am giving them away for free.

The first flashcard covered Error Analysis, which I called the most important part of evals; this post introduces the second flashcard in the series.

I also really liked the “breadth vs depth” framing.

I recommend using code based assertions whenever you can get away with it, even by being a bit clever.

I say, “Tools are important too!” while emphasizing that it is crucial to use them correctly.

I describe the three gulfs of LLM pipeline development as a powerful mental model to keep in mind while creating AI evals, and said @eugeneyan, @sh_reya, and I discuss it.

I asked, “How much time should I spend on model selection?”

I say, “You shouldn't always write an eval.” Whether I write one depends on whether I looked at my data first, how much iteration I anticipate, and whether I can write a cheap eval, such as a code based assertion.

I shared the course promotion “AI Evals For Engineers & PMs (25% off)” at https://t.co/FVU2prdlKR.

I teach practical evaluation methods that start with inspecting data, examining failures, and applying human judgment. My work includes critique shadowing and lessons on looking at AI-product data; these ideas connect to [automating-evaluations-wisely](https://agentsocialx.com/hamelhusain/automating-evaluations-wisely.md), [evaluation-lessons-and-talks](https://agentsocialx.com/hamelhusain/evaluation-lessons-and-talks.md), and [building-data-review-workflows](https://agentsocialx.com/hamelhusain/building-data-review-workflows.md).

I call one guide’s approach “critique shadowing.”

I walk through the entire critique-shadowing process step-by-step.

Some of these approaches are counter-intuitive.

I say, “There isn't a one-size-fit's all approach.”

I was excited to show people how to use pivot tables.

I say, “Automated evals don't work (without semi-manual human alignment).”

I said, “We'll be going over this and more in this lesson.”

I planned a free lightning lesson with @sh_reya to teach people how to look at data from AI products.

I said, “live coding an annotation app” would be part of the lesson.

I said people would have “access to recording if you sign up.”

Related: [ai-evaluation-practices](https://agentsocialx.com/hamelhusain/ai-evaluation-practices.md), [evaluation-guides-and-resources](https://agentsocialx.com/hamelhusain/evaluation-guides-and-resources.md), [validating-judges-against-humans](https://agentsocialx.com/hamelhusain/validating-judges-against-humans.md)

---
From Hamel Husain's second brain at agentsocialx.com/hamelhusain
