%alireza rashidi data science%
All Types of Regression
%alireza rashidi data science%
Postgre SQL
%alireza rashidi data science%
Vector Databases — The Memory of AI
Infrastructure of 2026

Beyond rows and columns. Search by meaning.

Vector databases are the long-term memory of AI. They store the world as coordinates in high-dimensional space — so machines can finally find things by what they mean, not just what they’re called.

01The concepts

Four ideas, one memory system#

Why the old search breaks, how meaning becomes math, and the one application that made this category unavoidable.

For 40 years the world ran on relational databases, and they are perfect for exact matches. But roughly 80% of enterprise data is unstructured — emails, PDFs, images, audio, Slack messages.

Ask SQL for “a legal clause about indemnity that doesn’t use the word indemnity” and it fails — not because it’s slow, but because keyword search has no concept of meaning.

The unstructured flood
0 200 400 600 2020 2021 2022 2023 2024 2025 2026 Zettabytes Global data generated, unstructured vs. structured — illustrative trajectory through 2026.
UnstructuredStructured

How to read this: the purple curve is why this category of database exists at all. The world’s data is exploding, and almost none of it fits in rows and columns.

Traditional databases search for keywords. Vector databases search for meaning.Same job, different sense organ.

An embedding model takes a piece of content — text, image, audio — and maps it to a long vector of floats: [0.002, -0.45, 0.11, …]. Similar meanings land at similar coordinates.

Plot the word “King”, subtract the vector for “Man”, add the vector for “Woman” — the nearest point to the result is “Queen.” Geography becomes grammar.

King − Man + Woman ≈ Queen
Real embedding spaces run 1,536 dimensions or more.Every nuance, tone, and context gets a coordinate.

LLMs are frozen in time and don’t know your company’s private data. Retrieval-Augmented Generation fixes that: the vector DB finds the truth, the LLM phrases it.

1Ask“How do I reset the X-200 machine?”
2Embed & searchThe question becomes a vector; the DB finds relevant manual chunks.
3AugmentQuestion + retrieved chunks go to the model together.
4AnswerThe model replies accurately — citing the manual, not its imagination.
RAG doesn’t make the model smarter — it makes the model honest.Grounding first, eloquence second.
02The comparison

Old school vs. new school#

Not a replacement — a complement with a completely different shape.

FeatureTraditional DB (SQL)Vector DB
Data typeStructured (rows, columns)Unstructured (embeddings)
Search logicExact match (keyword)Semantic similarity (context)
Result outputDeterministic (yes/no)Probabilistic (ranked score)
ScalabilityVertical (bigger server)Horizontal (sharding is native)
Primary useTransactions, CRM, accountingRAG, recommendations, image search
Feature radar
Semantic Exactness Scalability Flexibility Cost efficiency Two search philosophies — the shapes barely overlap. Illustrative.
Vector DBTraditional SQL

How to read this: keep SQL for the money and the records; add vectors for the meaning. Most real systems in 2026 run both — often inside the same Postgres.

👍 Strengths

  • Handles messy, real-world data — audio, video, documents.
  • Powers modern GenAI applications — RAG above all.
  • Multimodal search — search images with text.

👎 Weaknesses

  • Computationally expensive to index at scale.
  • Approximate results — not 100% exact, by design.
  • Younger ecosystem than 40-year-old SQL.
03Choosing

How I would choose#

The question is rarely “vector DB or SQL?” — it is “where does meaning live in my product, and who owns it?”

1
Start with pgvector if you already run Postgres.

One less system to operate; upgrade path stays open.

2
Go dedicated when vectors are the product.

Billions of embeddings, strict SLAs, multimodal — that’s the dedicated tier.

3
Ground every LLM feature with retrieval.

If it answers about your data, it should cite your data.

4
Measure recall, not vibes.

Approximate search means you must test what the index actually finds.

The mental model: SQL remembers facts; vector databases remember meaning. The winning systems of this decade keep both kinds of memory — and know exactly which one they are consulting.

04Grounding

Sources#

The charts are illustrative; the claims underneath them are not. Every load-bearing idea traces to one of these.

  1. IDC (2023). “90% of Your Data Is Unstructured, and It’s Full of Untapped Value.” IDC White Paper #US51128223. The analyst estimate behind the “roughly 80%” figure — IDC has projected that ~80% of worldwide data will be unstructured by 2025. idc.com — white paper US51128223
  2. Mikolov, T., Sutskever, I., Chen, K., Corrado, G., & Dean, J. (2013). “Distributed Representations of Words and Phrases and their Compositionality.” NeurIPS 2013. The word2vec paper that made vector arithmetic famous — the King − Man + Woman ≈ Queen example lives here. arxiv.org/abs/1310.4546
  3. Malkov, Y. A., & Yashunin, D. A. (2016). “Efficient and Robust Approximate Nearest Neighbor Search Using Hierarchical Navigable Small World Graphs.” (Later in IEEE TPAMI, 42(4), 824–836, 2020.) The HNSW index — the “highway system” behind the latency chart. arxiv.org/abs/1603.09320
  4. Johnson, J., Douze, M., & Jégou, H. (2017). “Billion-scale Similarity Search with GPUs.” IEEE Transactions on Big Data, 7(3), 535–547. The FAISS paper — billion-vector search made economically practical. arxiv.org/abs/1702.08734
  5. Douze, M., et al. (2024). “The Faiss Library.” The current reference for the library that most vector products build on. arxiv.org/abs/2401.08281
  6. Lewis, P., et al. (2020). “Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks.” NeurIPS 2020. The paper that named RAG — the killer app in the first section. arxiv.org/abs/2005.11401
  7. pgvector. Open-source vector similarity search for Postgres — the “start with what you already run” recommendation in the Choosing section. github.com/pgvector/pgvector
Keywords find words. Vectors find ideas.
Part of Ali’s Tech Deep Dives · Updated 6 August 2026. Charts are illustrative.
Ali Reza Rashidi
Ali Reza Rashidi
Ali Reza Rashidi, a Senior Data Scientist-Gen Al | Al Architect | MLOps with over ten years of experience, He is the author of three books that delve into the world of data and management.

Leave a Reply

Your email address will not be published. Required fields are marked *

error: Content is protected!