FDE Times dataFDE jobs open 932▼14 Change in open roles over 7 days, like-for-like: roles from companies we started tracking this week are left outNew in 7 days 62Companies hiring 202Remote-friendly 24%Median US pay $201kTop hirer Databricks 92
中文VI

The newspaper of the Forward Deployed Engineer

Guides

The rubric that teaches a client's assistant to say "I don't know"

An insurance example shows how to turn a claims lead's judgments into a pass/fail rubric, then check whether the LLM judge grades the way the human does.

ShareLinkedInFacebookX

In brief

  • The model must be allowed to say it doesn't know, with a clear scope and a fixed fallback sentence. That is the basis of the refusal criterion.
  • The rubric should grade pass/fail and be drawn from a client expert's handwritten comments. It must penalize both made-up answers and needless refusals.
  • Don't trust the judge until it has been checked against human labels. Computing TPR and TNR separately shows where the judge grades too leniently.
Horizontal bar chart comparing three LLM judge metrics on a hypothetical set of 40 cases: TPR 96%, overall agreement 82.5% and TNR 60%. The TNR bar is coloured orange and annotated to show that 6 in every 15 wrong answers slip past the judge.
An overall agreement of 82.5% sounds fine, but TNR is only 60%: the judge lets through 6 of every 15 answers that experts failed. That is why TPR and TNR should be reported separately. Source: hypothetical worked example in the article, following Hamel Husain's method.

Anthropic’s official documentation contains a surprisingly simple recommendation: tell the model explicitly that it is allowed to admit uncertainty. According to Anthropic, that alone can sharply reduce false information.

At a client’s office, the question gets harder. What is the assistant allowed to say it doesn’t know about, and who decides whether an answer is good enough?

A generic rubric along the lines of “accurate, helpful, polite” cannot settle that. Each client has its own documents, its own risk tolerance and one person who understands the business far better than the engineering team does. A good FDE turns that person’s knowledge into criteria a machine can grade.

The steps below follow a hypothetical insurance company from start to finish: writing the refusal clause, getting labels from the expert, writing the rubric, then checking whether the judge grades the way a human would.

What you will build, and what you need

The insurer wants an assistant that helps customer service staff look up policy terms. By the end you will have four things: a system prompt with a refusal clause, a three-line rubric, a set of test cases labeled by the expert, and two numbers that tell you how far the judge can be trusted.

The most important input is real questions, pulled from tickets or logs. You also need a few hours with a domain expert, in this case the head of the claims team.

Finally, you need an eval tool with LLM-as-judge, such as Promptfoo’s llm-rubric, and two different models: one to generate answers and one to grade them.

Step 1: write the refusal clause before the rubric

A rubric can only grade what has been clearly asked for. Anthropic’s example does exactly two things: it states the scope of the task, then gives the model a fixed fallback sentence for when the source lacks the information. Applied to an insurance policy, that section might look like this (abridged):

Answer only from the policy clauses provided,
not from general knowledge.
Every claim must come with a verbatim quote from the clause.
If the clauses do not contain enough information, reply with exactly one sentence:
"I don't have enough information to assess this with certainty."

The first line is the technique of restricting the model to the documents provided. Anthropic also warns that this technique does not eliminate hallucinations entirely, so important outputs still need checking. That is why you need a rubric.

How to check: ask three questions you are certain the policy does not cover. If the reply does not match the fallback sentence word for word, fix the prompt before going further.

Step 2: read real data with the expert instead of guessing criteria

Hamel Husain advises writing the judge prompt only after looking at real data. He also recommends handing the grading to a single principal expert, who marks each answer pass or fail, with no complex scales or multiple metrics. On an FDE project, that person is the client’s domain expert.

According to Husain, every grade should come with a handwritten comment, detailed enough to serve as a few-shot example for the LLM judge. A simple label table looks like this:

id | question                                     | label | expert comment
07 | Is storm flooding covered?                   | fail  | Said "yes" but did not cite clause 4.2, which excludes flooding from tidal surges
12 | How is the after-hours consultation fee charged? | fail  | The policy covers it in Appendix B, yet the assistant refused to answer
19 | Is pet cover included?                       | pass  | The policy does not mention it; the assistant used the exact fallback sentence

Look at case 12. The expert penalizes an unnecessary refusal just as hard as a made-up answer. Most hastily written rubrics miss this dimension.

Step 3: turn the comments into a three-line rubric

Reread a few dozen comments and you will see they cluster around a handful of recurring errors. The first line comes from another Anthropic technique: every claim must be backed by a citation, and a claim with no citation must be withdrawn. The third line draws on OpenAI’s Model Spec, which treats refusal as a last resort.

An answer PASSES if and only if it meets all three conditions:
1. Every claim about benefits comes with a verbatim quote
   from the clauses. A single unsourced claim is a FAIL.
2. If the clauses do not contain the answer, the correct output is
   the fallback sentence, with no added speculation.
3. If the clauses DO contain the answer, refusing is a FAIL.

Step 4: put the rubric into Promptfoo

Promptfoo describes llm-rubric as an assertion that uses a model to grade output against criteria you write. The abridged configuration below has two tests: the first uses the pass/fail rubric from Step 3, the second a rubric that gives partial credit.

# Abridged for illustration
tests:
  - vars:
      question: "How is the after-hours consultation fee charged?"
    assert:
      - type: llm-rubric
        value: "<paste the three-line rubric from Step 3>"
  - vars:
      question: "Is storm flooding covered?"
    assert:
      - type: llm-rubric
        value: "<partial-credit rubric>"
        threshold: 0.8

The first test has no threshold, so Promptfoo decides the result from the boolean pass field the judge returns. That is what a pass/fail rubric needs.

The second test applies threshold to the judge’s score from 0.0 to 1.0. Without that line, a partial-credit rubric is still graded on the pass field.

The 0.8 figure is only an example; choose it according to the level of risk the client can accept. One more detail from Anthropic’s example: grade with a different model from the one that produced the answer.

Step 5: does the judge grade like the expert?

Husain advises treating human labels as ground truth and reporting True Positive Rate and True Negative Rate separately. Run the numbers on a set of 40 cases. The expert passes 25 and fails 15.

Say the judge passes 24 of the 25 cases the expert passed, a TPR of 96%. But it fails only 9 of the 15 cases the expert failed, a TNR of 60%. Combined, agreement is 33 out of 40, or 82.5%, which sounds respectable.

That combined figure hides the most important fact: of every 15 wrong answers, 6 get past the judge. The next job is to open exactly those 6 cases and add the expert’s matching comments to the judge prompt as few-shot examples.

Then close the loop: rerun the judge on the full set and recompute both TPR and TNR. Hold back a few failing cases that never went into the few-shot examples, because a judge correctly grading the examples it has just been shown proves nothing. If TNR still doesn’t move, the expert’s comments are probably not specific enough, and you go back to Step 2.

To isolate refusals, you can use Arize Phoenix’s Refusal evaluator. It detects when an LLM refuses, declines or dodges a question. It tells you whether the assistant refused. Whether that refusal was right is something only lines 2 and 3 of the rubric can answer.

Once the judge is reliable, expand the test set

Anthropic’s guidance on eval design is explicit: many automatically graded questions, even with a slightly weaker signal, beat a few questions carefully graded by hand. The expert’s time should go into calibrating the judge. Leave grading hundreds of answers to the machine.

As you scale up, watch for four traps. The first is writing the rubric before reading the data. The telltale sign is a rubric full of words like “accurate” and “helpful,” in which the expert recognizes none of the errors they have actually caught. The fix is to go back to the label table and derive each line of the rubric from a real comment.

The next trap is a 1-to-5 scale. The sign is a team that argues endlessly over what a 3 means and never settles it. Move to pass/fail, as Husain advises, and let the nuance live in the comment.

The third trap is letting the generating model grade itself. Its errors and the judge’s errors can then coincide, and you cannot tell them apart. The fix is simply to switch to a different grading model, then remeasure TPR and TNR.

The costliest trap is reporting only combined agreement. The clearest sign is the 82.5% figure above: it looks fine while 6 wrong answers slip through. Every time you change the rubric or add few-shot examples, report both numbers separately.

How this skill shows up on a client site and on a CV

On a client site, what earns trust in the assistant is a set of 40 cases labeled by the client’s own expert, reported with TPR and TNR. A polished demo counts for far less. When the client adds new documents, you only need to add cases and recalibrate the judge.

When reading FDE job descriptions, look for phrases such as “evals,” “LLM-as-judge” or “working with subject-matter experts.” On a CV, a specific line carries far more weight than “experience with LLMs.” For example: “built a pass/fail rubric with a domain expert, raising the judge’s TNR from X to Y.”

The cheapest way to learn is to do it now on a personal project. Find someone who understands a domain better than you do and ask them to grade 20 answers. The first rubric you write will not be perfect, but at least it measures against the client’s own standard.

Was this article useful?

Use with your AI assistantAsk Claude ↗Ask ChatGPT ↗
6 sources
Read next on the roadmap · Stage 6: MeasurementThe big model wins the demo, a small one gets past infrastructureDistillation lets a large teacher model label the data so a small student can run on the customer's own machines, answering questions on cost, latency and data.