Chapter 5. Evaluation and improvement

Learning objectives

  • Convert success criteria into a rubric with observable passing conditions, and define fatal errors separately.
  • Create a test set reflecting actual distributions and edge cases, and divide it into improvement and validation sets.
  • Choose the appropriate grading method among code, human, and LLM grading for each criterion, and calibrate LLM evaluators against human judgments.
  • Compare before and after changes using the same set to detect regressions, and analyze results broken down by groups.
  • Classify failure cases by type and stage of occurrence to determine the next modifications.

Introduction

Someone added a single line, "Translate more naturally," to the prompt of an in-house translation assistant used by the overseas sales team. The team lead skimmed a few results and was satisfied, remarking that the sentences had become much smoother. A month later, an issue emerged during a contract document review. Several translations reversed expressions indicating delivery deadlines between 'by' and 'from', all of which were types of sentences that had been translated accurately prior to the modification. The few cases the team lead skimmed did not contain any deadline expressions. The team felt they had done nothing wrong. After all, they had seen clearly improved results. The problem was not what they saw, but what they did not see. Evaluation is precisely the mechanism that makes one see what was left unseen. OpenAI's evaluation best practices also cite treating "it seems to work well" as an evaluation strategy as a prime anti-pattern.

This chapter covers how to turn that feeling into numbers. The sequence involves translating success criteria into evaluation items and rubrics, creating test sets divided into improvement and validation sets, selecting grading methods for each criterion, managing the limitations of LLM evaluators, measuring variability, comparing before and after using the same set, managing regressions, and classifying failures to decide on subsequent modifications. Finally, we examine how to evaluate multi-step systems such as agents, and in Going deeper, address the disconnect between scores and reality as well as the consistency of human grading.

Key concepts

Evaluation is retaking the same test paper

To know whether a student's skills have improved after changing their study method, they must be tested again using an exam paper of the same difficulty. Solving a few different questions each time and feeling "I think I did well" is not an evaluation. The same applies to prompts. One must compare before and after with a fixed test set to know whether it is an improvement or a regression. OpenAI guides recommend measuring behavior with evaluation suites when modifying prompts or upgrading models, and evaluation best practices recommend "evaluation-driven development"—evaluating early and often.

Turning success criteria into evaluation items

Anthropic documentation explains that good success criteria should be specific ("accurate sentiment classification" instead of "good performance"), measurable, achievable, and relevant to the business task. It adds that most tasks require examining multiple criteria together. Beyond accuracy, consistency, tone, personal information protection, context utilization, latency, and cost can also serve as criteria.

When converting criteria into evaluation items, one more thing is determined: fatal errors. If lumped together into an average score, an answer with a high tone score might still pass even if it gets an amount wrong. Items where a single error makes the result unusable—such as amounts, dates, or prohibited promises—are excluded from weighted averages and treated as "fail if any single one fails."

Item Type Verdict
Amounts and dates match source text Fatal Fail if any differ
No prohibited promises Fatal Fail if present
Required information included General Pass rate by item
Tone General 1–5 scale rubric

How to use rubrics

A rubric is the success criteria from Chapter 1 translated into a grading sheet. A good rubric makes it clear what to look for to determine a pass for each item. An example given in Anthropic documentation is: "The company name must be in the first sentence of the response; if absent, it is automatically incorrect."

Principles when writing rubrics are as follows:

  1. Write with observable conditions. Instead of "polite," use "contains both an apology expression and a resolution method."
  2. Use narrow scales. Obtain outputs with clear determinations, such as correct/incorrect or 1–5 points. A 1–100 scale blurs criteria further.
  3. Attach reference examples for each score. If using a 1–5 scale, attach one actual example each for 3 points and 4 points so that graders share the meaning of the same score.
  4. Ask only one thing per item. Split "Is it accurate and concise?" into two separate items.
  5. Use multiple rubrics if necessary. Anthropic documentation states that even for a single criterion, multiple rubrics may be needed to view the whole picture.

Creating a test set

Anthropic documentation presents three principles for evaluation design:

  1. Tailor to the task. Reflect the distribution of real tasks and do not forget edge cases.
  2. Automate where possible. Design questions so they can be graded automatically, such as multiple-choice, string matching, code grading, and LLM grading.
  3. Prioritize quantity. Many automatically graded questions, even if the signal is slightly weaker, are better than a small number of questions precisely graded by hand.

For edge cases, include irrelevant or nonexistent inputs, excessively long inputs, inappropriate or harmful user inputs, and ambiguous cases where even humans disagree. OpenAI documentation advises including typical cases, edge cases, and adversarial cases together, citing operational data, historical data, expert-created data, and synthetic data as data sources. It also adds that keeping logs during development allows one to extract good evaluation cases.

There is no need to be intimidated by the initial scale. Anthropic's agent evaluation article recommends starting with 20 to 50 tasks drawn from actual failures, and notes that the same company's multi-agent research system also began evaluations with around 20 queries drawn from actual usage. Start small and expand whenever failures occur. While one can provide reference cases to a model to generate additional test cases, synthetic cases should be reviewed by humans before inclusion, and personal information in operational data must be removed or pseudonymized.

Dividing into improvement and validation sets

Continuously modifying prompts while looking at the same set causes prompts to evolve to fit only the cases in that set. It is just like how the score of a student who studied after seeing exam questions in advance does not reflect their true ability. Therefore, the set is divided into two.

Set Usage Management principle
Improvement Inspected when modifying prompts upon seeing failures Freely opened and reviewed; failure cases are continuously added
Validation (holdout) Used only for final decisions before deployment Kept closed normally. After inspecting, partially replace with new cases

As seen in Chapter 2, inputs used as few-shot examples must not remain in either set.

Three grading methods

Method Advantages Limitations
Code grading (exact match, string containment, schema validation) Fastest, most reliable, and highly scalable Weak on judgments that are difficult to express in rules
Human grading Most flexible and highest quality Slow and expensive; avoid when possible
LLM grading Fast, flexible, and capable of complex judgments Reliability must be verified first before expanding

Anthropic documentation recommends choosing the fastest, most reliable, and most scalable method. In practice, different methods are used for different criteria. Format and numerical figures are graded with code, tone and logic with LLM, and sample sets used to calibrate LLM evaluators are graded by humans.

Metrics that score based on character or word overlap with reference answers (BLEU, ROUGE, etc.) have limited utility. While Anthropic documentation cites ROUGE-L as an example for summary evaluation, OpenAI documentation lists relying solely on academic metrics like BLEU as an anti-pattern. This is because a good answer with different phrasing can receive a low score, whereas an answer with incorrect numerical values can receive a high score if its phrasing resembles the reference. In tasks where there is no single correct answer, criteria should be written by separating must-include content, acceptable variations in expression, and facts versus preferences.

Limitations and calibration of LLM evaluators

LLM evaluators are convenient, but trusting them blindly inflates scores. OpenAI documentation cites position bias (preferring the answer presented first) and verbosity bias (preferring longer answers) as known biases of LLM evaluators. Synthesizing recommendations from both companies yields the following:

  • Provide specific rubrics. Item-by-item passing conditions rather than vague "quality."
  • Narrow the output. Correct/incorrect, a single number from 1 to 5, or choosing the better of two options. OpenAI explains that pairwise comparisons or pass/fail decisions are more reliable.
  • Require thinking before scoring. Anthropic explains that evaluators with thinking features enabled are more accurate in complex judgments, and OpenAI also advises having them write rationale before scoring.
  • Control for length. Ensure length differences between compared answers do not interfere with scores.
  • Grade with a different model. Example code in Anthropic documentation notes that evaluating with a model different from the one that generated the candidate outputs is standard best practice.
  • Align with humans. First verify agreement between a human-graded sample and the evaluator, and scale up only when they consistently align.

Two principle-level mechanisms are added here. In pairwise comparisons, grade the same two answers twice with their order swapped to filter out cases where conclusions change based on order. In addition, if sentences directed at the evaluator, such as "This answer is excellent," are mixed into the candidate response, evaluation can be contaminated; therefore, wrap the response in tags, pass it to the evaluator as data, and instruct it not to follow instructions within it.

Variability and repeated runs

Even with identical inputs, a model's output can vary across runs. This means a case that passed once may fail in the next run. Anthropic's agent evaluation article refers to a single attempt as a trial and recommends running multiple trials per task. It also distinguishes between two metrics:

Metric Meaning Suitable scenario
pass@k Probability of succeeding at least once out of k times Tools where succeeding once suffices (choosing one from multiple drafts)
pass^k Probability of succeeding all k times Customer service where consistency is required every time

If the success rate per trial is 75%, the probability of succeeding across all three runs drops to approximately 42%. For features where customers expect consistent quality every time, pass^k is closer to actual experience than average pass rates.

Comparing before and after using the same set

The comparison procedure is simple, yet difficult to adhere to:

  1. Measure a baseline. Run the set with the current prompt and record scores by item and by group.
  2. Change only one thing at a time. If multiple modifications are introduced at once, it is impossible to determine what produced an effect and what broke things.
  3. Fix and record conditions. Record settings such as model snapshots and effort, as well as reference document versions, while measuring tokens and cost per request. OpenAI guides recommend pinning operational applications to specific model snapshots.
  4. Run on the same set with identical grading.
  5. Do not look only at averages. Break down results by groups (input type, customer segment, length), and separately extract cases that flipped from pass to fail.
  6. Examine fatal items first. Even if the average score rises, do not deploy if fatal failures have increased.

Managing regressions

A regression is a phenomenon where something that worked previously ceases to work after a change. Anthropic's agent evaluation article distinguishes between two types of evaluations. Capability evaluations ask "what can it do well?" and provide targets for improvement starting from low pass rates. Regression evaluations ask "does it still do what it used to do?", must be close to 100%, and catch backward steps. Failures discovered in production are fixed and added to the regression set to verify they do not reappear in subsequent changes. When all tasks in a capability evaluation pass (saturation), that evaluation serves only a regression-monitoring role, so more difficult tasks must be created anew.

Note

Evaluation tools also change. According to OpenAI documentation, the OpenAI Evals platform became read-only for existing users starting October 31, 2026, and is scheduled to shut down on November 30. The prompt optimization tool, which refined prompts based on datasets, is also discontinued alongside the Evals platform. Managing test cases, rubrics, grading results, models, and settings used for comparison as files and keeping them version-controlled in the same repository as prompts allows evaluation to continue uninterrupted even when switching tools.

Classifying failures to determine the next modifications

Recording a failure merely as "incorrect" makes it impossible to know what to fix next. Record both the failure type and its stage of occurrence.

Failure type Representative symptom First modification to attempt Relevant chapter
Missing instruction Rule in the middle of a long prompt omitted Separate rule into a distinct section, add reasons, use numbering if order matters Chapter 1
Conflicting instructions Output oscillates on the same input Organize by application conditions or priority Chapter 1
Format breakdown Changed field names, truncated JSON Structured outputs, check stop reason Chapter 2
Over-generalization Copying example sentences, skewing toward a single label Diversify examples, add edge cases, adjust example counts Chapter 2
Unsubstantiated content Figures or facts not in source text Quote first, relevant materials only, grant permission to say "I don't know" Chapter 3
Retrieval failure Evidence for correct answer not in context Modify query, indexing, or retrieval methods Chapter 3
Insufficient reasoning Incorrect answers only in cases with many conditions Increase effort, provide targeted instructions, separate steps Chapter 4

Once classification is complete, prioritize by multiplying frequency by severity. Fatal failures can be fixed before frequent minor failures even if they occur rarely. Then, select only one modification to make next, noting in advance which cases that modification is intended to solve and which cases it must not break.

Agent evaluation: outcomes and transcripts

Because agents operate through multiple tool calls, looking solely at the final answer obscures the cause of failure. Anthropic's agent evaluation article distinguishes among task (a single test with defined inputs and success criteria), trial (a single execution), grader, transcript (the complete record including outputs, tool calls, and reasoning), and outcome (the final state of the environment following a trial). There is a difference between a reservation agent stating "I made the reservation" and the reservation record actually existing in the database. Grading is done on the outcome.

The same article recommends grading outcomes rather than trajectories. This is because agents often discover legitimate trajectories unexpected by system designers. One must review transcripts and scores extensively to verify whether graders function correctly, and include cases where actions should occur alongside cases where actions should not occur. If only cases requiring search are included, an agent that searches for anything will result. OpenAI evaluation best practices also instruct evaluating tool selection, tool argument accuracy, and handoffs between agents separately. The number of tool calls and tokens are measured separately from outcomes as cost metrics. Measure where failures occur before altering architectures.

When changing models, recalibrate effort first

There is a reason why recording effort was emphasized in before-and-after comparisons: omitting effort from a request causes execution at different effort levels across models.

Model Request omitting effort Considerations when migrating
Claude Opus 5 high If omitted previously, the existing baseline was measured at high
Claude Opus 5.5 medium Leaving code as-is downgrades execution to medium
Claude Sonnet 5.5 high (Claude API default) Tiers are recalibrated differently from Sonnet 5, requiring evaluations to be rerun

Anthropic documentation recommends starting at high for Sonnet 5.5 unless tasks are agentic or latency-sensitive.

There are two principles to uphold. First, specify effort explicitly in both evaluation and production. Leaving it to defaults alters effort simply by changing models, inadvertently violating the rule to "change only one thing at a time." Next, verify that recorded values match the values actually applied. Gemini 4 deprecated thinkingBudget, which previously took numeric values. Sending only this value converts it to the closest thinkingLevel and returns a warning. Sending both values results in an HTTP 400 error. If warnings are ignored, recorded configurations show numerical budgets while actual runs executed using tier settings.

There are cases where deprecation dates are fixed. claude-sonnet-4-5-20250929 reaches end-of-life on November 30, 2026, with claude-sonnet-5-5 as its replacement model. For teams that pinned consultation summaries to this snapshot, run the regression set across each Sonnet 5.5 effort tier prior to the shutdown date and select a tier that does not increase fatal items. Modifying prompts first simply because outputs changed ends up misattributing effort differences to prompts.

Thinking tokens count toward both cost and failure

Looking only at quality in comparisons across effort tiers skews cost assessments. Claude bills tokens spent on thinking as output tokens. This is true whether thinking text is displayed or hidden. Even thinking.display: "omitted", added in March 2026, merely empties the text in the thinking block and preserves only the signature, leaving billing unchanged. Therefore, comparison tables must record total output tokens stamped on the response, rather than the length of the visible answer on screen.

Thinking tokens also share max_tokens. If thinking runs long, the limit is reached before the visible answer can be fully generated. Models after Claude 4.5 also accept requests where the sum of input and max_tokens exceeds the context window. If generation hits the edge of the window, it stops with stop_reason: "model_context_window_exceeded". Counting truncated answers together with content-based incorrect answers misidentifies the root cause. Check stop reasons prior to grading, count them separately, and classify them as format breakdown in the failure taxonomy table. What needs fixing is not the instructions, but the limit configuration.

Suppose a contract review assistant was compared between medium and high, and the pass rate for high turned out lower. Inspecting failure cases revealed that most answers were cut off mid-generation. The conclusion to draw here is not "high performs worse," but rather "increase max_tokens and measure again."

There is also a limitation to keep in mind when reading transcripts. No display setting returns raw, unmodified thinking text. Use thinking text recorded in transcripts only as reference material to infer failure causes; grading continues to rely on final answers and outcomes.

Reduce evaluation run costs with batching and caching

Running the same set multiple times across effort tiers causes evaluation costs to mount rapidly. Sending evaluation runs that do not require immediate responses via the Message Batches API reduces request prices by 50%.

In evaluator prompts, place identical front-loaded content, such as rubrics and reference cases, into prompt cache. Caches are maintained for a default of 5 minutes and refresh on each use at no additional cost. If execution intervals are longer, specify cache_control's ttl as "1h" to use 1-hour caching for an additional fee. The minimum cached length in Opus 5.5 is 512 tokens; earlier models require longer lengths.

Execution order also affects costs. Changing the top-level effort value between requests invalidates the prompt cache. When comparing 300 items sharing a 2,000-token rubric across medium and high, do not alternate between the two tiers; complete 300 items at medium first, then run 300 items at high. Using beta features that adjust effort at the message level preserves the cache.

Cost baselines must also track price changes. Starting October 7, 2026, cache read pricing for Opus 5.5 and Sonnet 5.5 dropped from 0.1x to 0.05x the base input price. Directly comparing costs measured prior to that date against new runs makes price reductions look like effects produced by prompt modifications. Uploading source documents via the Files API does not eliminate costs either. While file operations themselves are free, file contents included in requests are billed as input tokens.

Going deeper

When scores fail to reflect reality

There are cases where evaluation scores rise while user complaints remain unchanged. The cause is usually one of three things: the evaluation set has drifted away from the actual input distribution (new products, new customer segments), the rubric does not measure what users actually find inconvenient, or long-term tuning on the same set has resulted in overfitting to that set. The response is to periodically review operational signals (re-inquiry rate, agent transfer rate, user ratings) alongside evaluation scores. If the two diverge, collect complaint cases to add to the evaluation set and check whether any criteria are missing from the rubric. One of the anti-patterns highlighted in OpenAI documentation is failing to calibrate automated metrics with human feedback.

Consistency of human grading

To calibrate an LLM evaluator against human judgment, human judgment itself must be consistent first. If different graders assign completely different scores to the same answer, nothing can be calibrated with those scores. OpenAI documentation recommends improving human evaluation by providing examples for each score level, establishing pass/fail criteria, and using consensus among multiple graders. In practice, add the following:

  1. Reduce the scale: change a broad scale to 5 levels or pass/fail.
  2. Split rubric items so that only one thing is judged at a time.
  3. Attach reference examples to each score, and align standards before grading by scoring several cases together.
  4. Have two people grade overlapping subsets of cases to measure the agreement rate. Using an agreement metric that accounts for chance agreement (e.g., Cohen's kappa) makes this more rigorous.
  5. Collect disagreement cases and refine the wording of the rubric.

At work

Daily Pharmacy: Why deployment was stopped despite an increased average

Pharmacy chain Daily Pharmacy drafted medication guidance sheets based on prescription information, and all guidance sheets were delivered to patients after final review by a pharmacist. Pharmacist Oh on the improvement team heard feedback that the guidance sheets were too long and wanted to add "within five lines" to the prompt. In the past, they would have sampled a few cases to read through and deployed immediately, but this time they prepared evaluations first.

  1. Building the set. They sampled 80 cases matching the actual prescription type distribution of the past three months, and added 20 edge cases such as prescriptions with six or more medications, pediatric prescriptions, and prescriptions with unusual administration methods. All personal information was removed. Among these, 30 cases were locked away separately for verification.
  2. Rubric. Whether dosing schedules and dosages matched the prescription and whether precautions were omitted were designated as critical items and graded with code that compared them against the source text. Length (within five lines) was also measured with code. Understandability was graded on a scale of 1 to 5 by a different model not used for generation, with reference examples attached to each score. This evaluator was first verified to agree with 20 cases scored by two pharmacists.
  3. Comparing with the baseline. After measuring the baseline with the current prompt, they ran the version with only "within five lines" changed three times each on the same set.

The result was an increase in the overall average. The length pass rate and understandability scores improved together. However, breaking it down by cohort revealed a significant increase in omitted precautions for prescriptions with six or more medications. This was a failure on a critical item. In trying to fit six medications into five lines, precautions had been trimmed away.

One team member said, "The average went up, so let's deploy and fix only that type later." Pharmacist Oh refused. This was because they had predetermined a criterion: any change that increases failures in critical items must not be deployed, regardless of the average. He revised the rule to "Default to five lines; if medications exceed five types, add one line per medication and do not reduce precautions," and measured again. After confirming that regressions disappeared on the tuning set, they made the final judgment using the 30 locked verification cases; because the results were consistent, they deployed. Cases where precautions were omitted were added to the regression set.

Soundwing Games: Aligning a translation evaluator with humans

Mobile game company Soundwing Games used a model to translate in-game announcements and item descriptions into four languages. Translation quality had been graded by another model on a three-tier scale of "Excellent / Average / Poor", and almost all translations received "Excellent". However, issues were raised by the local operations team. In some translations, variable placeholders such as {item_name} and {count} were missing or translated, causing broken text to appear on game screens, and in some cases, numbers in item descriptions were altered. The evaluator had given "Excellent" even to such translations.

Localization team lead Team Lead Lim redesigned the evaluation system. First, they checked the human standards. When three native-speaking reviewers were asked to grade the same 30 translations, there were frequent cases where both "Excellent" and "Poor" were given to the exact same translation. Even among humans, standards differed.

Team Lead Lim broke down the single comprehensive score into four items.

Item Criterion Grading method
Placeholder preservation All placeholders from the source text remain intact Code (critical)
Numerical preservation All numbers from the source text are identical Code (critical)
Semantic accuracy Source text meaning is neither omitted nor added LLM evaluator, pass/fail
Naturalness 1–5 points, reference examples for each score LLM evaluator

For semantic accuracy and naturalness, the three reviewers selected reference examples together and aligned their standards by grading 20 cases collaboratively. Next, they had pairs of reviewers grade 50 overlapping cases to confirm that the agreement rate was sufficiently high, and then compared these human judgments with the LLM evaluator's judgments. Initially, the evaluator showed a tendency to give generous naturalness scores to translations that were phrased more verbosely than the source text. Team Lead Lim added the criterion and example "If explanations not present in the source text are added, it fails semantic accuracy" to the evaluator instructions, and required it to write reasoning before scoring. Translation outputs were wrapped in tags and passed as data to the evaluator.

There was also a suggestion: "Couldn't we just replace the evaluator with a more expensive model?" Team Lead Lim revised the rubric before doing that. This was because placeholder and numerical issues could not be graded more accurately by any model than by code, and ambiguous criteria were the cause of issues with semantic accuracy. Only after the agreement between the evaluator and human judgment became sufficient under the new system did they begin running automated evaluations before every deployment. Placeholder errors were all caught before deployment, and failed translations were categorized by type to serve as the basis for the next prompt revision.

Common mistakes

  • Judging after reading just a few cases. A small sample misses regressions that occur only in specific input cohorts. A fixed set is needed.
  • Assuming an increased average means improvement. Without breaking down results by cohort, worsening in minority types will be missed. Look at critical items separately from the average.
  • Thinking it is fine to have the same model grade. Grading with a model different from the generation model is standard best practice, and either way, it must be calibrated with human judgment.
  • Believing that expanding the scale makes it more precise. A 1–100 scale makes criteria more ambiguous. Concrete outputs like correct/incorrect or 1–5 points are better.
  • Believing scores remain honest when tuning repeatedly on the same set. It will overfit to that set. Lock away a separate verification set.
  • Assuming it is stable once it passes once. Outputs can vary between runs. If consistency is important, run it multiple times.
  • Believing it is a success if the agent says it succeeded. Grading is based on the final state of the environment, not on words.

Summary at a glance

Topic What to remember
Success criteria Specific, measurable, achievable, relevant. Combine multiple criteria, and handle critical errors separately.
Rubric Observable conditions, narrow scale, reference examples per score, one thing per item.
Test set Actual distribution + edge/adversarial cases. Start with 20–50 and expand with each failure. Remove personal information.
Grading methods Code (fast, accurate), human (flexible, expensive), LLM (fast, requires calibration). Choose per criterion.
LLM evaluator Position and verbosity bias. Narrow output, reasoning before scoring, different model, calibrate with humans.
Before-and-after comparison Baseline → change only one thing → record conditions → same set → by cohort and case → critical items.
Regression Distinguish capability evaluations from regression evaluations. Move operational failures to the regression set.
Failure classification Record type and occurrence stage → frequency × severity → next single fix.
Agent Grade by outcomes, read execution traces, test both when it should and when it should not act.

Check the official docs

Self-check

5-1. List three grading methods compared in the Anthropic documentation, and state one advantage and one limitation of each.

5-2. Write five evaluation criteria for a customer notice generation feature, select which among them to designate as critical criteria, and state the reasons.

5-3. Give four types of edge cases to include in a test set, and state one rule to observe when extracting cases from operational logs.

5-4. Whenever modifying the prompt, failures were fixed while inspecting the entire same evaluation set. Write the reason why this approach makes the score unreliable, and write a solution.

5-5. You intend to introduce a new LLM evaluator to score judgment-based criteria. Write in sequence the calibration procedure to go through before assigning it to score thousands of cases, and add two mechanisms to include in the evaluator instructions.

5-6. There is a response bot with an 80% success rate per attempt. Calculate the probability that it succeeds both times when processing the same customer request twice, and explain a case where this value is closer to the actual experience than the average pass rate.

5-7. When 60 failure cases from last week were classified, there were 25 cases of groundless figures, 5 cases of format breakdown, 18 cases of judgment errors in cases with many conditions, and 12 other cases. Write the procedure for choosing the single next modification, and give one case where choosing based on frequency alone must not be done.

Hands-on tasks

Exercise

Creating your own regression set (60 minutes)

  1. Create 24 test inputs using the prompt modified in Chapter 1. Include 6 or more edge cases, and attach a group name (type) to each input.
  2. Set aside 8 of them separately for verification.
  3. Create a rubric with pass criteria for each item, and mark critical items and items that can be scored automatically.
  4. Run the pre- and post-modification prompts on the 16 inputs for improvement to make a table of pass rates by item and by group. Run the same input three times each to also mark cases where the results fluctuate.
  5. Classify the failure cases according to the failure type table in this chapter.

Done when: Write down the highest-priority failure type and one corresponding next modification, and finish by completing the final check of that modification with the 8 verification items.

Exercise

Calibrating an LLM evaluator (50 minutes)

  1. Select 20 results from Task 1, and choose one judgment-based item from the rubric (e.g., ease of understanding).
  2. Write scoring criteria with one anchor case attached to each score, and personally score the 20 results. If possible, have a colleague also score the same 20 results to measure the agreement rate.
  3. Have a model that was not used for generation score the 20 results using the same criteria. Have it write a brief rationale before the score, and pass the evaluation targets enclosed in tags.
  4. Collect cases where the judgments of the human and the evaluator differ, write down the causes, revise the sentences of the scoring criteria once, and score again.

Done when: Record in a table the number of human-evaluator agreements before and after the revision, and write the main cause of the discrepancy in one sentence.