Bergum defines agentic search as retrieval inside an agent loop, such as an agent searching while writing code or doing research. A useful system needs a capable model, a harness that exposes search tools, and a retrieval engine that can scale to large document collections. BM25 is a scoring function that estimates relevance from query and document terms.
The unreasonable effectiveness of BM25 for agentic search
Speaker
Jo Kristian Bergum, CEO of Hornet.dev, explains why BM25 can work well for agentic search at an AI Engineer talk.
Bergum argues that BM25’s renewed usefulness comes from more capable language models, which bring general knowledge and can formulate longer, more specific queries than typical human searches. On BrowseComp Plus, roughly 830 riddle-like questions are answered using a search tool over about 100,000 web documents. The benchmark shows that models answer much more accurately when given the evidence directly, so retrieval quality can limit end-to-end results.
BM25’s parameters and implementation affect its results, and Bergum says the BrowseComp Plus baseline performed poorly with its chosen settings. He highlights exact matches for names, ZIP codes, and SKUs, along with relatively low infrastructure costs compared with embedding systems. Literal matches also make results easier for a model to inspect and use when reformulating queries.
Bergum describes research from Jimmy Lin’s group on dynamic workspace expansion and proposes placing retrieved documents in a virtual file system. The model can first see titles and snippets, then read more with familiar tools such as Bash, ripgrep, and sed. This combines retrieval with sandbox tools that models are trained to use.
Bergum says single-query ranked-list metrics such as NDCG are less suited to agents that can reformulate and issue many queries. He recommends measuring whether the agent completes its task, such as answering a question correctly. Hornet’s comparison on 100 million web documents on one node is presented as evidence of higher search throughput for the same hardware cost; the transcript includes a correction about the chart’s axis, so it does not establish the metric clearly.
Takeaways
- Treat retrieval quality as a potential limit on agent accuracy, even when the model can reason well.
- Test BM25 parameters and implementation on your own documents; the BM25 label alone does not guarantee comparable results.
- Use lexical search when exact names, identifiers, or phrases matter, and let the model inspect results to guide follow-up queries.
- Consider exposing retrieved documents progressively through a file-system-like workspace and familiar tools.
- Evaluate whether agents complete real tasks, not only how one query ranks documents.
Mentioned in this talk
Search inside this talk
What was claimed 9
- ceo ofJo Kristian Bergum CEO of Hornet.devCEO
“I’m Jo Kristian Bergum, CEO of Hornet.dev”
YouTube Unverified1 source· Talk
- featureagentic search: Runs search inside an agent loop, with the agent issuing queries, reading results, and reformulating queries
“agentic search is essentially search inside an agent loop”
YouTube Unverified1 source· Talk
- featureBM25: Scores relevance using interactions between query terms and document terms
“calculating a score from the interaction between the query terms and the document terms”
YouTube Unverified1 source· Talk
- feature
BrowseComp Plus: Benchmark corpus has about 100,000 web documents and nearly 830 questions“almost exactly 830 questions”
YouTube Unverified1 source· Talk
- feature
GPT-5: Can formulate long, specific search queries and use syntax operators such as site and phrase operators“GPT-5... can write out very long queries”
YouTube Unverified1 source· Talk
- featureBM25: Has two hyperparameters that control aspects of its scoring function
“BM25 has essentially two hyperparameters”
YouTube Unverified1 source· Talk
- featureDynamic Workspace Expansion: Uses a workspace to expose document titles and snippets, allowing an agent to progressively read retrieved documents
“expose a document title and a small snippet to the model”
YouTube Unverified1 source· Talk
- metricHornet.dev: 100 million web documents on a single node; more throughput than anonymized engines on the same type of hardware
“100 million documents on a single node”
YouTube Unverified1 source· Talk












