Jargonautica
Retrieval and Knowledge

Vector Database

Also called: Vector Store

A store designed to hold embeddings and answer the question ‘what is most similar to this?’ quickly. Ordinary databases are built to find exact matches; this kind is built to find near ones. It is the component that makes retrieval practical at any scale beyond a few thousand documents.

Technical view

Uses approximate nearest neighbour indexes such as hierarchical navigable small world graphs, or inverted file indexes with product quantisation, trading a little recall for very large speed gains. Options range from dedicated services to extensions of databases you already run, such as pgvector, and for many workloads the extension is sufficient and avoids operating another system. Practical considerations include metadata filtering alongside vector search, index rebuild cost when documents change, and the fact that every embedding must be regenerated if the embedding model is upgraded.


Part of AI Terminology Index, section: Retrieval and Knowledge.

How it connects

Vector Database links to 11 other terms. The faint lines are links between those terms. See it in the full graph.

EmbeddingsEmbeddingsSemantic SearchSemantic SearchRetrieval Augmented GenerationRetrieval Augmented…Approximate Nearest Neighbour SearchApproximate Nearest…RerankingRerankingChunkingChunkingDot Product and Cosine SimilarityDot Product and Cos…Multi-vector RetrievalMulti-vector Retrie…K-Nearest NeighboursK-Nearest NeighboursMetadata FilteringMetadata FilteringBM25 and Sparse RetrievalBM25 and Sparse Ret…Vector Database