Papers › RAGGED: Towards Informed Design of Retrieval Augmented Generation Systems

RAGGED: Towards Informed Design of Retrieval Augmented Generation Systems

14 Mar 2024arXiv:2403.09040archive 2025-07-28

Jennifer Hsia, Afreen Shaikh, Zhiruo Wang, Graham Neubig

Retrieval-augmented generation (RAG) can significantly improve the performance of language models (LMs) by providing additional context for tasks such as document-based question answering (DBQA). However, the effectiveness of RAG is highly dependent on its configuration. To systematically find the optimal configuration, we introduce RAGGED, a framework for analyzing RAG configurations across various DBQA tasks. Using the framework, we discover distinct LM behaviors in response to varying context quantities, context qualities, and retrievers. For instance, while some models are robust to noisy contexts, monotonically performing better with more contexts, others are more noise-sensitive and can effectively use only a few contexts before declining in performance. This framework also provides a deeper analysis of these differences by evaluating the LMs' sensitivity to signal and noise under specific context quality conditions. Using RAGGED, researchers and practitioners can derive actionable insights about how to optimally configure their RAG systems for their specific question-answering tasks.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2403.09040")

Code

Syntology Ran 13 of 14 code samples harvested from 1 repository linked to this paper; 1 has no recorded run. Of those that ran: 1 ran · our draft was wrong; 12 ran with no contract checked.

By repository: official repository: 14 samples from 1 repository, 13 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

neulab/ragged officialmentioned in papermentioned on GitHubMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

14 samples harvested; 13 ran; 0 honoured the contract we drafted; 1 has no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · our draft was wrong
12ran
1unverified

Licence: 0 of the 14 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from neulab/ragged. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

convert_reader_results_to_zeno neulab/ragged/analysis_framework/compile_results.py official repository ran MIT (permissive) · f220897243bce737 · report
count_jsonl neulab/ragged/retriever/evaluate_retriever.py official repository ran MIT (permissive) · ca677f8c2b43120d · report
create_prompt neulab/ragged/reader/utils.py official repository ran fingerprinted MIT (permissive) · 289d7efd299b90d4 · report
get_precision neulab/ragged/analysis_framework/zeno_upload.py official repository ran MIT (permissive) · 1b1fbbd9dac2072c · report
get_precision neulab/ragged/retriever/evaluate_retriever.py official repository ran MIT (permissive) · d05429bcacc8eccc · report
get_recall neulab/ragged/analysis_framework/zeno_upload.py official repository ran MIT (permissive) · 19d64b24f5ce24e3 · report
get_recall neulab/ragged/retriever/evaluate_retriever.py official repository ran MIT (permissive) · a072fc24dd6a64f4 · report
is_potential_number neulab/ragged/reader/evaluate_top_k.py official repository ran MIT (permissive) · 507cd94cf077b40b · report
load_json neulab/ragged/file_utils.py official repository ran MIT (permissive) · 130b876997375207 · report
load_jsonl neulab/ragged/file_utils.py official repository ran MIT (permissive) · ca1dbea1a9af7003 · report
normalize_answer neulab/ragged/reader/evaluate_top_k.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · e7e75981cb464788 · report
post_process_answers neulab/ragged/reader/utils.py official repository ran MIT (permissive) · d0896f977a782cd6 · report
truncate_prompt neulab/ragged/reader/utils.py official repository ran MIT (permissive) · f6e6c7c81db7d3e1 · report
get_tokenizer neulab/ragged/utils.py official repository unverified MIT (permissive) · 6e7ed506217fac36 · report

Tasks

DecoderQuestion AnsweringRAGRetrievalRetrieval-augmented Generation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AdamAttentionAttention DropoutBARTBERTBPEDense ConnectionsDropoutLayer NormalizationLinear LayerLinear Warmup With Linear DecayMulti-Head AttentionRAGResidual ConnectionSoftmaxWeight DecayWordPiece

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections