A vector database stores embeddings and quickly finds the ones closest to a query vector (nearest-neighbour search). Instead of scanning every vector, it uses special indexes such as HNSW to keep searches fast, even with millions of items.
Do you need a dedicated one? Often not at first:
For a few thousand documents, even an in-memory search or a simple array with cosine similarity works.
Many familiar databases now support vectors: PostgreSQL (pgvector), SQL Server and Azure SQL, MongoDB, Elasticsearch, Redis and others. Using what you already run reduces complexity.
Dedicated systems (Pinecone, Qdrant, Weaviate, Milvus and others) help with very large datasets, high query volume or advanced filtering.
Things to compare: scale, speed, filtering by metadata, hosting and cost, and whether it can combine keyword and vector search (hybrid search), which usually gives better results.
Start simple, measure retrieval quality, and move to a specialised system only if you outgrow the simple one.
Markdown for AI
A clean, structured version of this page for AI assistants and LLMs.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
A vector database stores embeddings and quickly finds the ones closest to a query vector (nearest-neighbour search). Instead of scanning every vector, it uses special indexes such as HNSW to keep searches fast, even with millions of items.
Do you need a dedicated one? Often not at first:
Things to compare: scale, speed, filtering by metadata, hosting and cost, and whether it can combine keyword and vector search (hybrid search), which usually gives better results.
Start simple, measure retrieval quality, and move to a specialised system only if you outgrow the simple one.