What is a Vector Database?
A vector database saves text as lists of numbers, letting a search match meaning rather than exact keywords. Most RAG systems use one as their retrieval engine.
A vector database holds embeddings, which are numeric representations of text (or of images or audio) arranged so that things with similar meaning sit close together in space. Rather than looking for exact keyword matches, you convert the user’s query into an embedding the same way and ask the database which stored vectors are nearest. This is called similarity search, and it is how a system can surface “how do I cancel my plan” when the source document only says “subscription termination procedure.”
Inside a RAG pipeline, it serves as the retrieval layer, and answer quality leans on it heavily. Solid embeddings and solid search hand the right chunks to the LLM; poor ones hand it garbage, which the model then summarizes with full confidence. That is why RAG projects usually live or die on retrieval rather than on the model.
What vendors tend to leave out: a dedicated vector database is frequently unnecessary. With a small corpus (thousands of chunks rather than millions), adding a vector extension (pgvector) to the Postgres you already run is simpler, costs less, and leaves you one fewer system to operate. When most of your search is keyword-based, ordinary full-text search can outperform vector search entirely. Choose a specialized vector DB when scale, latency, or high-volume hybrid search truly call for it, not because it appears on the architecture diagram.
An example of overbuilding this: a team making an internal documentation assistant across a few thousand pages adopts a managed vector database, a standalone embedding pipeline, and a reranking service before a single person has used it. Now they run four systems to answer questions that pgvector on their current Postgres could have covered, and each one adds something new to monitor, secure, and pay for. The plain version goes live in a week and scales without trouble until the corpus becomes truly large. Bring in the specialized database once the numbers demand it (millions of vectors, tight latency budgets, high-volume hybrid search), not because it makes the architecture diagram look more serious.
Within Artificial Intelligence work, we choose the option that is just boring enough on purpose, since each additional system is one more thing to keep running at 3am.