A vector database stores data as embeddings, numeric vectors that capture meaning, and quickly finds the items most similar to a query, which powers semantic search, recommendations and RAG.

Definition
Traditional databases find rows by exact matches and ranges: a customer ID, a date, a status. A vector database finds items by similarity. Each item, such as a paragraph of text, an image or a product, is converted by an embedding model into a long list of numbers that represents its meaning. Items with similar meanings end up close together in that numeric space, so a search for “how do I reset my password” can find an article titled “Recovering account access” even though they share few words.
Vector databases are built to store millions of these vectors and return the nearest ones in milliseconds, usually alongside metadata such as title, source, date and access permissions that can be used to filter results. They became widely adopted as the retrieval layer for retrieval-augmented generation. Dedicated vector databases exist, and many relational databases, search engines and cloud data platforms now offer vector search as a feature, which is often enough for moderate workloads.

How it works
Content is first split into suitable pieces and passed through an embedding model, which outputs one vector per piece. The database stores each vector with an identifier, the original content or a pointer to it, and metadata. Because comparing a query against every stored vector would be slow at scale, the database builds an index for approximate nearest neighbor search, using structures such as graph-based or clustering-based indexes.
At query time, the user’s question or item is embedded with the same model, and the database searches the index for the vectors closest to it, measured by a distance such as cosine similarity. Approximate search trades a small amount of precision for a large gain in speed, and index settings let teams tune that balance. Metadata filters narrow results, for example to documents the user may access or products currently in stock.
Many systems combine vector search with keyword search, known as hybrid search, and then re-rank the combined results with a separate model to improve relevance. The database also handles inserts, updates and deletions as source content changes, plus the usual concerns of any datastore: backups, replication, scaling and access control.
Keep learning
Put it into practice
AI consulting, LLM and generative AI applications, NLP and AI integration engineered into the products and systems you already run.
Explore serviceBusiness intelligence, Power BI dashboards and data engineering that give leaders one trusted view of performance across their systems.
Explore serviceFAQ
Not necessarily. For many applications, vector search inside an existing database or search engine is simpler to operate and keeps data in one place. Dedicated vector databases become attractive with very large collections, high query volume, demanding latency targets or advanced filtering needs. Start with what you already run and measure before adding another system.
A regular database answers exact questions, such as all orders from a customer in a given month. A vector database answers similarity questions, such as which documents are closest in meaning to this question. Most applications need both, which is why many teams store vectors alongside ordinary records or link the two systems by shared identifiers.
Vectors from different embedding models are not comparable, so switching models means re-embedding all stored content and rebuilding the index. Plan for this by keeping the original source content, recording which model produced each vector and treating re-indexing as a routine, automated job rather than a one-time migration.
Talk to a solution architect about where it fits in your roadmap.
