Vector database
A database that stores data as lists of numbers that capture meaning, so it can find items similar in meaning rather than only exact keyword matches.
A vector database stores embeddings: lists of numbers, often hundreds or thousands long, that an AI model produces to represent the meaning of a piece of text, an image or a sound clip. Items with similar meaning get similar numbers, so they sit close together in a mathematical space. Search then becomes a question of distance: find the stored items nearest to this one.
A traditional database answers exact questions, such as every invoice from customer 4471 or every order over $500. A vector database answers fuzzy ones, such as which support tickets describe the same fault as this one, even when they use different words. Think of a librarian who shelves books by what they are about rather than by title, so related books end up side by side whatever they are called.
Comparing a query with millions of stored vectors one by one is slow, so these systems use approximate nearest neighbour search, which gives up a little accuracy for a large gain in speed. One common technique, Hierarchical Navigable Small World graphs, or HNSW, was described by Malkov and Yashunin in a paper first posted in 2016. It builds layered networks of links between items, and a search starts in the sparse top layer to cover long distances quickly before narrowing in on the layers below.
Vector databases became widely known through retrieval-augmented generation, where they supply the passages an AI model answers from. They are also used for recommendations, product search and finding duplicate records. A vector database is a component, not a strategy. Its results are only as good as the embeddings it holds and the documents those embeddings came from, so poor or outdated source material gives poor answers however fast the search.
It is used to find things by similarity of meaning. Common uses include feeding relevant documents to an AI assistant in retrieval-augmented generation, semantic search that understands paraphrases, product recommendations, image search and spotting near-duplicate records. Each item is stored as an embedding, and the database returns the items whose embeddings are closest to a query. A regular database looks up records by exact values, such as an account number or a date range. A vector database looks up records by closeness in meaning, using embeddings produced by an AI model. Many systems use both: exact filters such as region or date narrow the set, and vector search ranks what remains. Not always. Retrieval-augmented generation can run on any search system, and a small document set may work well with keyword search. A vector database earns its place when you have many documents, people phrase questions in varied ways, and you need answers found by meaning rather than exact wording.Common questions
What is a vector database used for?
What is the difference between a vector database and a regular database?
Do I need a vector database to use AI with my company documents?
Search for "vector database explained", "approximate nearest neighbor search" and "HNSW algorithm". Reliable sources include Wikipedia's overview, the original research papers on arXiv and the official documentation of open-source vector search projects, which explain their indexing methods in detail. Treat speed and accuracy comparisons published by database vendors with care, because they are usually run on the vendor's chosen data, settings and hardware, and results on your own documents can differ.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.