Skip to content
Go back

80/20 Of The Week: Vector Databases

Edit page

80/20 Of The Week … Vector Databases

When we search for something normally, most systems look for exact words or close keyword matches.

That works fine… until it doesn’t.

For example, if I search for:

cheap phone

I probably also want results like:

budget smartphone affordable mobile device

The exact words are different, but the meaning is very close.

That is where normal keyword search starts struggling.

And that is also where vector databases start making sense.

  1. What vector databases are

The easiest way to think about vector databases is this:

Once AI turns words, sentences, images, or documents into numerical representations called embeddings… you need somewhere to store them and search through them efficiently.

That “somewhere” is a vector database.

So instead of storing only plain text and asking:

“Which rows contain these exact words?”

you now store vectors and ask:

“Which stored items are closest in meaning to this query?”

That is the big shift.

  1. Why we need them

Traditional databases are great at exact matches, filters, joins, transactions, and structured queries.

But semantic search works differently.

With semantic search, you do not only care about exact wording.

You care about similarity in meaning.

And once your data becomes embeddings, the main question is no longer:

“Does this text match exactly?”

It becomes:

“Which vectors are closest to this vector?”

That is not the kind of thing normal databases were originally designed for at scale.

Vector databases exist because once you have thousands, millions, or even more embeddings, finding the nearest ones quickly becomes its own problem.

  1. What we can do with them

Vector databases are a big part of systems like:

For example:

Without vector search, many of these systems become much more brittle and much less useful.

  1. What we cannot really do without them

Without vector databases, we can still do exact search.

But we lose a lot of the “meaning-based” behavior people now expect.

That means:

So it is not that AI becomes impossible without them…

it just becomes much less practical and much less powerful in these use cases.

  1. How they work

At a high level, the flow is usually this:

So if a document and a query have similar meaning, their vectors should end up relatively close.

That is the whole point.

In simple words:

keyword search tries to match words

vector search tries to match meaning

  1. How implementation usually looks

A very common setup looks like this:

So in practice, vector DBs are often not replacing everything.

They usually become one part of a bigger system.

For example:

That is why they feel both like an AI concept and a systems design topic.

  1. Main takeaway

Vector databases matter because modern AI systems often need to search by meaning, not just by exact words.

Once embeddings enter the picture, storing and searching them efficiently becomes a real problem.

And vector databases are one of the main ways we solve it.

In short:

embeddings make semantic understanding possible

vector databases make it practical at scale

#AI #MachineLearning #VectorDatabases #Embeddings #SemanticSearch #RAG #SystemDesign #DataScience

Vector Database Diagram


Edit page
Share this post on:

Previous Post
80/20 Of The Week: Spring Transactions (JPA, JTA, ...)
Next Post
80/20 Of The Week: Locking (Optimistic, Pessimistic, ...)