§6 Learn · a course
Thinking in Vectors
From "what is a vector?" to shipping retrieval over a hundred million documents.
About this book — who it is for, and how to read it
From "what is a vector?" to shipping retrieval over a hundred million chunks.
This is a book written as a series of blog posts.
There are sixty-six chapters. Most are a 10–15 minute read, and each one can stand alone. They are arranged so that if you start at Chapter 1 knowing nothing and finish at Chapter 66, you will understand modern vector search the way a practitioner does: not as a list of library names, but as a small set of ideas that fit together.
You will not find "and then the magic happens" anywhere in here. Every idea is built from something you already understand. It is explained with an everyday example, and then pushed until the example breaks. Knowing where the example breaks is what separates someone who has read about vectors from someone who can fix a broken search system at 2 a.m.
Who this is for
The novice. You have heard "embeddings" and "vector database" and nodded along. You do not know what a dot product is, or you knew once and it has gone. Start at Chapter 1 and skip nothing. Every term is defined the first time it appears, and every formula comes with plain words and a small worked example you can check with a calculator.
The builder. You have shipped a RAG prototype. It demos well, fails in production, and you do not know why. Start at Chapter 17, read Chapters 40–41 (hybrid search and rerankers), then Part VII (RAG) and Part VIII (Scale). Come back to Parts II and IV when something breaks.
The ninja-in-training. You know HNSW and you have tuned efSearch. You want ColBERT, ColPali, MUVERA, learned sparse retrieval, and the honest economics of billion-scale systems. Read Parts V, VI, VIII and IX.
The cast
This book explains its ideas with five characters and one running example. Meet them once, in Chapter 1, and every later chapter gets easier.
| Character | What it really is | First appears |
|---|---|---|
| The Great Library | Your corpus, every document you want to search | Ch. 1 |
| The Map Room | The embedding space, where meaning becomes location | Ch. 1 |
| The Card Catalog | The index, the structure that makes search fast | Ch. 1 |
| The Librarian | The retriever, which fetches candidates | Ch. 1 |
| The Scholar | The LLM, which reads what the Librarian brings and answers | Ch. 1 |
The running example is Acme's support knowledge base: 40,000 pages of help articles, pricing pages, release notes and scanned contracts. We keep asking it one question:
"Does the Pro plan include single sign-on?"
The answer is split across two pages. That is exactly the kind of question that breaks naive retrieval. We watch it fail in many different ways, and fix it one chapter at a time.
Globex, one of Acme's largest customers, first appears in Chapter 33 and returns in many chapters of Parts VI–IX. It has been on Pro with 120 seats since June 2026 (previously Basic with 30), and its scanned contract sits on pages 3,507–3,508.
The whole book, in one sentence: we teach a Librarian to find the right books in a Library too big to read, by giving every book a place in a Map Room and building a Card Catalog over those places, so that the Scholar can answer from the right pages.
How every chapter works
- "The one-paragraph version" opens every chapter. If that paragraph is all you need, close the tab. No hard feelings.
- "We will cover the following" comes next, so you always know where you are.
- The teaching sections follow one rhythm: what the idea is, why we need it, how it works step by step, a worked example where the old way gets the answer wrong and the new way gets it right, and when to use it.
- "Under the hood" has the code. It is Python with NumPy, written to be read, not pasted. Where a real library matters, it is named.
- "What people get wrong" exists because the fastest way to learn a field is to inherit other people's scar tissue.
- "Ninja notes" are the parts that only matter once you have real traffic. Novices can skip them on the first pass and should come back on the second.
- "Key takeaways" and "What's next" close every chapter. Read only those and you still get a correct, shallow map of the whole book.
- Maths appears, but never without a plain-English translation and a small worked example right beside it. Skip every equation and you will still finish the book understanding vector search. The equations are there to make that understanding precise.
Note: Two chapters skip parts of this template on purpose. Chapter 65 is an essay about where the field is heading. Chapter 66 is a reference: the book's key decision trees, formulas and defaults in one place.