Is RAG Still Worth It? A 1‑Million‑Document Stress Test
Summary
Any team that wants AI to answer from its own files asks two things. How much search does it need? And which parts are worth paying for?
We kept one small AI model fixed and changed only the search in front of it. We used public datasets that stand in for a company’s files, from 5,000 up to 1,000,000 documents. Plain keyword search did most of the work. Most of what we added after that changed little, and some of it made things worse. At a million documents, the one step that clearly helped was letting the model read the top 20 results and keep the best 5.
Key findings
- Keyword search did most of the work: right answers rose from 142 to 217 out of 300 science claims.No search142Keyword217right answers out of 300
- Vector search, merging and rerankers on top didn’t add right answers: 215 to 217 out of 300, and rerankers cost 3 to 9 seconds a question.Keyword217+ vector217+ reranker215right answers out of 300
- A million documents made search worse: 57% of SciFact’s top 10 came from other datasets, and right answers fell from 226 to 209.5,183 docs2261M docs209SciFact right answers out of 300
- Letting the model read the top 20 and keep 5 raised fully correct, cited answers from 72 to 94 out of 139, for about $0.0005 a question.Plain72Pick 5 of 2094fully correct out of 139
- That one step tied a three-step chain, 94 against 93, at under half the cost and about a fifth of the wait.Three steps$0.0013Pick$0.0005cost per question
The model has never seen your data#
Most teams that want AI on their own documents hit the same wall. The model learned from the public internet. It has never read your research files, your support tickets or your code, so about those it can only guess.
Search gets around that. You find the right pages first, put them in front of the model, and ask it to answer from them. This is called retrieval-augmented generation, or RAG. Any search counts, including the plain keyword kind that has been around for decades.
We couldn’t test on anyone’s private files, so we used five public datasets that look like the data a business keeps. Each comes with questions and known answers, so every reply could be scored.
- A research librarypapers, reportsSciFactScience claims checked against research abstracts5,183
- Hard technical questionsinternal docs, how-tosBRIGHTStack Overflow questions that take reasoning to answer100,000
- A field’s literatureeverything published nearbyTREC-COVIDCOVID-19 research papers171,332
- Support historytickets, forum threadsCQADupStackFind the earlier thread that answers a new question457,199
- A codebasefunctions and their docsCodeSearchNetCode functions paired with their documentation266,286
1,000,000documents in one pile
Real company files are mixed like this. A search for a medical claim has to get past support threads, code, and thousands of other medical papers. That mix is what made the million-document tests hard.
The model stayed the same the whole way through: Inkling 2 Mini, temperature 0, one fixed prompt. Only the search in front of it changed.
The first test ran the model on our own computer at 4-bit. Later tests used the same model on a hosted service. That is a different build, so its scores are only compared with each other.Every layer we tested#
RAG is often sold as a vector database. A vector database is one way to search, and in our tests it mattered last. We started with the simplest search there is and added one layer at a time. Figure 2 shows what each one did.
- Keyword searchmatches the exact words142 to 217 right out of 300
- Vector searchmatches meaningRanked better (0.851 against 0.665), same 226 right
- Keyword and vector togethertwo lists, mergedBest on hard questions: 0.212 against 0.168
- Rerankera second model reorders resultsNo better answers; ranked worse on hard questions; 3 to 9 seconds slower
- Vector databasean index, not a full scanFaster past 25,000 to 50,000 documents; 4.5 ms at 1M
- Filter by sourcesearch one dataset at a timeRanking rose at 1M: 0.616 to 0.659
- Smaller chunkssplit documents into piecesMerged ranking fell: 0.212 to 0.184
- Model picks 5 of 20the model chooses what to read72 to 94 fully correct out of 139
- Saying “I don’t know”when nothing found answers itFell with each added step: 7 to 2 out of 15
Keyword search did the heavy lifting#
The first test ran on one home computer: an NVIDIA RTX 5060 graphics card with 8 GB of memory, and 32 GB of RAM. The model, the search and the documents all stayed on that machine. Nothing went over the internet and there was no bill per question. The only costs were the computer and its electricity.
We gave the model 300 science claims. For each one it had to say whether the research supports the claim, refutes it, or doesn’t say. With no search it got 142 right. With keyword search finding five abstracts to read first, it got 217. Vector search also got 217, and the bigger setups that combined both got 215.
Running locally was slow. A typical answer took 43.5 seconds, and the slowest took over a minute. At that pace, 300 answers take about three and a half hours.
Three and a half hours is an estimate: 300 times the median. The slow end is the 95th percentile, 67.9 seconds.The same model on a hosted service answered in 0.82 seconds, about 50 times faster, and all 300 answers cost $0.07. Local makes sense when the data can’t leave the building or the volume is small. Hosted makes sense when people are waiting. From here on the model ran hosted, and the search stayed on our machine.
Better ranking, same answers#
Next we swapped in a newer vector search model. It ranked the right abstracts much higher than keyword search did, 0.851 against 0.665. The answers didn’t move. Both got 226 of 300 right.
They didn’t get the same claims right, though. 209 were right both ways and 57 wrong both ways. Of the rest, 17 were right only with keywords and 17 only with vectors. Better ranking changed which claims the model got right, but not how many.
We also tried two rerankers, small models that reorder the results. Both ranked worse than vectors alone (0.822 and 0.803) and added 3 to 9 seconds to every question.
Hard questions were different. We tried 117 real Stack Overflow questions from BRIGHT, over 100,000 documents. There, using keyword and vector search together beat either one alone.
For search, then: start with keywords, add vectors when the questions get hard, and leave out the reranker.
Growing the pile to a million documents#
Then we made the pile bigger, one dataset at a time, and timed every lookup.
When a vector database pays off
| Documents | Keyword | Full scan | Qdrant |
|---|---|---|---|
| 10,000 | 0.69 ms | 0.68 ms | 2.00 ms |
| 25,000 | 1.50 | 1.98 | 2.10 |
| 50,000 | 2.55 | 4.38 | 1.91 |
| 100,000 | 5.05 | 9.78 | 2.15 |
| 1,000,000 | 79.16 | 72.5 | 4.51 |
Below about 25,000 documents, scanning every vector was as fast as a database. Somewhere between 25,000 and 50,000 the database pulled ahead. At a million documents Qdrant answered in 4.5 milliseconds, and a full scan took 72.5. Qdrant’s top 10 matched the exact scan 98.2 to 99.6% of the time at every size in the table, and 97.8% at an in-between step of 276,515 documents.
Times are the 95th percentile with the index already loaded. The million-document row comes from a separate session, so it isn’t exactly comparable with the rows above.Even at a million documents, search took a few milliseconds. The hosted model took about 800. Search was never what a user would wait on.
What it took to build
Turning a million documents into vectors took about 2.3 hours on the RTX 5060. The surprise was keyword search. At a million documents its index needed 18 GB of RAM, more than Qdrant’s 13.5 GB, and its slowest first lookups took about 5 seconds.
| At 1,000,000 documents | Build time | Peak RAM | Disk |
|---|---|---|---|
| Qdrant | 9.6 min | 13.5 GB | 3.35 GB |
| Full scan (NumPy) | 3.3 s | 6.2 GB | 3.1 GB |
| Keyword (BM25) | 94 s | 17.95 GB | 1.09 GB |
Other documents crowd in
As the pile grew, other datasets started showing up in each dataset’s top 10. SciFact was hit hardest. At a million documents, 57% of its top 10 came from elsewhere. Most were TREC-COVID papers on similar topics that nobody had labeled for SciFact’s claims.
That cost right answers. With the same model and keyword search, SciFact fell from 226 right at 5,183 documents to 209 at a million (p = 0.006). On BRIGHT, ranking slid from 0.212 at 100,000 documents to 0.168 at a million.
What fixed it, and what didn’t
Filtering by source helped. Ranking rose from 0.624 to 0.645 on Qdrant and from 0.616 to 0.659 on turbopuffer. On Qdrant the filter needs an index on the field it filters on. Without one, slow lookups went from 4 to 219 milliseconds. With a keyword index on the source field they took 8.5 milliseconds, and the ranking didn’t change. Splitting BRIGHT documents into smaller chunks made merged ranking worse, 0.212 to 0.184, so we kept them whole. Vector search alone did better on chunks, 0.115 to 0.144. Putting the chunks back together into whole pages scored 0.323, but that ranks pages instead of the original documents, so it isn’t a like-for-like comparison.
Our machine or the cloud
| At 1,000,000 documents | Qdrant, our machine | turbopuffer, cloud |
|---|---|---|
| Matches the exact top 10 | 99.6% | 95.6% |
| Ranking | same as exact | 0.0990 against 0.0985 exact |
| Typical slow lookup | 4.5 ms | 17 ms on their server |
| Cost | free software | $3.11 for the million-document tests, $16 a month minimum |
turbopuffer missed a few more of the exact top 10, but its ranking didn’t suffer for it on these questions.
Cloud lookups also cross the internet: 81 ms from our machine, and 617 ms for the first query after an hour idle. We don’t rank local and cloud on speed for that reason. An earlier 100,000-document turbopuffer test, about $0.41, is counted separately and falls within the $16 monthly minimum.Letting the model choose what to read#
With search settled, we asked where the model itself fits. We wrote 139 new questions across all five datasets, each with an answer key, and kept search fixed: keyword and vector merged, over the full million documents.
First we checked search on its own. The right document was in the top 5 for 80% of questions and in the top 20 for 89%. Plain RAG shows the model only the top 5, so about one question in eleven had its answer sitting at rank 6 to 20, unread.
Then we tried four ways to use the model between search and answer. Plain reads the top 5. Rewrite has the model reword the question and search again. Check has it mark each of the top 20 as useful or not. Pick has it read the top 20 and keep the best 5. Combined does rewrite, pick and check in a row.
An answer counted as right only if it cited the right document, quoted it exactly, and covered the key points in the answer key. Code checked the citations and quotes. A model judge checked the key points without knowing which setup wrote the answer.
A second blind model reviewer agreed with the judge on 58 of 60 sampled decisions. No person graded the answers. Quotes count as exact after stripping formatting and evening out punctuation. On that rule, 95.2% of Pick’s 269 quotes match (256). Character for character, 68.8% do (185).Since they tied, the simpler one wins. Pick needs one extra model call where Combined needs several. It cost about $0.0005 a question against $0.0013 ($0.0015 counting the rate-limit reruns), and a typical answer took about 2 seconds against 10.
$0.0005 and 2 seconds are our production estimates. The measured $0.00094 and 2.8 seconds include a second Pick call per question that we ran only to test how stable its choices were.The two did differ by dataset. Combined did better on hard BRIGHT questions, 38 right against 33. Pick did better on code, 13 against 8, where rewriting the question hurt the search.
Where the remaining misses come from
- 68 fully correct
- 20 model had the right document, answer fell short
- 1 Pick dropped it
- 11 search never found it
Most misses happen after the model already has the right document in front of it. It skips a key point, misquotes, or cites the wrong source. A stronger model is the obvious thing to try next. We haven’t tested one, so we can’t say how much it would help. With this search and picking, even a perfect reader would top out around 88 out of 100.
Where it fails
For 15 questions, search never found the right document. The right reply to those is “I don’t know.” Plain said so 7 times, Check 5 times, Pick twice and Rewrite once. Combined never did. Each step we added made the model more willing to answer anyway.
Anyone putting this in front of customers should add a check for that before answering. We haven’t tested one yet.
What we would build#
- Search with keyword and vector together, merged. Under about 25,000 documents a plain scan is fine. Past 50,000, use a vector database.
- If the pile mixes sources, filter by source, and index the field you filter on.
- Keep documents whole, and leave out the reranker.
- Take the top 20 and let the model pick the best 5.
- Ask for citations and exact quotes, then check the quotes with code. That check is free.
- Add an “I don’t know” check before anything reaches a customer. We haven’t tested one yet.
The model is most of the bill. Search costs almost nothing per question.
| Questions a month | Plain | With Pick |
|---|---|---|
| 1,000 | $0.16 | $0.54 |
| 10,000 | $1.65 | $5.36 |
| 100,000 | $16.50 | $53.61 |
| 1,000,000 | $165 | $536 |
At 100,000 questions a month the model costs about $54. Storage is free on your own machine, or $16 a month and up on turbopuffer.
Monthly figures are estimates: the measured cost per question times the volume, at the provider’s prices on November 25, 2026.Limits#
We tested one small model on one machine, with one run per setting. Any single score on 139 questions can move by about 8 points by chance. The 139 questions were written from their source documents, so they are easier than the original BRIGHT questions. We haven’t tested a stronger model or an “I don’t know” check.
Two things didn’t go to plan. 29 of Combined’s questions hit the provider’s rate limit, so we reran only those, with the same settings, for $0.03, and kept the original run. And a planned human spot check became the blind second model review described above. The 139-question tests cost $0.56 in model calls, out of a $2 budget.
References
- Wadden et al., “Fact or Fiction: Verifying Scientific Claims.” EMNLP 2020. SciFact.
- Su et al., “BRIGHT: A Realistic and Challenging Benchmark for Reasoning-Intensive Retrieval.” 2024.
- Robertson and Zaragoza, “The Probabilistic Relevance Framework: BM25 and Beyond.” 2009.
Cite this#
Peace, K. “Is RAG Still Worth It? A 1-Million-Document Stress Test.” Caeliai research, November 2026. caeliai.com/research/is-rag-still-worth-it