22 de nov. de 2026 · Victor Slompo
Do your AI agents really need a vector database?
A new paper questions the dense retrieval lead over keyword search.







WHAT HAPPENED
A paper asks what the dense advantage really measures
Code-search benchmarks show dense encoders well ahead of BM25, yet coding agents do well with grep. The authors built Repo-Premium, a repository-level benchmark, and traced the lead to evaluation choices and queries missing the code's rare identifiers.
THE NUMBER
0.551
nDCG@10 for fusing dense + BM25, vs 0.533 dense and 0.432 BM25
Across 539 lockbox queries in the paper. Fusion beat both retrievers alone.
THE REAL PROBLEM IN COMPANIES
What I see in companies: retrieval gets picked by hype
- 01Teams add a vector database first and never test a plain keyword baseline
- 02Nobody benchmarks retrieval on the real questions customers actually type
- 03Extra infrastructure gets approved without proof it improves the answers
I'VE ALREADY SOLVED THIS
A building materials store in southern Brazil faced this exact choice
- 0113,312 products in the ERP, with 136 different ways of writing the unit of measure
- 02245 counter-slang synonyms mapped, because customers write slang and the catalog does not
- 03A simple search answers in milliseconds and hands 8 results to the model. 65 of 65 real questions found the right product.
MY TAKE
Simple that works beats complex that impresses.
The paper suggests the dense lead can be an artifact of how it is measured. In practice, I would benchmark any retrieval layer against plain keyword search on real queries first. If the simple one wins, the fancy stack only adds cost.
Fontes
Quer isso funcionando na sua empresa?
Eu tiro IA do papel e coloco em produção, com resultado medido. No Instagram, comenta SDR no post e eu te mando o passo a passo no direct.