Vector database
A database built to store vector embeddings and quickly find the ones closest in meaning to a query. It is the usual retrieval layer behind RAG systems and semantic search.
A vector database stores vector embeddings, the lists of numbers that represent the meaning of a piece of text or an image, and answers one kind of question fast: which stored items are closest to this one? A query is embedded the same way, and the database returns the nearest neighbors, usually using approximate search methods so it stays fast across millions of entries.
This is the retrieval step in most RAG systems. A user asks about parental leave in Germany, the question is embedded, the database returns the policy passages closest in meaning and those passages are placed in the model's context window.
Dedicated products exist, but many teams now use vector search features inside databases they already run, such as Postgres with the pgvector extension. That choice is often about operations and access control more than raw speed.
Where projects go wrong
Similarity is not relevance. A search for "termination for convenience" can return passages about termination for cause because the wording is close. Exact identifiers such as product codes, names and dates are also handled poorly by embeddings alone, which is why many systems combine vector search with keyword search.
The database is rarely the hard part. Most poor retrieval results trace back to how documents were split into chunks, missing metadata, stale content or permission rules that were never carried over. If a user cannot open a document in the source system, the retrieval layer should not hand it to the model either.
Related terms
Vector embedding
A list of numbers that a model produces to represent the meaning of a piece of text, an image or another item, so that items with similar meaning end up close to each other and can be found by similarity rather than exact words.
RAG
Retrieval-augmented generation: a pattern where a model is given relevant documents or data retrieved at question time, so its answers rest on current, specific sources rather than only its training.
Semantic layer
A shared set of business definitions, metrics, calculations and data relationships that sits between raw data and the people or AI agents that query it, so everyone means the same thing.
Context window
The amount of text, measured in tokens, that a language model can take into account in one request: the instructions, the conversation so far, any attached documents and the answer it is writing.
Latency
The time an AI system takes to respond. It is one of the constraints, with quality, privacy, cost and recovery, that decides which configured system is best for a workload.
Vendor lock-in
Dependence on one provider that makes switching costly. With AI it extends beyond APIs and prompts to the vendor's decision behavior, embedded thresholds and platform features.