A database that finds similar meaning
A vector database is a database built to store embeddings and quickly find the ones closest to a question. An embedding is a long list of numbers that an AI model produces to represent the meaning of a piece of text, an image or another item. Items with similar meaning get similar lists of numbers.
A normal database answers "what equals this?": customer number 1042, all orders from March. A vector database answers "what is most similar to this?": the support articles closest in meaning to a customer's question, the products most like the one being viewed, the past cases that resemble a new one.
Why it is needed
Semantic search, searching by meaning rather than exact words, depends on comparing a question's embedding with the embeddings of every stored item and finding the nearest. With a few hundred items, a computer can simply compare them all. With hundreds of thousands or millions, comparing everything for every question becomes far too slow.
Vector databases solve that problem. They organize embeddings so that the closest matches can be found in a fraction of a second without checking every item. That makes them the natural storage for the search step in RAG, retrieval-augmented generation, where an AI assistant first finds relevant passages in company documents and then answers from them.
How it works, step by step
First, documents are prepared. Long texts are split into chunks of a few paragraphs, because a chunk with one clear topic gives a sharper embedding than a whole manual. Each chunk is run through an embedding model, and the resulting numbers are stored together with the original text and useful details called metadata: title, date, source, language, department and who may see it.
Second, the database builds an index, a structure that groups nearby embeddings so that search can jump straight to the right neighborhood. These methods are called approximate nearest neighbor search: they trade a tiny chance of missing the very best match for a huge gain in speed.
Third, when a question comes in, it is turned into an embedding with the same model, and the database returns the closest chunks. Filters on the metadata, such as "only Swedish documents" or "only documents this user may see", narrow the results before or during the search.
Choosing one
There are dedicated vector databases, such as Pinecone, Weaviate, Qdrant and Milvus, built for large collections and heavy use. Many regular databases also support vectors now, for example PostgreSQL with the pgvector extension, and the major cloud platforms offer built-in vector search. Some AI tools include a vector store so you never see it.
For small and medium collections, adding vectors to a database you already run is often the simplest choice, because the text, the metadata and the access rules stay in one place. A dedicated vector database makes more sense for very large collections, high search volumes or advanced features. Check whether it supports hybrid search, which combines vector search with classic keyword search, since that finds exact terms such as product codes and names that meaning-based search can miss.
Where it goes wrong
The most common mistake is mixing embedding models. Embeddings from different models live on different "maps" and cannot be compared, so if you switch model, every item must be embedded again. Another is forgetting updates: when a document changes or is deleted, its old chunks must be replaced or removed, or the assistant keeps answering from outdated text.
Access is a third risk. A vector database that ignores permissions can hand confidential passages to anyone who asks a well-phrased question. And embeddings are not anonymous: methods exist to reconstruct parts of the original text from them, so they deserve the same protection as the documents they came from. Finally, search quality must be measured with real questions, since it sets the ceiling for how good any AI answer built on it can be.
What it means for a small business
For a small business, a vector database is usually a part inside a larger solution rather than something to buy on its own. If you use an AI assistant that answers from your documents, there is very likely a vector store behind it. The questions worth asking the supplier are where it is hosted, how it handles access rights, how quickly it picks up document changes and how search quality is tested.
If you build something yourself, start with the database you already have, if it supports vectors. Store each chunk with its source, date and permissions, pick one embedding model and stick with it, and test with real questions from your own customers or staff.
Sources: pgvector (open source vector search for PostgreSQL)