Data and AI · Part 4 of 7
Video Part 4 of 7 2:30 Checked

Vector databases explained

A vector database finds text by what it means, not by the words in it, which is how an AI assistant answers from your documents with no training on them. Meaning as numbers, the nearest pieces found fast, and why a wrong piece found gives a wrong answer that sounds sure.

On the mapGo further →
A frame from the video: a search box reading my card was declined abroad beside a map of faint dots, with the question as an orange dot and the three nearest pieces lit in teal.

A vector database finds text by what it means, not by the words in it. That’s how an AI assistant answers from your documents, and the answer is only ever as good as what the search found.

Say you type “my card was declined abroad” into a help page. The right article is called “Overseas transaction limits”, and the two share no words at all. A search that matches words finds nothing.

Meaning becomes numbers. An AI model can turn a sentence into a long list of numbers, hundreds or thousands of them, called an embedding. Sentences with similar meanings get lists that sit close together. Think of it as a map where distance is meaning. A vector database holds those lists the way the index at the back of a book holds entries. Every document is cut into pieces of a few hundred words, and each piece becomes an entry with a reference back to its text. The difference is that you look this index up by meaning.

The nearest pieces are found fast. Your question is turned into numbers the same way, and the database finds the stored pieces that sit nearest to it. With ten million pieces stored, it doesn’t measure the distance to every one. It follows shortcuts through the map that reach almost the nearest pieces, almost every time. A little accuracy is the price of answering at once.

The AI writes from what was found. The nearest pieces are handed to the AI with your question, and it writes its answer from them, with no training on your documents at all. That also sets the limit. If the wrong piece is found, the answer is wrong and sounds just as sure. In one published test, plain retrieval missed the right piece about one time in twenty.

Some vector databases are built for this search and nothing else. The same search has also been added to the relational and document databases that companies already run, so it is sometimes a product of its own and sometimes a feature of the database you already have.

Every claim was checked against the embedding documentation of OpenAI, Anthropic and Google, the documentation of Pinecone, Qdrant, pgvector, Milvus and Weaviate, and Anthropic’s published retrieval figures in September 2026. No product is recommended. This is an independent explainer, not affiliated with any vendor.

The line to keepAn assistant that answers from your documents is only as good as what the search found.

Transcript of the video

Say you type "my card was declined abroad" into a help page. The right article is called "Overseas transaction limits", and the two share no words at all. A search that matches words finds nothing. To find it, the search has to understand what you mean.

An AI model can turn a sentence into a long list of numbers, hundreds or even thousands of them. Sentences with similar meanings get lists that sit close together, and different meanings sit far apart. Think of it as a map, where distance is meaning.

A vector database holds those lists, and it works like the index at the back of a book. Every document is cut into pieces of a few hundred words, and each piece becomes an entry, its numbers, with a page reference back to the text it came from. The difference is that you look this index up by meaning, not by the word.

Your question is turned into numbers the same way. The database finds the stored pieces whose numbers sit nearest to it, and those are the pieces that mean what you asked. It never looked at the words.

Now say there are ten million pieces stored. Does it measure the distance to every single one?

Not usually, because it follows shortcuts through the map. They reach almost the nearest pieces, almost every time, in a fraction of the time. A little accuracy is the price of answering at once, and most searches happily pay it.

This is how an AI answers questions about your documents without any training on your documents. The nearest pieces are handed to the AI together with your question, and it writes its answer from them.

That also sets the limit. The AI answers from what was found, so if the wrong piece is found, the answer is wrong with confidence. In one published test, plain retrieval missed the right piece about one time in twenty searches.

Some vector databases are built for this search and nothing else. The same search has also been added to the relational and document databases that companies already run. So it is sometimes a product of its own, and sometimes a feature inside the database you already have.

A vector database turns meaning into numbers, finds the nearest pieces fast, and hands their text to the AI. That is how an assistant answers from your documents, and it is only ever as good as what it finds.

Found this useful?

Subscribe for the next one, or tell me what you want explained. I take requests.