RAGalyst自动评估领域专用RAG系统,结果与人类判断高度一致。
RAGalyst: Automated Human-Aligned Agentic Evaluation for Domain-Specific RAG
- 构建智能代理流程生成高质量合成问答数据
- 优化LLM评分指标,与人工标注相关性超0.85
- 适用于军事、网络安全等高风险领域的RAG系统评测
检索增强生成(RAG)是使大语言模型基于事实证据推理的关键技术,但在专业、安全关键领域评估RAG系统仍面临重大挑战。现有框架多依赖启发式指标,无法捕捉领域特性;而基于LLM作为裁判的方法又缺乏与人类判断的验证对齐。本文提出RAGalyst,一种自动化、与人类判断对齐的智能体评估框架,用于严格评测领域专用RAG系统。该框架通过智能体流水线从原始文档生成高质量合成问答数据,并引入智能体过滤步骤确保数据真实性。同时,通过提示优化改进两个核心指标——答案正确性与可回答性,使其与人工标注的相关性达到0.85以上。在军事行动、网络安全和桥梁工程三个不同领域评估多种RAG组件后发现,性能高度依赖具体场景,无单一嵌入模型、大模型或超参数配置能通用最优。此外,分析了导致答案正确性低的主要原因。这些结果凸显了系统化评估框架的必要性,RAGalyst使从业者能揭示领域特异性权衡,做出更明智的设计决策。代码已开源于GitHub。
原文摘要 · Abstract (English)
Retrieval-Augmented Generation (RAG) is a critical technique for grounding Large Language Models (LLMs) in factual evidence, yet evaluating RAG systems in specialized, safety-critical domains remains a significant challenge. Existing evaluation frameworks often rely on heuristic-based metrics that fail to capture domain-specific nuances and other works utilize LLM-as-a-Judge approaches that lack validated alignment with human judgment. This paper introduces RAGalyst, an automated, human-aligned agentic framework designed for the rigorous evaluation of domain-specific RAG systems. RAGalyst features an agentic pipeline that generates high-quality, synthetic question-answering (QA) datasets from source documents, incorporating an agentic filtering step to ensure data fidelity. The framework refines two key LLM-as-a-Judge metrics-Answer Correctness and Answerability-using prompt optimization to achieve a strong correlation with human annotations. Applying this framework to evaluate various RAG components across three distinct domains (military operations, cybersecurity, and bridge engineering), we find that performance is highly context-dependent. No single embedding model, LLM, or hyperparameter configuration proves universally optimal. Additionally, we provide an analysis on the most common low Answer Correctness reasons in RAG. These findings highlight the necessity of a systematic evaluation framework like RAGalyst, which empowers practitioners to uncover domain-specific trade-offs and make informed design choices for building reliable and effective RAG systems. RAGalyst is available on our Github.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。