19 Sep 2026
Why BM25 still beats agentic search on large corpora
BM25 was designed in the 1990s. A study in July 2026 found it beats agentic search by ~20 points on large corpora, at a fraction of the tokens.

When people build retrieval today, they mostly reach for either a vector db, or everything pushed straight into the model's context. The second one is fine under ~200k tokens (~500 pages). Past that it stops being fine.


Most people don't even consider an agent with grep, and it surprised me given how well it works. No index & no embedding pipeline, so setup costs close to nothing, and on the small corpora in that study it beat both BM25 and dense retrieval. Where it hurts is per query cost, already ~39x BM25's tokens at the smallest size, and once the corpus crossed ~10M tokens its accuracy dropped off while BM25 overtook it and stayed ahead at every tier they measured.


BM25 (already sitting inside Elasticsearch / OpenSearch etc) gets considered even less, which I still find odd.

That study made me map the whole retrieval stage properly, and there is a lot more on it than these four.



Bloom filters & trigram indexes that only tell you where not to look, tree indexes that makes a model navigate the way an analyst would, graphs you build up front & query later, learned sparse, late interaction etc.



Each one bills you differently (index cost / query cost / storage) and breaks on its own kinds of problems.




My point is, most AI products I'm handed, picked a vector db before anyone asked what they were retrieving. The right pick depends on corpus size, document shape & the kind of question being asked, and that's a lot cheaper to settle before the build.






Papers & sources are on the last page of the field guide.
