Vector Database
- vector store
- vector db
What is Vector Database?
A vector database stores embedding vectors alongside metadata and answers nearest-neighbour queries against them. It uses approximate indexes rather than exhaustive comparison, trading a small amount of recall for query times that stay usable at scale.
In practice
Comparing a query vector against every stored vector is exact and linear in collection size, which is fine for thousands of items and hopeless for millions. Approximate nearest-neighbour indexes — HNSW graphs being the most common — build a navigable structure that reaches the neighbourhood of the true nearest vectors in far fewer comparisons. The trade-off is explicit: index parameters let you buy recall with memory and build time, or buy speed by accepting that an occasional true nearest neighbour is missed.
The feature that separates a usable store from a raw index is filtering. Real queries are rarely "find similar text" alone; they are "find similar text belonging to this tenant, in this locale, not archived". A store that applies predicates during traversal returns a full result set, whereas one that filters afterwards can return almost nothing once a selective filter is applied. Namespaces, payload indexes and hybrid keyword scoring exist to make that path work.
The choice people over-think is which vector database to adopt; the choice they under-think is whether they need a separate one at all. A PostgreSQL extension keeps vectors in the same transaction, the same backup and the same access-control model as the rest of the data, and removes an entire class of synchronisation bugs. A dedicated service earns its operational cost when the index outgrows what you want to run beside your transactional workload — not before.
Related terms
Frequently asked questions
Do I actually need a dedicated vector database?
How is a vector database different from a normal database index?
What is the trade-off in approximate nearest-neighbour search?
Why do my filtered vector searches return almost nothing?
Articles covering this
Where Vector Database shows up in practice rather than in definition.