自动化检测RAG应用缺陷,提升评估效率与准确性。
RAGProbe: An Automated Approach for Evaluating RAG Applications
- 设计可扩展的问答对模板库,生成多样化测试用例触发RAG故障
- 多文档跨段落提问失败率达91%,单文档复合问题达78%
- 支持持续集成,适合开发团队用于RAG系统质量监控
检索增强生成(RAG)在构建生成式AI应用中日益普及,但其评估仍依赖人工试错。现有方法难以应对上下文误解、格式错误、信息不准确或内容缺失等问题。本文提出一种自动化评估技术,通过生成多样化的问答对来触发RAG管道中的失败。我们在3个数据集上验证了5个开源RAG管道,结果表明:当问题跨越多个文档时,失败率高达91%;单文档内复合问题失败率为78%;学术领域数据集失败率60%,开放域数据集分别为53%和62%。该方法平均比现有最先进方法提高51%的故障检出率。所提方案可无缝集成至现有CI/CD流程,实现RAG管道的持续健康监测,显著提升系统质量。
原文摘要 · Abstract (English)
Retrieval Augmented Generation (RAG) is increasingly being used when building Generative AI applications. Evaluating these applications and RAG pipelines is mostly done manually, via a trial and error process. Automating evaluation of RAG pipelines requires overcoming challenges such as context misunderstanding, wrong format, incorrect specificity, and missing content. Prior works therefore focused on improving evaluation metrics as well as enhancing components within the pipeline using available question and answer datasets. However, they have not focused on 1) providing a schema for capturing different types of question-answer pairs or 2) creating a set of templates for generating question-answer pairs that can support automation of RAG pipeline evaluation. In this paper, we present a technique for generating variations in question-answer pairs to trigger failures in RAG pipelines. We validate 5 open-source RAG pipelines using 3 datasets. Our approach revealed the highest failure rates when prompts combine multiple questions: 91% for questions when spanning multiple documents and 78% for questions from a single document; indicating a need for developers to prioritise handling these combined questions. 60% failure rate was observed in academic domain dataset and 53% and 62% failure rates were observed in open-domain datasets. Our automated approach outperforms the existing state-of-the-art methods, by increasing the failure rate by 51% on average per dataset. Our work presents an automated approach for continuously monitoring the health of RAG pipelines, which can be integrated into existing CI/CD pipelines, allowing for improved quality.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。