Vector database
A vector database stores embeddings and performs approximate nearest-neighbor search at scale, the persistence layer behind RAG and semantic search.
In more detail
What it means
A vector database (or vector index) indexes high-dimensional embedding vectors using algorithms like HNSW, IVF, or ScaNN so you can find the top-k most similar vectors to a query in milliseconds even across millions of records. Managed options include Pinecone, Qdrant Cloud, Weaviate, Vespa, and Turbopuffer. Open-source self-hosted: Qdrant, Weaviate, Milvus, LanceDB. Postgres extensions like pgvector make it possible to keep vectors next to relational data. Choose based on filter-and-search needs, hybrid (vector + BM25) support, and operational profile.
Part 1 of 2
When to use it, and when not
Use it for
- Any production RAG system.
- Semantic search at >100k document scale.
- Personalization features driven by embedding similarity.
Part 2 of 2
Common mistakes
- Picking a managed DB before validating the embedding model — DB swaps are cheap, embedding swaps are not.
- Forgetting hybrid (vector + keyword) — pure vector search misses exact-match queries.
FAQ
Questions readers ask.
What is vector database?
A vector database stores embeddings and performs approximate nearest-neighbor search at scale, the persistence layer behind RAG and semantic search.
When should you use vector database?
Any production RAG system. Semantic search at >100k document scale. Personalization features driven by embedding similarity.
What are the common mistakes with vector database?
Picking a managed DB before validating the embedding model — DB swaps are cheap, embedding swaps are not. Forgetting hybrid (vector + keyword) — pure vector search misses exact-match queries.
Last updated: 2026-06-01. Raw markdown: https://promtable.com/glossary/vector-database.md. Found a mistake? Tell us.