What it is
Every passage becomes a vector once, and a query becomes one more
The two halves of the work happen at different times. Embedding your documents is a batch job you run once and repeat only when the content changes. Embedding the query happens on every search, and it is one model call over a short piece of text.
Comparing is the cheap part. Both vectors get scaled to length 1, and the comparison is a dot product, which for unit-length vectors is the cosine of the angle between them. A modern vector database does that against millions of stored vectors in milliseconds, using an index that skips most of the comparisons.

Look at what the top hit is. The model put a YOLO passage about fine-tuning on labelled images above the BERT passage that answers the question, because both are about training on your own labels and the model has no way to know which kind of labels were meant. That near miss is the normal failure of this stage, and the rerankers article measures how much of it a second stage recovers.
Keep reading
The rest of this article is free with an account
Create a free account to read the remaining 6 sections. It takes about twenty seconds and there's nothing to pay. The same account opens the slide decks and CV reviews.
- 02Where embeddings show up
- 03How the model produces one vector, and what the number of dimensions costs
- 04The models you'll see, as of September 2026
- 05Which model to pick, and when an embedding is the wrong tool
- 06How to try it
- and 1 more
