Sparse Retrieval
What is Sparse Retrieval?
In one sentence: Sparse retrieval finds documents by matching words, using long lists that are mostly zeros except for the words present.
Each document is represented by which words it contains and how important they are. Most entries are zero, so it is "sparse." BM25 is the classic example.
What does Sparse Retrieval look like?
A search for "solar panel cost" finds pages that actually contain those words.
Why does Sparse Retrieval matter?
Sparse retrieval is fast, exact and great for names and rare terms.
Sparse Retrieval vs. Dense Retrieval
Dense retrieval matches meaning using neural embedding vectors, while sparse retrieval (like BM25) matches exact words and rare identifiers—which is why Hybrid Search combines both.
| Dimension | Sparse Retrieval | Dense Retrieval |
|---|---|---|
| Matches on | Exact keywords, error codes, SKUs, names | Conceptual meaning and synonyms |
| Representation | Sparse word-weight index (BM25 / SPLADE) | Compact float vector (e.g., 768–1,536 dims) |
| Blind spot | Misses paraphrases that use different words | Can blur exact product IDs or numbers |
Last updated · Fact-checked by The AI Math
Linking to this page from a lesson or article? <a href="https://getaimath.com/dictionary/sparse-retrieval/">Sparse Retrieval, explained simply</a> (The AI Math Dictionary)