AI data infrastructure
What Is a Vector Database?
A vector database is a data store built to hold embeddings, which are lists of numbers that represent the meaning of text, images or other content, and to find the items most similar to a query quickly. It powers semantic search, recommendations and retrieval for generative AI applications.

How it works
An embedding model converts each document, passage or image into a vector with hundreds or thousands of dimensions, so that similar content lands close together. The database stores each vector with its metadata and builds an index over them.
A query is embedded the same way, and the database returns the nearest neighbors by cosine similarity, dot product or Euclidean distance. Exact search over millions of vectors is slow, so most systems use approximate nearest neighbor indexes such as HNSW or inverted-file methods, trading a little accuracy for speed. Metadata filters narrow results, for example by department or access level.
How it differs from a relational database
A relational database answers exact questions, such as orders over a certain value. A vector database answers questions about closeness, such as passages most similar in meaning to this question. The two are not rivals. Several relational and search engines now offer vector types or extensions, and for modest volumes that can be enough.
Dedicated vector stores become attractive at larger scale, with heavy filtering or strict latency needs.
Why it matters
Retrieval quality sets the ceiling for a RAG system, and the vector store is the core of that retrieval. Choices about chunking, embedding model, filtering and access control matter as much as the product.
FAQ
Frequently asked questions
Do I always need a dedicated vector database?
No. If your data already lives in PostgreSQL, a search engine or a cloud data platform that supports vectors, you may be able to start there with fewer moving parts. A dedicated store makes more sense for very large collections, complex filtering or demanding latency, so test with your own data first.
How do we keep vector data secure?
Treat embeddings as sensitive, since they can reveal information about the source text. Apply encryption, network controls and role-based access, and enforce document-level permissions at query time through metadata filters. Plan deletion carefully so that removing a source document also removes its vectors from the index.
Keep exploring