---
title: "Vector database"
url: https://eldan.ai/glossary/vector-database
canonical: https://eldan.ai/glossary/vector-database
locale: en
language: en
published: 2026-11-23
updated: 2026-11-23
author: "Eldan Abdrashim"
cite_as: "Eldan Abdrashim. \"Vector database.\" Eldan.ai, 23 November 2026. https://eldan.ai/glossary/vector-database."
---

# Vector database

> A vector database stores embeddings together with ids and metadata and finds the nearest vectors to a query quickly. Most use approximate nearest-neighbour indexes that trade a little accuracy for speed. You can use a dedicated store, or the pgvector extension in Postgres if you already run it.

The hard parts are not the nearest-neighbour call. They are metadata filters, updates and deletes, access control and keeping the index in step with the source documents. A database you already operate often wins on those.

**Common mistake.** Picking a specialised store for a corpus of ten thousand chunks because it was in a tutorial, and then running a second database for it.

**In practice.** Start with pgvector if you use Postgres, measure recall and latency on your own data, and move to a dedicated engine only when the numbers demand it.

## Related terms

- [Embedding](https://eldan.ai/glossary/embedding)
- [Hybrid search](https://eldan.ai/glossary/hybrid-search)
- [RAG (retrieval-augmented generation)](https://eldan.ai/glossary/rag)
