Data & databases

Vector Database

AI-assisted editorial review:

Vector database

A vector database stores embedding vectors and quickly finds the vectors closest in meaning to a query. Besides similarity search, it offers database functions such as inserting, updating and deleting data, metadata filtering and scaling.[1] It is widely used for retrieval-augmented generation (RAG), semantic search and recommendations.[1][8]

What does Vector Database mean in simple terms?

An embedding model turns text, images or code into lists of numbers (vectors), which a vector database stores and searches so you can search by "how similar in meaning" rather than by exact words. A regular database is like a catalog you search by exact title; a vector database is more like a librarian who can hand you "books similar to this one." When you want an AI model such as ChatGPT to answer from your company documents, you need a component that quickly finds the passages closest in meaning to the question. A vector database fills that role: the same embedding model converts both the documents and the question into vectors, and the database returns the nearest ones.[1] Internal manual chatbots, recommendation features and AI search are often built on this structure.[1][7]

How can Vector Database be explained with an analogy?

It is a records room where files are shelved not by keyword but next to other files with similar content.

Where is Vector Database used?

Case 1

Vanguard — Hybrid retrieval for customer support

Vanguard used Pinecone, a managed vector database, to power Agent Assist, an internal RAG assistant that helps support representatives answer calls.[7] Before choosing it, the team compared pgvector, Faiss, Redis and Pinecone, with hybrid search, real-time updates, security and metadata filtering among its requirements.[7] It combines keyword-style sparse vectors (BM25) with dense embeddings, and uses metadata to mark documents as live or stale so only current documents are retrieved.[7]
Result: Hybrid retrieval improved result accuracy by over 12% compared with dense retrieval alone, according to Pinecone's case study.[7]

Case 2

SK Telecom DEVOCEAN — Comparing Vespa, Milvus and Qdrant

A post on SK Telecom's developer blog DEVOCEAN compared three open-source vector databases, Vespa, Milvus and Qdrant, on Kubernetes installation, indexing and querying.[8] The author selected candidates that could run on-premises, were open source and could handle at least 10 GB or 50 million documents.[8] The conclusion was that there is no silver bullet: Qdrant suits quick setup and complex filtering, Milvus large-scale distributed workloads, and Vespa hybrid search and low-latency recommendations.[8] Self-hosting avoids license fees but leaves installation, high availability and tuning to your own team.[8]
Result: A selection guide by project type, with a recommendation to compare options in a small proof of concept first.[8]

Case 3

pgvector — Vector search inside PostgreSQL

pgvector is an open-source extension that adds a vector type to PostgreSQL so you can store vectors alongside the rest of your data.[5] It supports exact and approximate nearest-neighbor search, distances such as L2, inner product and cosine, and keeps Postgres features such as ACID transactions and JOINs.[5] Managed Postgres services such as Supabase let you enable it as an extension and use it to store embeddings for RAG.[6] If Postgres is already your standard database, it is often the lowest-friction place to start.
Result: Vector search in an existing Postgres database with CREATE EXTENSION vector;, without running a separate system.[5]

Case 4

Meta FAISS — Billion-scale similarity search on GPUs

In 2017, Jeff Johnson, Matthijs Douze and Hervé Jégou of Facebook AI Research (now Meta) published FAISS, an open-source library for similarity search on GPUs.[3] Their paper reports k-selection running at up to 55% of theoretical peak performance and nearest-neighbor search 8.5 times faster than the prior GPU state of the art, and building a graph connecting 1 billion vectors in under 12 hours on 4 GPUs.[3] A 2024 paper describes Faiss as a toolkit for vector similarity search, the core function of vector databases.[4] A similarity-search library is not by itself a complete database service; operational features such as metadata management and backups need additional components.[1]
Result: Nearest-neighbor search 8.5 times faster than the prior GPU state of the art (2017 paper).[3]

Try it today

  1. Choose the documents you want to search, split them into chunks, and create a vector for each chunk with an embedding model.[1]
  2. If your data is modest or Postgres is already your standard database, start by enabling pgvector with CREATE EXTENSION vector;.[5][6]
  3. Create an HNSW index, search for the top-K results by cosine distance, and add metadata filters such as department or date. With filters, consider iterative index scans in pgvector 0.8.0 or later to scan additional candidates; scan limits can still constrain the result count.[5][6]
  4. Prepare a set of real questions with known answer documents and measure recall and latency together. Also test hybrid search that combines keyword search with vector search.[5][7]
  5. When data volume, query load or multi-tenant isolation outgrows your setup, evaluate dedicated options such as Pinecone, Milvus, Qdrant or Vespa.[7][8]

Limits and direction

A vector database is not a cure-all. Approximate nearest-neighbor (ANN) search trades accuracy for speed: seeking higher recall often requires scanning more candidates and can increase query time.[1] Index settings matter. In pgvector, HNSW gives a better speed-recall trade-off than IVFFlat but builds more slowly and uses more memory, and the default candidate list size (hnsw.ef_search = 40) can cut filtered results short.[5] If you change embedding models, you generally need to re-create the stored vectors, because the query and the documents must be embedded with the same model.[1] Operating models also differ: managed services reduce operational work, while self-hosting leaves installation, availability and tuning to your team.[8]

Three directions stand out. First, hybrid search that combines keyword search (such as BM25) with vector search is becoming common, because exact product names, codes or legal clauses are hard to catch with vectors alone.[5][7] Second, index algorithms keep improving on HNSW, introduced by Malkov and Yashunin.[2] A 2026 paper, AQR-HNSW, reports 2.5–3.3 times higher queries per second than state-of-the-art HNSW implementations while keeping recall above 98%, in its own benchmarks.[10] Third, general databases are adding vector search, so teams can build RAG without a separate vector database: pgvector brings it to Postgres.[5][6] Investment in the category grew with generative AI; Pinecone raised USD 100 million in April 2023.[9] In practice, choose based on data size, operations capacity and your existing stack.[8]

Which concepts are related to Vector Database?

  • Related concept
    pgvectorAdds vector search to PostgreSQL; a common starting point if you already run Postgres.
  • Related concept
    MilvusAn open-source vector database built for large-scale, distributed deployment.
  • Related concept
    QdrantAn open-source vector database known for easy setup and rich metadata filtering.

Which sources explain Vector Database?

  1. Pinecone — What is a Vector Database & How Does it Work? (2023-05-03) — https://www.pinecone.io/learn/vector-database/
  2. Malkov & Yashunin — Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphs (arXiv, 2016; rev. 2018) — https://arxiv.org/abs/1603.09320
  3. Johnson, Douze & Jégou — Billion-scale similarity search with GPUs (arXiv, 2017-02-28) — https://arxiv.org/abs/1702.08734
  4. Douze et al. — The Faiss library (arXiv, 2024-01-16) — https://arxiv.org/abs/2401.08281
  5. pgvector — Open-source vector similarity search for Postgres (GitHub README) — https://github.com/pgvector/pgvector
  6. Supabase Docs — pgvector: Embeddings and vector similarity — https://supabase.com/docs/guides/database/extensions/pgvector
  7. Pinecone — How Vanguard worked with Pinecone to boost customer support (case study) — https://www.pinecone.io/customers/vanguard/
  8. SK Telecom DEVOCEAN — Vector DB comparison guide in the RAG era: Vespa vs Milvus vs Qdrant (2025-04-10) — https://devocean.sk.com/blog/techBoardDetail.do?ID=167359&boardType=techBlog
  9. Pinecone — Announcing our $100M Series B funding (2023-04-26) — https://www.pinecone.io/blog/series-b/
  10. Tewary, Gantayat & Zhang — AQR-HNSW: Accelerating approximate nearest neighbor search (arXiv, 2026-02-25) — https://arxiv.org/abs/2602.21600