Glossary · AI/ML
Vector Database
Also known as: vector store, vector db, pgvector, chroma
A database built to store embeddings and quickly find the vectors closest to a query vector (similarity search).
What it does
A vector database stores each embedding with its original text and metadata, and answers the question “which stored vectors are nearest to this one?” Most use approximate nearest-neighbour indexes (such as HNSW) so search stays fast at millions of vectors.
Common options
| Option | Notes |
|---|---|
| PostgreSQL + pgvector | Good default if you already run Postgres |
| Chroma | Simple, popular for local prototypes |
| Qdrant, Weaviate, Milvus | Dedicated vector engines |
In-memory (SimpleVectorStore in Spring AI) |
Demos and tests only |
Tip
Store useful metadata (source, page, date) next to each vector. You can filter on it at query time and show citations in the answer.