Prompt
How do I set up human evaluation for LLM responses?
Latest observation
Setting up human evaluation for LLM responses works best if you treat it like a small measurement system: define what “good” means, create a repeatable review process, and make the results easy to compare.
1) Start with the evaluation goal
Decide what you want to measure. Common goals:
- Helpfulness / task success: Did the model solve the user’s problem?
- Correctness / factuality: Is the answer accurate?
- Relevance: Does it address the prompt?
- Clarity: Is it easy to understand?
- Safety / policy compliance: Does it avoid harmful or disallowed content?
- Style / tone: Is it concise, polite, or aligned with brand voice?
Pick 3–6 dimensions max to start, otherwise reviewers get inconsistent.
2) Choose your evaluation format
The two most common formats are:
A. Scalar ratings
Reviewers score each response on a scale, for example 1–5.
- Pros: Simple, easy to aggregate
- Cons: People use scales differently, more subjective
Typical dimensions:
- Relevance: 1–5
- Correctness: 1–5
- Clarity: 1–5
- Safety: pass/fail
B. Pairwise comparison
Show two model outputs for the same prompt and ask which is better.
- Pros: Often more reliable than absolute ratings
- Cons: Requires more comparisons to cover many models
Best for:
- Comparing model versions
- A/B testing prompts or decoding settings
If you’re early in the process, pairwise comparison is often the easiest to trust.
3) Create a rubric
Write explicit instructions for reviewers. A good rubric includes:
- What each score means
- Examples of strong vs weak responses
- What to do when uncertain
- How to handle missing info, refusals, or ambiguity
Example for correctness:
- 5: Fully correct, no meaningful errors
- 4: Mostly correct, minor issue not affecting use
- 3: Some errors, partially useful
- 2: Major errors, mostly misleading
- 1: Incorrect or nonsensical
For safety, use clear pass/fail rules:
- Pass: no disallowed content
- Fail: contains harmful instructions, privacy violations, harassment, etc.
4) Build a representative test set
Your prompts should reflect real use cases.
Include:
- Common queries
- Hard edge cases
- Ambiguous prompts
- Long-context prompts
- Safety-sensitive prompts
- Domain-specific cases if applicable
Keep a fixed “golden set” so you can compare models over time.
5) Use multiple reviewers
Human judgments vary, so don’t rely on one person.
Recommended setup:
- 2–3 reviewers per sample
- Randomize order of outputs
- Hide model identity to reduce bias
If reviewer agreement is low, improve the rubric before scaling up.
6) Decide how to measure agreement
Track whether reviewers are consistent:
- Percent agreement for pairwise tasks
- Cohen’s kappa / Fleiss’ kappa for categorical labels
- Spearman correlation for ranked or numeric scores
Low agreement usually means the rubric is too vague or the task is inherently subjective.
7) Design the review interface
Make it easy for humans to judge consistently:
- Show the prompt and response(s)
- Allow side-by-side comparison if using pairwise eval
- Hide model names
- Provide rating buttons and rubric text
- Add an optional comment box for issues
If responses are long, consider highlighting key sections or allowing scrolling.
8) Include calibration
Before official review, run a small training round:
- Have reviewers score the same examples
- Compare results
- Discuss disagreements
- Revise rubric
This greatly improves consistency.
9) Aggregate results carefully
For scalar ratings:
- Average scores by dimension
- Report medians and distributions, not just means
- Break down by prompt category
For pairwise:
- Compute win rate
- Add confidence intervals if possible
- Compare by segment
Avoid overinterpreting small differences unless you have enough samples.
10) Add quality controls
To keep the evaluation trustworthy:
- Insert a few attention checks
- Duplicate some items to detect inconsistency
- Monitor reviewer time and anomalous patterns
- Review a sample of comments manually
11) Common pitfalls
- Undefined rubric: reviewers guess differently
- Too many dimensions: leads to noisy judgments
- Non-representative prompts: results don’t reflect real usage
- Reviewer bias: model name or formatting influences scores
- No calibration: inconsistent scoring across reviewers
- Ignoring uncertainty: borderline cases get forced into bad labels
12) A practical starting setup
If you want a simple, effective first version:
- 100–300 prompts from real traffic or test cases
- 2 reviewers per prompt
- Pairwise comparison for model A vs model B
- One safety pass/fail check
- One overall preference question
- Short rubric with examples
- Hidden model identities
13) Example evaluation questions
For each prompt, ask:
- Which response is better overall?
- Which is more correct?
- Which is more helpful?
- Did either response violate safety rules? (yes/no)
- Optional: Why?
14) Tools you can use
Depending on your stack:
- Spreadsheet + forms for small studies
- Label Studio
- Prodigy
- Custom internal annotation tools
- Weave / LangSmith / OpenAI Evals-style workflows for structured eval pipelines
If you want, I can also help you design:
- a human eval rubric
- a pairwise review template
- a JSON schema / annotation form
- or a full evaluation plan for your specific LLM use case.