← All questions
Retrieval & EmbeddingsEasy· Boolean Retrieval· Ranking· Search Systems

Why does a search system need a ranking layer bolted on...

Boolean retrieval either matches a document or it does not. If you use conjunctions, the answer set size shrinks geometrically, often approaching zero. If you use disjunctions, the answer set can become massive, containing millions of documents. Ranking is not a luxury; it is a necessity because a set has no first element, and without ranking, the user is left with an unusable list of results.

Code playground (Python)