In breve
A vector database is a database built to store embeddings - the numeric vectors that represent the meaning of text, images or code - and to find, in milliseconds, the ones most similar to a query vector. A normal database is great at exact matches ("find the row where id = 42"), but it cannot answer "find the passages that mean roughly the same thing as this question". A vector database can, because it indexes by distance in meaning-space rather than by exact values. That single capability - fast nearest-neighbour search over embeddings - is what powers retrieval-augmented generation (RAG), semantic search and recommendations at scale.
What it actually does
You embed your content into vectors and store them. At query time you embed the incoming question and ask the database for the k nearest vectors. It returns them almost instantly, even across millions of items, using an approximate nearest-neighbour index. The returned items are the passages, products or records closest in meaning to what was asked.
- Store: keep each embedding alongside its original text and metadata.
- Index: build an approximate nearest-neighbour index so search stays fast at scale.
- Query: embed the question, retrieve the k closest vectors, return their source content.
Vector database vs a normal database
A relational or document database matches on exact fields and keywords. A vector database matches on semantic similarity, so a query worded completely differently from the stored text still finds it. They are complements, not rivals: many systems filter by metadata in a normal query and rank by vector similarity, and several traditional databases now add vector indexes so you get both in one place.
When you need one
You need a vector database as soon as RAG or semantic search grows past a toy size. For a few hundred items you can compare vectors in memory; past that, a dedicated vector index keeps retrieval fast and cheap. It is the storage layer that lets an agent reason over your private documents, a support bot answer from your help center, and a search box return results by meaning rather than exact words.
