Skip to content

Testing Retrieval-Augmented Generation Systems with Chunk Coverage

Jul 2026 · arXiv.org · Vol abs/2607.18155 · 1 citation · 26 references
Computer Science

TL;DR

Chunk Coverage (CC), an oracle-independent test adequacy criterion for testing the retrieval component of RAG systems, is introduced and results show that CC captures retrieval diversity relevant to effective testing without requiring test oracles.

Abstract

Retrieval-Augmented Generation (RAG)-based systems\footnote{For brevity, RAG-based systems are referred to as RAG systems throughout this paper.} are increasingly deployed in high-stakes settings where correct behaviour depends not only on the language model but also on the retrieval component that selects external documents at inference time. While existing RAG evaluation metrics assess retrieval and generation quality on a per-query basis, typically relying on query-level test oracles such as reference answers or relevance annotations, they provide limited insight into whether a test suite adequately exercises the retrieval behaviour of the system as a whole. In this paper, we introduce Chunk Coverage (CC), an oracle-independent test adequacy criterion for testing the retrieval component of RAG systems. CC measures the fraction of corpus chunks that are retrieved at least once across a test suite, providing a structural view of which parts of the retrieval space have been exercised. We further show how CC can be used to guide test selection and generation by prioritising queries that expand coverage of previously unexercised retrieval regions. We evaluate CC on clinical and financial RAG system scenarios. CC-guided testing reaches 50% of attainable coverage 1.7x faster than random selection and 4.2x faster than redundancy-biased strategies. Moreover, CC improves fault detection effectiveness (APFD) by 10% to 25% over random, indicating earlier discovery of distinct retrieval faults. These results show that CC captures retrieval diversity relevant to effective testing without requiring test oracles.

View source

Similar papers

Book Open access Jul 2026

Query-Aware Context Selection for Retrieval-Augmented Generation

This work conducts an empirical study of how irrelevant retrieved passages affect downstream generation, and proposes a lightweight, context-size classification module that dynamically predicts how much context is required based on query-specific needs.

Maya Iratni, M. Boughanem, T. Dkaki · 0 citations
Preprint Jul 2026

RAG-TESTER: Automated End-to-End Testing of Retrieval-Augmented Large Language Models

RagTester is presented, an automated end-to-end testing approach for RAG systems that can effectively expose failures caused by the interaction between retrieval and generation components and support the assessment of RAG configurations before deployment.

Ange Maiztegi, J. Ayerdi, Miren Illarramendi et al. · 0 citations
Conference Jul 2026

A Reproducible and Budget-Aware Framework for Evaluating Local Retrieval-Augmented Generation (RAG) Robustness to Perturbations

The idea of context is no longer considered secondary in the construction of language-model systems. With the use of local Retrieval-Augmented Generation, even a tiny modification of the prompt or the context might produce another set of retrievals, citations, and ultimately different answers; however, in practice, tes...

Rahul Reddy Gangapuram, William B. Andreopoulos · 0 citations
Open access Jul 2026

Robust and explainable Retrieval-Augmented Generation under retrieval noise

Testing how retrieval noise affects RAG and whether reranking, citation-aware generation, and lightweight verification can improve system behaviour suggests that robust and explainable RAG is a multi-objective problem.

Shirui Chen · 0 citations
#small language model Open access Aug 2026

Retrieval Granularity as Evidence Design in Small-Model RAG Question Answering: A Diagnostic HotpotQA Study

Results align with a diagnostic perspective on chunking: using evidence at a task-appropriate level of granularity can improve grounding, auditability, and answer quality, but the observed patterns should be interpreted within the HotpotQA distractor setting, fixed generator, and tested context budgets.

Wei-Mao Ke, Li-Xia Yang, Meng-Yang Xu · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.