arXiv:2510.00001cs.LGcs.AI2025-10被引 1

量化RAG测试集语义覆盖度,提升系统评估可靠性

Methodological Framework for Quantifying Semantic Test Coverage in RAG Systems

  • 用向量嵌入与聚类分析统一文档和问题的语义空间
  • 提出三种覆盖率指标,识别知识盲区并优化测试集
  • 适合关注RAG系统测试质量与知识覆盖的开发者

可靠评估检索增强生成(RAG)系统的性能依赖于全面的测试问题集。尽管现有大量针对大模型应用的评估框架,但当前实践缺乏系统方法来确保测试集充分覆盖底层知识库,导致开发人员存在显著盲点。为此,我们提出一种新颖且可落地的方法,用于量化RAG测试问题对底层文档的语义覆盖程度。该方法利用向量嵌入与聚类算法,将文档片段与测试问题映射至统一向量空间,进而计算多种覆盖率指标:基础邻近度、内容加权覆盖率及多主题问题覆盖率。此外,通过引入异常值检测过滤无关问题,实现测试集的精炼。在两个不同应用场景中的实验表明,该框架能有效量化测试覆盖度,识别代表性不足的内容领域,并提供生成高质量新测试问题的具体建议。本工作为RAG开发者提供了构建更健壮测试集的关键工具,提升系统可靠性,并可扩展用于识别语义错位文档。

原文摘要 · Abstract (English)

Reliably determining the performance of Retrieval-Augmented Generation (RAG) systems depends on comprehensive test questions. While a proliferation of evaluation frameworks for LLM-powered applications exists, current practices lack a systematic method to ensure these test sets adequately cover the underlying knowledge base, leaving developers with significant blind spots. To address this, we present a novel, applied methodology to quantify the semantic coverage of RAG test questions against their underlying documents. Our approach leverages existing technologies, including vector embeddings and clustering algorithms, to create a practical framework for validating test comprehensiveness. Our methodology embeds document chunks and test questions into a unified vector space, enabling the calculation of multiple coverage metrics: basic proximity, content-weighted coverage, and multi-topic question coverage. Furthermore, we incorporate outlier detection to filter irrelevant questions, allowing for the refinement of test sets. Experimental evidence from two distinct use cases demonstrates that our framework effectively quantifies test coverage, identifies specific content areas with inadequate representation, and provides concrete recommendations for generating new, high-value test questions. This work provides RAG developers with essential tools to build more robust test suites, thereby improving system reliability and extending to applications such as identifying misaligned documents.

RAG测试覆盖语义分析知识库

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。