Okapi BM25 is a ranking function used by search engines to estimate the relevance of documents to a given search query. It is based on the probabilistic retrieval framework and improves upon TF-IDF by adding term frequency saturation and document length normalization.
Determines the context-augmented retrieval precision for keyword search engines, hybrid search systems, and initial candidate retrieval in rag; mastering BM25 allows builders to feed clean database sources to models, minimizing hallucinations.
Okapi BM25 is a classic, highly effective ranking algorithm used by search engines to estimate the relevance of a document to a given search query. Based on probabilistic information retrieval, BM25 improves upon simple TF-IDF by incorporating term frequency saturation (limiting the impact of a term appearing repeatedly in one document) and document length normalization (penalizing long documents that contain terms by chance).
It limits the impact of multiple term occurrences. If a keyword appears 20 times in a document, BM25 doesn't score it 20 times higher than if it appeared twice.
Because keyword search is highly precise for exact matches (like serial numbers or names) where semantic embeddings might fail due to lack of keyword specificity.
We currently have no direct coverage articles matching "BM25". Explore trending global AI topics below instead.