Artificial intelligence · University
Evaluating generated answers and retrieval systems
Use representative tasks with clear expected behaviour and deliberately include failure cases. Keep an evaluation set separate from prompt tuning.
Prerequisites
Metrics, annotation and reliable source checking.
Study notes
Test set
Use representative tasks with clear expected behaviour and deliberately include failure cases. Keep an evaluation set separate from prompt tuning.
Rubric
Separate factual support, completeness, instruction following and usability. A single overall score can hide distinct failure modes.
Judging
Human and model-assisted judging can both be inconsistent. Use explicit criteria, calibration examples and agreement checks; do not assume an AI judge is an oracle.
Regression
Retest after changing prompts, models, data or retrieval settings. Keep versioned results so an apparent improvement can be checked.
Worked examples
Which is a useful dimension for an evidence-grounded answer rubric?
Support measures grounding rather than appearance alone.
Whether claims are supported by the supplied evidence
A toy test has 40 tasks and 6 fail a stated requirement. Find pass rate.
34/40=0.85.
0.85
Check your understanding
Why keep an evaluation set separate from prompt tuning?
- To eliminate all future errors
- To make the set inaccessible to reviewers
- To reduce selection overfitting
- To remove all hard tasks
Two judges agree on 18 of 20 toy binary ratings. Find raw agreement.
Why might a model judge prefer a verbose answer even when it is less accurate?
Describe a regression test for a changed RAG prompt.
Answers and marking guidance
Answers and marking notes
- To reduce selection overfitting
Repeated tuning to the same tests can overstate generalization.
- 0.9
18/20=0.9; this is raw agreement, not a chance-corrected statistic.
- Its learned preferences or prompt can overweight style or detail. Explicit evidence checks and calibrated rubrics help expose such bias.
Credit possible judge bias and mitigation.
- Reuse a held-out set with known source support and missing-evidence cases, compare groundedness and task success, and inspect any new failures with versions recorded.
Credit stable comparison, edge cases and versioning.
Further reading and review references
These are reference links, not copied exercises, institutional endorsement or proof of independent review.
AI-assisted preview; independent educational review required. Level labels describe prerequisites, not accreditation or official curriculum alignment.