Evaluation interview question · Most asked
How do you build an evaluation set for an LLM feature?
Summary
Start from real traffic (logs, tickets), remove personal data, classify cases by type (intent, language, difficulty, risk), sample a minimum per type (stratified), write explicit success criteria per case (must include, must not include, expected tool call or refusal), add edge and adversarial cases, version it, and add every production failure.
Longer Answer
Hand-written prompts reflect imagination, not usage; random samples miss rare but important types. 50 to 100 well-labelled cases beat thousands of unlabelled ones.
Key Points
- Real traffic, anonymised.
- Stratified by type.
- Explicit success criteria.
- Grows with production failures.
Deep dive: From Vibes to an Eval Set
More most-asked Evaluation questions
- Evaluation leaf: What is a golden dataset?
- How do you decide whether a prompt change is an improvement?
- What guardrails would you put around an LLM feature?
- When do you use code graders, model graders or human graders?
- Evaluation leaf: What is faithfulness/groundedness?
- Evaluation leaf: Pros/cons of LLM-as-judge?
- Evaluation leaf: Offline vs online evaluation tradeoffs?