Vectors and Embeddings
Explore an embedding map, click a document to see its neighbors, and find the faucet answer without sharing a single keyword.
The stumper
how do I fix a leaky tap should find repairing a dripping faucet, but BM25 shares no words.
Keyword search assumes that people use the same words as documents. They often do not. They paraphrase, use synonyms, and describe intent instead of vocabulary.
Embeddings turn text into vectors. Similar meanings land near each other, so a query about a leaky tap can find a document about a dripping faucet even when the words differ.
The tradeoff is that embeddings are less precise about exact codes and names. They also introduce model, dimension, cost, and evaluation choices that keyword search never had.
Try it before you read on
Open the Lab tab. Change a parameter, break something, and form a hypothesis before reading the explanation.
Checkpoint
3 questions. Explanations appear after submission.
1. What does an embedding represent?
2. Which query is most likely to favor vector search over BM25?
3. What does cosine similarity measure?