Interview's MateAI Engineering
Interview's Mate

AI Engineering

LLMs, RAG, agents & evals

Visualizer

DSA Visualizer
All 32 lessons
Custom Playground
Try your own examples

Learning

System Design
31 architecture topics
SQL Learning
160 foundations → production topics
AI Engineering
160 LLM → backend topics
Data Science
160 Python → MLOps topics
Data Engineer
160 SQL → streaming topics
Docker
160 Docker learning topics
Kubernetes
160 K8s fundamentals → cloud
Java LearnSoon
Coming soon
Python Learn
Interview Q&A & internals
JavaScript Learn
Closures, async & DOM Q&A
Tech Learn
Search, practise & track Q&A
AI DSA Practice
Solve coding problems
Theme
Home
AI Engineering topics
Lesson 73/ 160
04. Evals

Human Labeling

Guidelines, inter-annotator agreement, and workflows for trustworthy human evals.

BeginnerGuidelines · Agreement3 quiz questions
Practice Generative AI Q&A
In plain wordsDiagramTheoryStep by stepWhen to use itInterview cluesMistakes to avoidHands-onQuiz (3)Practice

In plain words

People look at AI answers and mark them good or bad, with clear rules and checks that different people give the same marks.

Think of it like…

Running a panel of wine tasters: you train them on a scoring sheet, check that two tasters agree on the same glasses, and discuss disagreements until the standards are shared; otherwise the scores reflect mood, not wine.

Where you’ve seen it

Two support leads label the same 100 answers as acceptable or not. They agree on 80 (45 both acceptable, 35 both unacceptable) and split 10 and 10. Observed agreement is 0.80, but each marks 55% acceptable, so chance agreement is 0.55 × 0.55 + 0.45 × 0.45 = 0.505 and Cohen's kappa = (0.80 − 0.505) / (1 − 0.505) = 0.60: moderate agreement, below the team's 0.7 bar. A review of the 20 disagreements shows two guideline gaps (how to treat answers that are correct but rude, and partial refunds), so they add rules and examples and relabel; the next round reaches κ = 0.78. For the 300-case golden set at 3 minutes per item per annotator, double labeling takes 30 hours, and adjudicating the 20% disagreements adds about 5 hours, around $1,400 at $40 an hour.

Words you’ll hear

Annotation guidelines
Written definitions, edge-case rules and examples that annotators follow.
Inter-annotator agreement
How consistently different annotators label the same items (percent agreement, Cohen's kappa).
Adjudication
Resolving disagreements through a third expert or discussion.
Gold set
A small, carefully verified labelled set used to calibrate annotators and judges.

Visual diagram

Loading interactive diagram

Theory & deep dive

Setting up reliable labeling

Start with task design: define the label scale (prefer binary or 3-level with precise definitions), the unit (a whole answer, a claim, a conversation) and what annotators can see (context, sources, history). Write guidelines that list each criterion, decision rules for edge cases and 3 to 5 worked examples per label, including borderline ones. Choose annotators for the task: domain experts for medical, legal or policy accuracy; trained generalists for tone and helpfulness; crowd workers only for simple, objective judgements with strict quality checks.

Run a calibration round: everyone labels the same 20 to 30 items, you compare, discuss every disagreement and update the guidelines. Insert gold items with known answers to monitor annotator quality, and randomise order and hide model identity to avoid bias. Use tools that capture the label, a short rationale for hard cases, time spent and annotator id, and that support versioned guidelines. Double-label at least the golden set and a sample of the rest.

A guideline rule

"Acceptable = the answer is correct per the policy AND polite AND answers every part of the question. If the facts are right but the tone is rude, label Unacceptable and tag reason: tone. If the user's question is ambiguous and the assistant asks a clarifying question, label Acceptable."

Key takeaway: Precise guidelines with examples, qualified annotators, calibration and gold items.

Measuring quality and spending effort wisely

Measure agreement with percent agreement and Cohen's kappa (κ = (p_o − p_e) / (1 − p_e), where p_e is agreement expected by chance); use weighted kappa or Krippendorff's alpha for ordinal scales and more than two raters. Rough guide: below 0.4 weak, 0.4 to 0.6 moderate, 0.6 to 0.8 substantial, above 0.8 strong, but judge by how reliable the labels need to be for the decision. Low kappa usually means the task or guidelines are ambiguous, not that annotators are careless; read the disagreements, fix the rules and relabel.

Labeling is expensive, so be selective. Label informative items: failures from production, cases where the judge is uncertain or disagrees with users, and a stratified random sample to estimate overall quality. Use LLM judges to pre-screen, then human-review a sample and the uncertain tail (active sampling). Keep a rolling audit of 5% of ongoing labels, watch annotator drift over time, pay fairly and give annotators a channel to flag unclear cases. Store raw labels, final adjudicated labels and guideline version so datasets stay reproducible.

Computing kappa

Both yes 45, both no 35, A-yes/B-no 10, A-no/B-yes 10. p_o = 0.80. Each rater says yes 55% of the time, so p_e = 0.55² + 0.45² = 0.505. κ = (0.80 − 0.505) / 0.495 = 0.596, about 0.60.

Key takeaway: Use kappa and read disagreements, then spend labeling effort on informative items.

How it works, step by step

Step 1 of 4
Eval lead

1. Define the task and guidelines

Choose the scale and unit, write criteria, edge-case rules and examples, and pick suitable annotators.

Acceptable / Unacceptable + reason tags
Key numbers at this step
Examples
3–5 per label

When to use it & trade-offs

What it is

Human labeling is the process of having people judge AI outputs or create reference answers so you have trustworthy ground truth for evals, judge calibration and fine-tuning data. Good labeling is a process, not a task: clear guidelines with examples, qualified annotators, calibration rounds, inter-annotator agreement (such as Cohen's kappa), adjudication of disagreements and a feedback loop that fixes ambiguous instructions. Humans are the gold standard for quality judgements, but they're slow, costly and inconsistent unless the process is managed.

Why it matters: Every automated eval (LLM judge, rubric, metric) is only as good as the human labels used to validate it, and golden datasets need expert-confirmed answers. Poor labeling produces noisy ground truth, which makes judges look worse or better than they are and sends teams optimising the wrong thing. Knowing how to design guidelines, measure agreement and spend labeling budget on the most informative examples is an essential skill for anyone building reliable AI products.

When to reach for it

  • Building and verifying golden datasets
  • Calibrating LLM judges
  • Creating fine-tuning and preference data

When to avoid or be careful

  • Labeling without written guidelines
  • Single-labeling the golden set
  • Blaming annotators when agreement is low instead of reading the disagreements

Who labels

Domain experts
Best for: Correctness in medical, legal, financial and policy tasks

Strengths: High-quality, trusted labels.

Watch out: Expensive and scarce.

Trained internal annotators
Best for: Tone, helpfulness and format judgements

Strengths: Consistent; learns your product.

Watch out: Needs training and management.

Crowd workers
Best for: Simple, objective, high-volume tasks

Strengths: Cheap and scalable.

Watch out: Variable quality; needs gold checks.

Interview signals & numbers to know

When this topic comes up

  • “Annotators disagree”
  • “How do we get ground truth for evals?”
  • “Cohen's kappa”
  • Adjudication
  • Guideline versioning

Benchmarks & rules of thumb

κ = 0.60 -
from 80% agreement with 55% base rates
≥ 0.7 -
typical agreement target before scaling
~$1,400 -
double-labeling 300 items with adjudication

Common mistakes & follow-ups

Common interview mistakes

  • Reporting 80% agreement without correcting for chance.
  • Letting the guidelines change without versioning the dataset.
  • Sending ambiguous tasks to a crowd and expecting expert judgement.

Likely interviewer follow-ups

  • How would you build ground truth for an LLM judge?
  • What does a low kappa tell you and what do you do?
  • How would you spend a limited labeling budget?
Interview tip: Say that low agreement usually signals ambiguous guidelines. It shows you improve the process, not just blame annotators.
Loading hands-on exercise

Knowledge check

Loading quiz

Put it into practice

Practice related interview Q&A

Apply Human Labeling with generative AI interview Q&A and hands-on practice.

Open Generative AI Q&A →Tech Learn Q&A
Previous topic
A/B Testing Prompts
Next topic
Synthetic Test Data