Skip to content

AutoRAGBench: Can LLM Agents Build a RAG System From Scratch?

THE ARGUMENT

On nine text QA tasks the best agent averages 56.1, above a reference retriever at 46.4 and a 44.43 ceiling stitched from each task's best method, but a bigger development gain does not mean a better hidden-test score, so sign-off needs both views.

On this page

6 hours, 1 GPU, and a working document QA system at the end, but reading only its final score is how teams get fooled. Suppose you run a four-person team behind an internal help desk: someone asks what the hotel cap is on a business trip, and the system must find the policy clause before it answers. Your boss asks whether a program that writes code could build this and save two engineers. You give it six hours, and it returns a codebase scoring 8 points above your hand-built one on questions it never saw. You are about to sign, and the rounds it ran, the questions each round used, and whether the final version fell from its peak all stay invisible. A paper posted on 19 November 2026 is built for that gap [1].

A Final Score Cannot Tell Luck From Craft

Name the system first. It pulls passages out of a document collection, hands them to a language model with the question, and asks for an answer grounded in those passages. The trade calls this retrieval-augmented generation, RAG. Retrieval can run on vectors, keywords, a reranker or a rewritten query, and each choice behaves differently across corpora.

Most teams accept such a system on one number: accuracy on a test set. That number matters, yet it merges two questions, whether the system is good and whether the program that built it can iterate. A program may have stumbled onto a workable configuration, or read its own errors and fixed the right thing. One number cannot separate those, so this paper scores the system and the development that produced it [1].

Earlier work leaves a gap: component studies say how one retrieval method does on one dataset, not whether a program can pick that, and automated tuning never leaves its predefined space. This benchmark removes the fence: no starter code, no prescribed pipeline, just corpus, questions and six hours [1].

Locking the Exam Room: What a Fair From-Scratch Test Needs

Nine tasks across five categories. Open-domain QA is NQ at 21,015,324 records. Document multi-hop covers HotpotQA at 5,233,235, MuSiQue at 117,534 and MH-RAG at 609. Domain QA covers PubMedQA at 273,518 and QASPER at 1,585, fact checking is FEVER at 5,396,106, and knowledge-graph QA covers WebQSP at 665,334 and CWQ at 1,310,816. Each task keeps up to 10,000 training and 1,000 test examples, with 500 each for MH-RAG and PubMedQA, scored by its own metric [1].

Each build gets a clean Debian 12 container with one H800, 12 CPU cores, 240GB of host memory and a 200GB workspace for six hours. A program may write code, install libraries and fetch auxiliary models, but not outside corpora, and it cannot reach the test set, which sits outside the container. Early finishers are told to keep working, and every program sees the same prompt [1].

Scoring is isolated too: the submission is frozen, no further training is allowed, and each question is answered independently. Five held-out models read the same evidence: Gemma-4-E4B, Gemma-3-4B, Phi-4-mini, SmolLM3-3B and Llama-3.2-3B, scores averaged. Development uses Qwen3.5-4B instead, capped at four calls, 32,000 tokens and 60 seconds per question [1].

One more gate. Every action is recorded, DeepSeek audits the trajectory for outside corpora or downloaded test sets, and people review what it flags. A confirmed violation earns one rerun; fail again and the build scores as a plain keyword baseline [1].

The Nine-Task Scoreboard: Who Wins, and on Which Kind of Task

Nine configurations produced 81 systems. The table keeps eight rows: the nine-task average, then NQ for open domain, HotpotQA for multi-hop reading and WebQSP for knowledge graphs. All scores average five answering models on a 0 to 100 scale.

MethodNine-task averageNQHotpotQAWebQSP
GPT-6.1 Sol + Codex CLI56.0838.6065.4778.92
GPT-6 Sol + Codex CLI54.1038.8657.6874.78
GPT-5.6 Sol + Codex CLI51.2138.6252.4175.86
DeepSeek V4.1 Flash49.4138.9051.6570.42
Reference RAG46.4237.7452.4657.30
Human-SOTA envelope44.4334.1841.0554.18
Naive BM2536.6624.8635.7930.64
Closed-book25.3013.3621.9824.82

Start at the ends: closed-book answering scores 25.3, keyword retrieval 36.7, and the reference 46.4, which mixes BM25 with dense vectors, reranks, and asks a model for one follow-up query on multi-hop tasks. All nine configurations beat keyword retrieval and seven beat the reference. The best, GPT-6.1 Sol, reaches 56.08, 9.7 points above the reference and 11.7 above the human envelope, first on seven of nine tasks.

The authors note the gain from keyword retrieval to their reference is about the same size, so in six hours a program rebuilt what that step took a team.

All nine beat the reference on both knowledge-graph tasks, by 14.1 points on average on WebQSP, and seven do on CWQ with a maximum gain of 27.3. All nine win on both domain tasks, by 6.2 on PubMedQA and 2.7 on QASPER. Multi-hop differs: the best gains 13.0 on HotpotQA while the mean gain is 0.6, and only three of nine beat the reference. On NQ and FEVER the largest gain is 1.5.

The spread between configurations depends on the task too: 36.3 points on CWQ, 18.4 on HotpotQA, 17.8 on WebQSP, but only about 3.0 on QASPER and FEVER. Picking an agent matters hugely on knowledge graphs and barely at all on paper QA. On MH-RAG, four agent systems fall below the keyword baseline.

Up 10 Points on Development, Tenth on the Test

Two numbers get tracked: the change from the first observed development score to the last, and the drop from the best to the last. Of 77 builds with at least two comparable versions, 72 (93.5%) beat their first version by a point at some stage, the median first-to-last gain is 5.5, 46 end at their peak and 20 end a point or more below it.

Then the comparison worth keeping: GPT-5.6 Luna gains 10.0 points on its own development questions and finishes tenth; GPT-6.1 Sol gains 4.8 and finishes first. Luna ran 85% of its checks on the full development file against 29% or less elsewhere, and on NQ around hour three it scored 53.0 on 100 repeatedly tested questions and 35.0 on 100 unchecked ones.

The paper does not call this cheating. It adds a control: group the same questions by whether the original agent had tested them, then let other configurations answer, and those others also score 3.3 points higher on the original agent's tested questions. Some of the gap is question difficulty, which turns an accusation into a partial explanation.

Time allocation is counterintuitive as well: testing and analysis take 57% to 87% of build time and 55% to 70% of output tokens, while coding takes under 10% of the time. GPT-6.1 Sol launches a median of 148 evaluation jobs and waits 0.27 hours; GPT-5.6 Sol waits 2.66 and Luna 3.27.

ConfigurationAPI cost, nine tasks (USD)Retrieval per question (s)Nine-task average
GPT-6.1 Solabout 1671.2356.08
GPT-6 Solabout 4500.7954.10
GPT-5.6 Solabout 4870.7851.21
GLM-5.3about 1071.7650.50
DeepSeek V4.1 Flashabout 9.52.0149.41
GPT-5.6 Lunaabout 212.9 times the reference45.61
Reference RAGnot reported0.3546.42
Naive BM25not reported0.1036.66

Every agent-built system retrieves more slowly than the reference, at 0.50 to 2.01 seconds per question against 0.35, or 1.4 to 5.8 times as long, while keyword retrieval takes 0.10. The extra time buys query rewriting, multi-step retrieval and reranking. GLM-5.3-Flash takes 1.07 seconds, while both GPT-5.6 Sol and GPT-6 Sol are quicker and score higher.

Before accepting a system from a build agent, work through these.

  • Is the test set out of reach: this paper scores only after freezing, so nothing else matters if that fails.
  • What was the development gain, when was the peak, and how far did the last version fall: 20 builds fell a point or more.
  • Did it keep testing the same questions: Luna ran 85% of its checks on the full file against 29% or less elsewhere.
  • Does the ranking survive another answering model: five left the top four in order, with the lead moving between 1.5 and 5.9 points.
  • Is latency part of the bill: 0.50 to 2.01 seconds against 0.35 is real money and real waiting.

Where the Benchmark Stops, and My Read on the Paper

Four limits. All nine tasks are English text QA, so multimodal, Chinese and cross-lingual retrieval stay untested. The result is tied to six hours and one H800. The human comparison is uneven, since those methods got twenty-four hours against six, and the 44.43 is a per-task envelope rather than a deployable system.

The paper raises one caveat itself: the strategies were read off code, configuration, prompts and agent reports, and a second coder has not verified the labels. Whether a strategy causes a gain needs ablations the paper does not run, so all 18 graph systems traverse the graph is a count, not a cause.

Closing line: the system can build itself, but whether to accept it cannot rest on the score it reports. Keep the test set outside the room and the trajectory inside it, and luck separates from craft.

References

  1. AutoRAGBench: A Benchmark for LLM Agents Automating RAG System Development

Sign in to Padda

A code in your inbox. No password to remember.

Connecting to sign-in…