What is a vector database?
A vector database stores embeddings and quickly finds the closest matches by meaning.
In a hurry? Watch the one-minute version.
Someone said "we'll put it in a vector database" and everyone nodded. In about two minutes: what a vector database actually is (a library sorted by meaning instead of the alphabet), how it stores embeddings next to the original text and finds the nearest ones among millions, why it usually settles for approximately the closest, how filters and plain old Postgres fit in, and why it always returns something, even when nothing relevant is in there. Featuring a server room full of good vibes and a lunch menu nobody asked for.
What you'll be able to explain
Explain that a vector database stores embeddings next to the original items and quickly finds the ones nearest to a question among millions, usually approximately (a little accuracy traded for speed), with filters such as date or department; that regular databases can add the capability (e.g. pgvector for Postgres); and that it always returns the nearest match unless someone sets a cutoff, so stale or irrelevant data comes back anyway.
"Great, what does it return when nothing relevant is in there?"
A vector database always returns the closest matches, even when nothing is actually relevant. The app has to notice that and say "I don't know".
A good answer sounds like: A threshold or check that makes the bot say it can't find an answer. All the questions →
Transcript
Everyone nodded
Someone in your meeting just said: we'll put it in a vector database. Everyone nodded. Somebody pictured a server room full of good vibes. Nobody asked what it actually is. Let's fix that.
A million spots, one question
Quick recap: embeddings turn meaning into numbers, a spot on a map of meaning. Now you have a million spots, and one question. Which spots are nearest? Measuring every single one, every time? Slow.
A library sorted by meaning
Picture a library sorted by meaning instead of the alphabet. Books about time off share a shelf. Books about money live across the room. A vector database is that library. It stores each item's numbers next to the original text, and finds the nearest ones fast. That's how RAG finds the right pages.
Approximately the closest
The trick: at scale, it usually finds approximately the closest. Instead of measuring every spot, it hops from neighbour to neighbour, closer with every jump. A little accuracy, traded for a lot of speed. Searching by vibes. Except maths.
Filters, and Postgres too
It also keeps labels, like date or department, so you can ask: nearest, but only from this year. And regular databases can learn the trick too, like P G vector for Postgres. So: a product, and also a feature.
Always the nearest
Here's the catch. It always returns the nearest, even when nothing is close. Unless someone sets a cutoff, it never says: nothing relevant. Ask about parking, get the lunch menu. Garbage in, nearest garbage out. And when a document changes, its numbers need updating too.
What if nothing's relevant?
And that server room full of good vibes? Close. It does search by vibes. The vibes are just maths. Next time someone says vector database, nod. Then ask the question that silences the room: great, what does it return when nothing relevant is in there? Silence. Congratulations. You're nodding with intent.
Sources
Every claim in this episode was checked against these 4 sources on before recording. AI moves fast: if something here is out of date, tell Tim.
Related

A large language model (LLM) is the AI behind chatbots like ChatGPT and Claude: it predicts the next word, extremely well.

RAG (retrieval-augmented generation) lets an AI look things up in your documents before it answers.

Embeddings turn text into lists of numbers so AI can search by meaning instead of exact words.