A framing of retrieval as a four-level pyramid: no retrieval (long context), keyword/grep search driven by an agent, a vector index inside an existing database, and finally a dedicated vector database. The argument against vector databases rests on agentic keyword search, huge context windows, and embedding costs — all valid until you hit the semantic gap or massive vector counts. The verdict is two questions: do you need vector search at all, and if so, do you need a dedicated system for it. Only climb the pyramid when the workload actually demands it.
- A vector database stores content as embeddings — points in high-dimensional space arranged so similar meanings sit near each other — and returns semantically similar items at retrieval time, commonly for RAG.
- The retrieval pyramid runs from no retrieval at the bottom to a dedicated vector database at the top, and you should only move up when the workload warrants it.
- Agentic search weakens the case for embeddings: an AI agent running grep or keyword search doesn't have to get retrieval right in one shot — it can search, read results, refine, and loop.
- Long context windows (frontier models take roughly a thousand times more text than a few years ago) let you skip retrieval, but token costs rise and context bloat can make the model perform worse than targeted retrieval.
- Embedding costs are real: documents must be chunked and embedded on ingest, every query must be embedded, and switching embedding models means re-embedding everything.
- The semantic gap is the strongest argument for embeddings — a query like "how do I reset my password" shares no words with a ticket titled "credentials loop after update," so grep finds nothing while the two are close neighbors in embedding space.
- Most mainstream databases now support vector search natively, since an embedding is just an extra column of numbers and indexing columns is what databases do — so a vector index often suffices.
- A dedicated vector database earns its place when vectors run into the many millions or billions and must be held in memory and queried in milliseconds, where a general-purpose database starts to strain.
The clearest concrete example of where keyword search fails and embeddings earn their cost.
A user types: how do I reset my password? Now, it turns out that there is already a ticket... called credentials loop after update. Keyword search isn't gonna find this ticket because these two things don't share a single word.
Condenses the whole argument into a decision rule you can apply to your own workload.
The first question is, is vector search still needed? And if the answer to that is yes, then the second question is, is a dedicated vector database still needed?
There's no point scampering to the top for the sake of it and taking an unnecessary fall.
Keyword search, even if it takes a few tries, can be as good as vector search without some of the downsides.
Context bloat can result in an AI model performing worse than retrieving just the relevant sections from a knowledge store when they're needed.