Skip to content

AI Glossary · Concepts

What is Vector Database?

Vector Database

A vector database stores embeddings — the numerical representations of your data — and is built to find the nearest ones to a query fast. It's the retrieval engine underneath most RAG systems.

Also known as: vector store, vector DB

· Updated · Chain of Thought

RAG & Retrieval

  • 2 explainers
  • 8 episodes
  • 1 guest clip
  • 1 source

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

Go deeper

  • 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