
Evaluating Retrieval-Augmented Generation
A retrieval-augmented system can fail when it finds the wrong evidence or when it misuses good evidence. Evaluate retrieval, answer support and usefulness separately, with human checks on automated judgments.
출처
전체 수업 요약
Retrieval-augmented generation, often shortened to RAG, gives a language model selected documents to help answer a question. Evaluating the complete answer is useful, but it does not explain where a failure occurred. The retriever may miss the relevant passage, return an outdated document or supply correct evidence that the generator then misinterprets. A useful evaluation separates these stages while still checking the experience of the person asking the question.
The RAGAs research framework distinguishes qualities such as context relevance, answer relevance and faithfulness to retrieved material. ARES evaluates related dimensions using trained language-model judges and human-annotated examples. These approaches make large-scale comparison more practical, but an automated score remains a measurement produced under particular assumptions. Agreement with a source is also different from truth: an answer can faithfully repeat an obsolete or incorrect document.
Start by defining the questions the system is supposed to handle. For each test case, record an acceptable answer, the evidence needed and any reason the system should decline to answer. Include questions with similar wording but different meanings, questions requiring more than one passage and questions the collection cannot answer. Keep development examples separate from the cases used to judge a proposed release. Otherwise, repeated adjustment can turn the test into another training resource.
Consider an illustrative university help assistant built from fictional course regulations. A teacher asks whether a particular assignment permits group work. The evaluation checks whether the retrieved passage belongs to the correct course, assessment and academic year. It then checks whether the response preserves exceptions and links to the supporting passage. A fluent answer based on last year's rule would fail even if every sentence accurately reflected the retrieved document.
The team can diagnose the result in stages. If the correct passage was absent, inspect document preparation, indexing and retrieval. If the evidence was present but the answer reversed a condition, inspect generation and the response instructions. If the question was ambiguous, check whether the system requested the missing detail. Keeping these categories separate helps the team make a targeted repair rather than changing several components at once and losing track of what mattered.
Human review is especially useful for a sample of difficult cases and disagreements between evaluators. Reviewers should see the question, retrieved passages and generated answer, then apply the same written criteria. Compare judgments across languages and question types. An automatic evaluator that favors confident wording or overlooks a missing exception can make a weak release look strong. Recording its failures is part of evaluating the evaluation method itself.
Finally, report both quality and practical constraints. Response time, source freshness, correction handling and accessibility affect whether the system is usable. Repeat the relevant checks after changing the model, index or source collection, and preserve the tested versions. Educational usefulness still requires evidence from the intended activity. A high RAG score can support a decision to pilot an assistant; it cannot establish that students learn more or that every answer is reliable.


