BM25
BM25 (Best Match 25) is a classic ranking algorithm widely used in information retrieval, belonging to the probabilistic retrieval model family. It calculates relevance scores between query terms and documents based on factors including term frequency (TF), inverse document frequency (IDF), and document length normalization, and is used to rank search results. BM25 is recognized for its robust keyword matching capability, commonly serves as a baseline algorithm for text retrieval systems, and can be combined with semantic retrieval methods.
Core Facts
The re-ranking mechanism introduces a Cross-Encoder after the initial retrieval to re-score candidate documents, improving the quality of the context fed into the large model.
Hybrid retrieval, which fuses BM25 keyword scores with vector similarity scores through weighted combination (typically using the RRF reciprocal rank fusion algorithm), has become the mainstream paradigm for RAG systems.
BM25 is a classic information retrieval algorithm based on term frequency statistics (an improved version of TF-IDF) and belongs to sparse retrieval methods.
Timeline (last 90 days)
The lexical expansion route has boundaries: BM25 is less robust than dense retrieval to paraphrasing and cross-lingual expressions, the accuracy of the evidence evaluator affects the quality of the second retrieval, and coverage currently spans only two benchmarks, so performance in more open and noisy real-world scenarios still needs verification.
SAG-Mem's retrieval pipeline has three steps: BM25 recall of initial candidates, an evidence evaluator filtering useful chunks, and a second retrieval driven by lexical cues.
This study builds an English–Marathi bilingual search system for Maharashtra government schemes, using a hybrid of BM25 and sentence-embedding similarity.
MahaSBERT's fusion scheme raises precision from 0.781 to 0.808 while keeping recall on par with BM25 at 0.946.
In government documents, where domain terminology is relatively standardized, BM25's lexical matching remains a reliable starting point.
Hybrid retrieval raises MRR to 0.872 (IndicSBERT) and 0.879 (MahaSBERT), whereas pure dense retrieval achieves MRR of only 0.663 and 0.655.
On a manually curated bilingual query set, BM25 serves as a strong baseline, achieving a mean reciprocal rank (MRR) of 0.864.
Lexical retrieval is based on sparse retrieval algorithms such as BM25 and TF-IDF, whose limitation lies in the difficulty of handling synonymous rewrites and cross-lingual queries, with recall on natural language questions typically lower than that of dense retrieval.
BRIDGE is a minimal RAG memory system consisting of chained observation notes, hybrid retrieval combining BM25 and cosine similarity, and chronological rendering, consuming about 5-7K reader prompt tokens per query and requiring only one LLM call per ingestion or query.
MeReader adopts a hybrid retrieval architecture combining three retrieval methods: vector similarity, BM25 and summary embeddings.
40 more timeline events
All Facts (20)
The re-ranking mechanism introduces a Cross-Encoder after the initial retrieval to re-score candidate documents, improving the quality of the context fed into the large model.
90%VerifiedHybrid retrieval, which fuses BM25 keyword scores with vector similarity scores through weighted combination (typically using the RRF reciprocal rank fusion algorithm), has become the mainstream paradigm for RAG systems.
90%VerifiedBM25 is a classic information retrieval algorithm based on term frequency statistics (an improved version of TF-IDF) and belongs to sparse retrieval methods.
90%VerifiedHybrid Search combines the results of vector retrieval and BM25 keyword retrieval through algorithms such as RRF (Reciprocal Rank Fusion), balancing semantic understanding with exact matching.
90%VerifiedBM25 and TF-IDF are classic representatives of lexical retrieval, based on literal keyword matching and term frequency statistics.
85%VerifiedHybrid Search combines Dense Retrieval with sparse retrieval (BM25).
80%VerifiedBM25 (Best Matching 25) is a probabilistic ranking algorithm proposed by Stephen Robertson and others in the 1990s, scoring relevance based on three factors: term frequency, inverse document frequency, and document length normalization.
80%VerifiedBM25 is a classic keyword retrieval algorithm based on term frequency statistics, which is complementary to vector retrieval.
80%VerifiedHybrid search runs dense vector search and classic keyword search (BM25) simultaneously, and typically uses Reciprocal Rank Fusion to merge the results, with the fusion formula summing 1 / (k + rank) over each document's rank in each list.
75%VerifiedHybrid retrieval (combining dense vector retrieval with BM25 sparse retrieval) performs better than either method alone on most benchmarks.
75%VerifiedBM25 remains the default ranking algorithm for mainstream search engines such as Elasticsearch and Lucene.
75%VerifiedThe core mechanism of BM25 is based on three factors: term frequency (TF), inverse document frequency (IDF), and document length normalization, with parameter k1 typically set between 1.2 and 2.0 and b typically set at 0.75.
70%VerifiedHybrid retrieval combines BM25 sparse retrieval with dense vector retrieval, merging ranking results via RRF or linear weighting.
70%VerifiedIn actual production, hybrid retrieval combining both vector similarity and keyword matching is typically used.
70%VerifiedBM25 is a bag-of-words model that focuses only on term frequency without understanding word order or semantics, but is more reliable for exact term matching and does not suffer from the semantic drift problem of vector retrieval.
65%VerifiedHybrid Search combines dense vector semantic similarity with BM25 sparse keyword matching, with results from both paths re-ranked by a Re-Ranker model before being injected into the LLM context.
65%VerifiedBM25 is more stable and reliable than vector retrieval in exact lexical matching scenarios (such as product model numbers, proper nouns, and contract clause numbers)
65%UnverifiedTraditional search systems mostly rely on statistical algorithms like TF-IDF or BM25 that rank results by term frequency and uniqueness in documents
90%UnverifiedContext Mode使用BM25算法检索相关内容,生成不超过2KB的Session Guide
85%UnverifiedHybrid retrieval combining vector similarity and keyword-based BM25 can significantly improve recall accuracy.
70%