RetrievalInfrastructure Updated

Vector Database

Definition

A vector database is a database that stores embeddings — lists of numbers that represent the meaning of text, images or other data — and searches them by similarity instead of exact match, so it can find semantically related content in milliseconds.

At a glance

Stores
Embeddings, plus the original content and metadata
Searches by
Similarity — cosine similarity, dot product or Euclidean distance
Typical index
Approximate nearest-neighbour graphs such as HNSW
Main uses
Semantic search, RAG, recommendations, duplicate detection
Examples
Pinecone, Weaviate, Milvus, Qdrant, Chroma; pgvector for PostgreSQL

A vector database stores documents alongside their embeddings and answers queries by nearest-neighbour search in vector space. Because exact nearest-neighbour search is expensive at scale, these systems rely on approximate methods such as the HNSW graph index of Malkov & Yashunin (2018), and GPU-accelerated search libraries like FAISS (Johnson et al., 2017).

The result is sub-second semantic retrieval over millions of passages — the storage layer that makes retrieval-augmented generation practical.

What is a vector database used for?

A traditional database finds rows that match a value exactly; a vector database finds items that are close in meaning. A search for "how do I reset my password" can return a help article titled "Recovering account access" even though the two share almost no words. That makes vector databases the backbone of:

  • Semantic search over help centres, wikis and document archives
  • RAG chatbots that answer from private documents
  • Recommendations — "more like this" for products, articles or songs
  • Duplicate and near-duplicate detection
  • Image and audio similarity search

How a vector database works

  1. 1
    Embed and store. Each item is converted into an embedding by an embedding model and stored with its original content and metadata.
  2. 2
    Index. Vectors are organised in an approximate index such as HNSW, which trades a little accuracy for large speed gains.
  3. 3
    Query. The query is embedded with the same model, and the database finds the nearest vectors under a similarity measure such as cosine similarity.
  4. 4
    Filter and return. Most systems combine the similarity search with metadata filters (date, author, permissions) and return the top matches, often passed to a reranker.

Vector database vs traditional database

Traditional databaseVector database
Matches onExact values and keywordsCloseness in meaning
QuerySQL or key lookupsAn embedding of the question
IndexB-tree or inverted indexApproximate nearest-neighbour index (e.g. HNSW)
ResultEvery row that matchesThe top-k most similar items, ranked

Options range from dedicated vector databases such as Pinecone, Weaviate, Milvus, Qdrant and Chroma to vector-search extensions for existing databases, such as pgvector for PostgreSQL. For many teams, adding vector search to a database they already run is simpler than operating a separate system.

References

Primary, peer-reviewed and archival sources for this definition.

Efficient and Robust Approximate Nearest Neighbor Search Using Hierarchical Navigable Small World Graphs
Malkov, Yu. A., & Yashunin, D. A. (2018). IEEE Transactions on Pattern Analysis and Machine Intelligence.
Billion-scale similarity search with GPUs
Johnson, J., Douze, M., & Jégou, H. (2017). arXiv preprint (later in IEEE Transactions on Big Data).

Dictionary & encyclopedic entries

Cite this entry

MultipleChat. "Vector Database." MultipleChat AI & LLM Glossary, October 2026. https://multiple.chat/ai-glossary/vector-db

Related terms

See this in practice

Run the same prompt across ChatGPT, Claude, Gemini, Grok and Perplexity side by side — with your own files as context and answers you can cross-check.

Try MultipleChat Free

Continue learning

See paid plans