A Benchmark for LLM Agents Automating RAG System Development
For each task, agents build RAG systems from scratch without starter code or prescribed strategies, under a six-hour budget on a single H800 GPU. They analyze task data, implement RAG pipelines, and iteratively refine their designs based on experimental feedback. For each test question, five answering models independently generate answers from the same evidence retrieved by the system.
Scores are primary metrics ×100 averaged over five held-out answering models; Avg is the mean over the nine tasks. One six-hour build per agent and task. Click any bar to see that system task by task.
Full results under the selected answering model. Bold marks the best agent on each task; Avg is the equal-weight mean over the nine tasks. Human-SOTA (composite) takes, on each task, the highest score achieved by any of the adapted human-designed methods; it has only scores averaged over the five answering models, so it is hidden when a single answering model is selected.
For each test question, five answering models independently generate answers from the same evidence retrieved by the system. The five held-out answering models are used only for final evaluation; development checks use Qwen3.5-4B.
self_check toolPOST /retrieve per hidden questionInteractive versions of the paper's analyses: hover for values, click legends to filter.
GPT-6.1 Sol ranks first under all five answering models, and the top four configurations keep identical ranks. The lines stay nearly parallel: the gap between the best and worst configurations remains 10.2 to 10.7 points. The lead over the reference system changes more, with a mean of 1.5 to 5.9 points and six to nine configurations above it.
Each line: a configuration's nine-task average under one answering model minus Reference RAG's average under the same model. Answering models are ordered by Reference RAG score. Click a legend entry to highlight it.
Every agent-built system takes longer on average to retrieve evidence than Reference RAG. Mean retrieval latency ranges from 0.50 to 2.01 seconds per question. This is 1.4 to 5.8 times the reference system's mean of 0.35 seconds. Naive BM25 RAG, Reference RAG, and Gemini 3.8 Flash with OpenCode lie on the Pareto frontier. The three Sol configurations with Codex CLI also lie on it.
Mean retrieval latency per hidden test question, including generator calls, averaged over questions and then over the nine tasks. Dashed: Pareto frontier; shaded: dominated region; hollow marks are dominated. Closed-book (25.3) does not retrieve.
On WebQSP, all nine configurations outperform the reference system, by 14.1 points on average. Seven also outperform it on CWQ, with a maximum gain of 27.3 points. All configurations improve on the reference system on the two domain-specific tasks, PubMedQA and QASPER. On HotpotQA, the best configuration gains 13.0 points, but only three outperform the reference system. On NQ and FEVER, the largest gain is only 1.5 points on each task.
Each dot is one agent's score minus Reference RAG on that task (mean of five answering models). Grey diamond: Naive BM25 RAG; hollow square: Human-SOTA (composite).
Most systems combine classic indexes with a reranker: 63 use a sparse index, 58 use dense vectors, and 58 use a reranker, of which 27 are fine-tuned. LLM use at indexing time is rare: only three systems index LLM-generated content, and only one uses a hypothetical document. All 18 knowledge-graph systems traverse the graph and return selected lines or paths, and 12 of them use no reranker; all nine QASPER systems rank within the identified paper; and eight FEVER systems use no dense vectors.
Each cell counts the nine agent configurations whose final system for that task uses the strategy; Share is over all 81 systems. "Single" groups are mutually exclusive; "multi" groups can combine. Retrieval flow excludes the 18 graph-traversal systems.
Across the nine configurations, 77 builds had at least two observed versions. Their median net gain in development score from the first to the last observed version was 5.5 points. The last observed version matched the observed peak in 46 builds and fell at least one point below it in 20. In all, 72 of the 77 builds (93.5%) improved on their first score by at least one point at some stage, and the median time to the first peak was 4.0 hours into the six-hour budget.
Each line is one build, scored with Qwen3.5-4B on a fixed set of its own development questions; a point appears when the evidence for those questions changes. Y: gain since the build's first version (separate scale per task). Star: earliest maximum. Click a legend entry to add or remove a configuration.
Testing and analysis took most of the development budget in these builds. Averaged over nine tasks, these activities accounted for 57–87% of build time and 55–70% of output tokens. In thousands of tokens, median output per round was 11.0 for GPT-6.1 Sol, 5.8 for GPT-6 Sol, 3.9 for GPT-5.6 Sol, and 2.5 for GPT-5.6 Luna. This order matches the mean score ranking.
Left: share of build time per activity in each 15-minute interval, equal weight per build. Right: output tokens per hour (thousands) on a common scale. Both average the nine tasks and omit the final 15 minutes. A round is an edit or rebuild of the system followed by a launched evaluation.
GPT-6.1 Sol gains 7.4 to 26.4 points, with a mean of 16.6. DeepSeek gains 3.9 to 12.1 points, with a mean of 8.9. GPT-6.1 Sol scores higher on all seven tasks.
Hollow circle: the human-designed starting system run unchanged. Bars run to the hidden-test score after six hours of agent development; labels give the gains. Thin tick: Reference RAG.
The agent outperforms every delivered framework system. On the six tasks both frameworks complete, AutoRAG averages 44.5 and FlashRAG averages 43.6. The agent averages 57.0, and Reference RAG averages 45.0.
Hidden-test scores of the configurations selected by Agentic AutoRAG (GPT-6.1 Sol as optimizer) and FlashRAG under a six-hour budget, against GPT-6.1 Sol's build from scratch. FlashRAG did not finish indexing HotpotQA within six hours.
Timestamped traces of GPT-6.1 Sol on all nine tasks: commands, edits, its own notes and every self_check score along the way.
@article{zhang2026autoragbench,
title={AutoRAGBench: A Benchmark for LLM Agents Automating RAG System Development},
author={Zhang, Hang and Pan, Yuzhi and Zhong, Ziyao and Wang, Chaokun and Cao, Shuo and Huang, Zeyu and Xue, Yue and Niu, Fang and Xie, Bofan and Ge, Guanchen and others},
journal={arXiv preprint arXiv:2611.25582},
year={2026}
}