A vector database is a store designed for one job: hold millions of embeddings and, given a query vector, return the closest matches in milliseconds. Regular databases are built to match exact values; a vector database is built to match by similarity, which is what semantic search and retrieval need.
In a RAG system, the vector database is the retrieval layer. Your documents go in as embeddings; at query time the system embeds the question, asks the database for the nearest chunks, and hands those to the model. Picking and tuning one — how it indexes, how it filters, how it scales — is a core infrastructure decision, because retrieval quality caps how good the final answer can be.
Filtering is one place scale shows up. Many queries want the nearest vectors that also match a condition, such as a product category, a date range, or a customer. In episode 8, Weaviate’s Bob van Luijt describes filtered search that customers didn’t notice at a million products turning significantly slower at a billion, which is why Weaviate added a dedicated method for filtering in vector search.
See AI vocabulary in plain English for this term alongside the other language of models, data, agents, and infrastructure.
Hear it from the guest
“The queries became significantly slower because we didn't optimize that filtered search. If you have a million products, you're not going to notice that. But if you go up to a billion, you start to notice it.”
Quotes lightly edited to remove filler words.
Sources
- Malkov and Yashunin: Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphs — Introduces HNSW, a fully graph-based method for approximate K-nearest-neighbor search over vectors; checked October 25, 2026.
Go deeper
- Vector database or knowledge graph — which should you use for AI retrieval? AI, decoded · Vector Database vs. Knowledge Graph for AI Retrieval
- What is RAG, and why do AI systems use it? AI, decoded · What Is RAG (Retrieval-Augmented Generation)
- Weaviate: Bring your own vectors docs
Import supplied vectors and run a similarity query to separate database search from embedding generation. Requires a running Weaviate instance and a client.
From the conversation
-
AI Infrastructure & the Evolution of RAG | Weaviate's Bob van Luijt -
Mastering Multi-Agent Systems | MongoDB’s Mikiko Chandrasekhar -
How DeepSeek Changed the AI Race Overnight -
AI in 2025: Agents & The Rise of Evaluation-Driven Development | Galileo's Yash Sheth & Atindriyo Sanyal -
The AI Framework Era Is Over: Why Context Is the Moat | Jerry Liu of LlamaIndex -
Agent Memory: The Last Battleground in the AI Stack | Richmond Alake, Oracle -
AI's Two Extremes – Foundations & The Frontier | Databricks’ Denny Lee -
Information Symmetry: DevRev's Bet on AI-Driven Enterprise Decisions | Manoj Agarwal