Vector database
A vector database is a data store built to save embeddings and quickly return the stored items whose vectors are most similar to a query vector.
Also called: vector DB, vector store, vector search
A vector database is a data store designed to hold embeddings and return the items most similar to a query, by meaning rather than exact keywords. It is the retrieval engine behind most retrieval-augmented generation systems, semantic search tools and AI lookalike models.
How it works
Each record you store has three parts: an ID, a vector (the embedding), and metadata such as company domain, document type, owner or date. When a query comes in, it is embedded with the same model, and the database returns the nearest vectors.
Comparing a query to every stored vector gets slow at scale, so vector databases use approximate nearest neighbor indexes, with names like HNSW or IVF. These trade a tiny bit of accuracy for large speed gains. You tune them with settings that balance recall (did we find the true best matches) against latency.
The feature that matters most for GTM use is metadata filtering. A good query looks like: "Find the 10 chunks most similar to this question, but only from documents tagged 'current' and visible to the sales team." Many teams also run hybrid search, mixing vector similarity with keyword matching so exact product names and acronyms don't get lost.
Example
Say a team stores 400,000 call note chunks from three years of recorded calls. A product marketer asks, "What do prospects say when they pick a competitor on price?"
Keyword search for "price" returns 30,000 chunks, mostly noise. A vector query filtered to closed-lost opportunities from the last 12 months returns the 50 closest chunks in well under a second. The marketer reads all 50 in about 40 minutes and finds four recurring objections. Doing that by listening to calls at, say, 10 minutes of useful skimming per call across 200 lost deals would be over 33 hours. The vector store did not answer the question; it found the right evidence fast enough for a human to answer it.
When it matters and when it doesn't
You probably don't need a dedicated vector database if:
- Your knowledge base is a few hundred documents. Keyword search or pasting into a large context window works.
- You already run Postgres or a cloud data warehouse with vector support. Add a vector column and query it with SQL.
- Your similarity jobs run in batch, such as weekly lookalike modeling, not on live requests.
You probably do need one if you serve live semantic search to many users, store millions of vectors, need strong metadata filtering at low latency, or want hybrid search managed for you. Our default is to start inside the database you already have and move only when a measured limit forces it.
Common mistakes
- Buying a vector database before proving that retrieval quality, not content quality, is the bottleneck.
- Storing vectors without metadata, so you can't filter by recency, owner or permissions.
- No data pipeline to update or delete vectors when source documents change.
- Switching embedding models without re-embedding the whole store.
- Skipping a retrieval test set, so nobody knows if index tuning helped or hurt.
FAQ
Do I need a dedicated vector database?
Often not at GTM scale. If you already run Postgres, the pgvector extension handles hundreds of thousands to low millions of vectors well. Dedicated vector databases make sense at larger scale, with heavy query volume or when you need managed hybrid search.
What are examples of vector databases?
Well-known options include Pinecone, Weaviate, Qdrant, Milvus and Chroma, plus vector features in Postgres (pgvector), Elasticsearch, OpenSearch, MongoDB and major cloud data warehouses.
How is a vector database different from a regular database?
A regular database finds rows by exact matches and ranges, such as industry equals SaaS. A vector database finds rows by similarity of meaning. Most real systems use both: filter by hard fields, then rank by vector similarity.