Evaluating Retrieval-Augmented Generation (RAG) systems in specialized domains such as law or medicine presents significant challenges due to the requirement for high factual precision. Traditional metrics often fail to capture semantic accuracy, and manual dataset creation is prohibitively expensive. This paper introduces RAGEval, a framework designed to automate the generation of high-quality, scenario-specific evaluation datasets. By shifting from lexical overlap to a "keypoint-based" factual assessment, RAGEval provides a scalable and rigorous benchmarking solution.
Methodology: The Schema-to-Keypoint Pipeline
RAGEval utilizes a structured pipeline to generate evaluation data, represented by the sequence $S \to C \to D \to (Q, A) \to R \to \text{Keypoints}$.
- Schema Summary ($S$): The process begins by defining a structural "skeleton" for a specific domain. For instance, a legal schema might include fields for "defendant," "offense," and "sentencing guidelines."
- Configuration and Document Generation ($C, D$): Large Language Models (LLMs) populate these schemas to create diverse and internally consistent "seed" documents. This ensures the evaluation data is novel and avoids data leakage from training sets.
- QRA Generation: The framework generates Question-Reference-Answer triples, ensuring that every answer is strictly grounded in the generated documents.
- Keypoint Extraction: To move beyond simple word-matching, RAGEval distills ground-truth answers into 3–5 atomic factual "keypoints."
Evaluation Metrics
The framework introduces three novel metrics grounded in these atomic keypoints:
- Completeness: Measures the percentage of ground-truth keypoints covered by the model's response.
- Hallucination: Identifies if the model's answer contradicts any established keypoints.
- Irrelevance: Quantifies the number of ground-truth points the model failed to address.
Validation against human experts showed a Spearman correlation coefficient of approximately 0.85, indicating that LLM-based scoring using these metrics is a reliable alternative to manual annotation.
The DragonBall Dataset
To demonstrate the framework, the authors introduced DragonBall (Diverse RAG Omni-Benchmark for All scenarios). This dataset comprises 6,711 questions across Finance, Law, and Medical domains, provided in both Chinese and English. This massive scale allows for robust testing across varied linguistic and professional contexts.
Experimental Results
Benchmarking various models using the RAGEval framework revealed several key insights regarding the current state of RAG performance:
- Model Performance: GPT-4o demonstrated superior performance, achieving the highest Completeness scores (79.13% in Chinese) and the lowest Hallucination rates across both languages.
- Efficiency of Smaller Models: Notably, MiniCPM3-4B performed exceptionally well for its size, often outperforming larger models in factual accuracy metrics.
- Lexical vs. Semantic Accuracy: The results confirmed a "semantic gap," where models with high ROUGE-L scores did not necessarily exhibit high factual completeness, underscoring the need for keypoint-based evaluation over simple word overlap.
Conclusion
RAGEval addresses the critical need for specialized RAG evaluation by automating dataset generation and introducing fact-based metrics. While the framework's quality depends on the "teacher" LLM used for generation, it significantly reduces the cost and static nature of traditional benchmarks, paving the way for more robust AI systems in high-stakes domains.
Summary updated