Definition
A vector database is a database designed to store vectors, lists of numbers that represent items such as passages of text, images or products, and to search them by similarity. These vectors are usually embeddings produced by a machine learning model, arranged so that items with similar meaning have vectors close together. A query is converted into a vector in the same way, and the database returns the nearest items.
Similarity is measured with metrics such as cosine similarity, dot product or Euclidean distance. Comparing a query with every stored vector becomes slow as collections grow, so vector databases use approximate nearest neighbour indexes, such as HNSW graphs or inverted file indexes, which trade a small amount of accuracy for much faster search. Most also support metadata filters, for example limiting results to one property or to documents a user is permitted to see. Vector search is available both in dedicated vector databases and as extensions to general purpose databases. It is a core component of retrieval augmented generation.
Example
A hypothetical property manager stores embeddings of every building's manuals, policies and past maintenance notes. When a staff member searches for boiler pressure keeps dropping, the vector database returns a relevant troubleshooting note that never uses those exact words, filtered to the building the staff member manages.
Why it matters
Keyword search fails when people describe the same thing in different words. Vector search finds material by meaning, which makes internal knowledge, documents and past cases far easier to retrieve, and supplies AI assistants with relevant context. Access filters must be applied at search time, so that semantic search never surfaces documents a user is not allowed to see. Keeping embeddings in step with document changes matters just as much.