Human Evaluation and Feedback

Updated · 5 min read
mediumPython 3.13aievaluationhuman-reviewfeedbackstatistics

Human evaluation means people rating an AI application's answers, using a shared rubric. It is the ground truth that automatic checks are measured against: people catch wrong tone, missing context and subtle errors that rules and model judges miss. User feedback, such as thumbs up and down, adds signals from real use at a much larger scale.

Reviewers, Rubrics and Agreement

Shared rules, measured agreement, real feedback
PartDescription
RubricIt is used to define what a good answer is, so reviewers judge the same way
SampleIt is used to pick a manageable, representative set of answers to review
Two or more reviewersIt is used to check that ratings depend on the answer, not the person
AgreementIt is used to measure how consistently reviewers rate the same answers

Example: Measuring Reviewer Agreement

Srihitha and Advitha each rate the same 20 Campus Helper answers as good (1) or not good (0). These ratings are made up for the lesson; the calculation is real.

kappa.py
# Two reviewers rate the same 20 answers: 1 = good, 0 = not good
srihitha = [1, 1, 0, 1, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1]
advitha  = [1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 0, 1]
 
n = len(srihitha)
agree = sum(a == b for a, b in zip(srihitha, advitha)) / n
# Agreement expected by chance, from how often each reviewer says "good"
p_s, p_a = sum(srihitha) / n, sum(advitha) / n
chance = p_s * p_a + (1 - p_s) * (1 - p_a)
kappa = (agree - chance) / (1 - chance)
 
print(f"Raw agreement: {agree:.0%}")
print(f"Agreement expected by chance: {chance:.0%}")
print(f"Cohen's kappa: {kappa:.2f}")
print("Disagreed on answers:", [i + 1 for i, (a, b) in enumerate(zip(srihitha, advitha)) if a != b])
Output
Raw agreement: 85%
Agreement expected by chance: 60%
Cohen's kappa: 0.63
Disagreed on answers: [5, 10, 17]

Explanation: The reviewers agree on 17 of 20 answers, 85%. But because both say "good" most of the time, they'd agree about 60% of the time even by guessing. Cohen's kappa corrects for that: 0.63 means substantial agreement beyond chance (1 is perfect, 0 is chance level). The three disagreements are the most useful output: discussing them usually reveals a gap in the rubric.

User Feedback

SignalDescriptionWatch out for
Thumbs up and downIt is used to collect quick ratings on every answerFew people click, and unhappy people click more
CommentsIt is used to learn why an answer failedRare, but very informative
BehaviorIt is used to read signals such as asking again or calling the officeIndirect; needs interpreting

Common Mistakes

No written rubric. Each reviewer judges differently, and the numbers mean nothing.

One reviewer only. You can't tell the answer's quality from the reviewer's taste.

Treating thumbs-up rates as accuracy. Satisfied users can still be wrong about a wrong answer.

Interview Corner

Why is human evaluation still needed when you have automatic checks?

People are the ground truth. They catch subtle errors, tone and missing context, and they're needed to check that automatic and model-graded evaluations agree with real judgment.

What is Cohen's kappa?

A measure of agreement between two raters that corrects for agreement expected by chance: 1 is perfect agreement and 0 is no better than chance.

Practice

Exercise: rate with a rubric. Take ten answers from the evaluation in "Building an Evaluation Set". With a friend, rate each one good or not good using the rubric above, then compute your kappa with kappa.py. Discuss every disagreement and improve one rubric line.

Check your understanding:

  1. What is a rubric for?
  2. Why is 85% raw agreement less impressive than it sounds here?
  3. What should you do with disagreements?

Quick check: human evaluation

4 questions
1What was Cohen's kappa for the two reviewers?
2Why correct for chance agreement?
3What do disagreements between reviewers usually reveal?
4What is a weakness of thumbs-up ratings?

Key Takeaways

Quick reference

NeedApproach
Consistent ratingsA written rubric
Trustworthy ratingsTwo reviewers and kappa
Real-use signalsThumbs, comments, behavior
Normal qualityA weekly random sample

Was this tutorial helpful?

Lesson 112 of 186