Vector database
Also: Vektorová databáze, vector store, vector search database
A vector database is a database designed to store and search embeddings, the numeric vectors that represent the meaning of text, images or other data. Instead of matching exact values, it finds the records whose vectors are closest to the query. To stay fast across millions of items, it uses approximate nearest neighbour indexes such as HNSW.
What it means for a company
A vector database usually acts as the memory of a RAG or semantic search system. Companies choose between a standalone vector database and vector search inside a database they already run, such as PostgreSQL with the pgvector extension. The second option keeps vectors next to the original data and simplifies backups, permissions and consistency. A standalone product can make sense for specific volume or performance needs. Approximate search trades some accuracy for speed, so result quality has to be measured, not assumed.
In practice
Vector database vs relational database: a relational database answers a query like all invoices from supplier X in 2025 exactly. A vector database answers a query like find contracts similar to this one and returns records ranked by similarity rather than a definitive set. In practice the two are combined: PostgreSQL with pgvector can filter by supplier and rank by similarity in a single query.
Frequently asked questions
Do I need a new database for AI?
Often not. Many mainstream databases already support vector search, for example PostgreSQL through the pgvector extension or Azure Cosmos DB. Microsoft notes that an integrated approach removes the need to copy data into another database and makes it easier to keep data consistent.
What is approximate nearest neighbour (ANN) search?
It is a method that, instead of comparing the query with every vector, searches only part of the data using an index such as an HNSW graph. It is much faster but can miss some relevant results. The pgvector extension, for instance, searches exactly without an index and approximately with one.