A vector database stores embeddings together with ids and metadata and finds the nearest vectors to a query quickly.
Most use approximate nearest-neighbour indexes that trade a little accuracy for speed. You can use a dedicated store, or the pgvector extension in Postgres if you already run it.
The hard parts are not the nearest-neighbour call. They are metadata filters, updates and deletes, access control and keeping the index in step with the source documents. A database you already operate often wins on those.
Common mistake. Picking a specialised store for a corpus of ten thousand chunks because it was in a tutorial, and then running a second database for it.
In practice. Start with pgvector if you use Postgres, measure recall and latency on your own data, and move to a dedicated engine only when the numbers demand it.
An embedding is a list of numbers that represents the meaning of a piece of text, produced by an embedding model. Texts with similar meaning get vectors that are close together, which makes semantic search possible. Vectors from different embedding models cannot be compared with each other.
Hybrid search combines keyword search, which is good at exact terms such as error codes and names, with vector search, which is good at paraphrases and meaning. The two ranked lists are merged, commonly with reciprocal rank fusion. On most real corpora the combination beats either method alone.
RAG retrieves passages relevant to a question from your own documents and puts them into the prompt so the model can answer from them. It is two systems in sequence, a search step and a generation step. The answer can only be as good as the passages that the search returned.
Cite this page
Eldan Abdrashim. "Vector database." Eldan.ai, 23 November 2026. https://eldan.ai/glossary/vector-database.
The date you read it is added when you copy.
BibTeX
@online{abdrashim2026vector,
author = {Eldan Abdrashim},
title = {Vector database},
organization = {Eldan.ai},
date = {2026-11-23},
year = {2026},
month = nov,
url = {https://eldan.ai/glossary/vector-database},
langid = {english}
}