Zenaique
Glossary · RAG

BM25

Also known as: Best Match 25, Okapi BM25

Classical TF-IDF-style lexical scoring: a surprisingly strong baseline, still the first stage of many hybrid RAG pipelines.

A bag-of-words ranking function used by traditional search engines. Scores documents by term-frequency × inverse-document-frequency with length normalization. Still the strongest non-neural baseline; commonly used as the first stage in hybrid RAG.

In practice

Ignore it and your dense retriever may underperform. Production interviews increasingly want hybrid (BM25 + dense) plus a reranker.

How it compares

BM25 matches on exact word overlap; embedding search matches on semantic meaning. Best results often combine both.

Related topics

Questions that mention this term

Related terms