Glossary termDatabase type

Vector Database

Also known as: Vector store, Vector search engine

Database designed to store embeddings and quickly find the vectors most similar to a query, supporting semantic search and AI retrieval.

A vector database stores high-dimensional vectors, usually embeddings produced by machine learning models, alongside the items or metadata they represent. Its core operation is similarity search: given a query vector, return the stored vectors closest to it. Because comparing a query against millions or billions of vectors one by one is too slow, these systems rely on approximate nearest neighbor indexes, such as graph-based HNSW or clustered inverted-file indexes, which trade a small amount of accuracy for very large speed gains.

Libraries for fast similarity search predate the term, notably Facebook AI Research's FAISS, released as open source in 2017. Dedicated vector databases and vector extensions for existing systems spread rapidly in 2022 and 2023 as developers built retrieval-augmented generation applications on top of large language models. Options range from purpose-built products to open-source projects such as Chroma and extensions such as pgvector for PostgreSQL. Many also support metadata filtering and hybrid search that combines keywords with vectors.

Vector databases turn meaning into something that can be indexed, which makes them central to semantic search, recommendations, deduplication and memory for AI agents. They are not a complete solution. Results depend heavily on the quality of the embedding model. Approximate indexes can miss relevant items, and similarity in vector space is not the same as relevance or truth. For many smaller projects, a conventional database with a vector extension is sufficient, and the choice is an engineering trade-off rather than a requirement.

Key points

  • Vector databases specialize in finding the stored vectors most similar to a query vector.
  • Approximate nearest neighbor indexes such as HNSW make search fast at large scale.
  • Adoption surged in 2022 and 2023 alongside retrieval-augmented generation for language models.
  • Retrieval quality depends largely on the embedding model, not only on the database.

Related entries

Glossary term

Embedding

AIProgramming

A learned numerical vector that represents an item such as a word, document, image or user so that similar items have nearby vectors.

Glossary term

Technique that improves a language model's answers by first retrieving relevant documents and supplying them to the model as context.

Glossary term

Search technique that matches queries to content by meaning and intent rather than by exact keywords, often using embeddings and language models.

Technology

Chroma

AIProgrammingFOSS

Open-source vector database that stores documents with their embeddings so language model applications can retrieve relevant information by meaning.

Technology

PostgreSQL

ProgrammingFOSS

Free and open-source object-relational database system known for reliability, standards compliance and extensibility, descended from Berkeley's POSTGRES.

Glossary term

Database

Programming

Organized collection of structured data stored electronically and managed by software that lets users store, query and update it reliably.

Glossary term

An abstract, usually lower-dimensional space in which a model represents data so that similar items sit close together and patterns become explicit.

Featured in guides