Simon Verwaal. Glossary

BM25

Best Matching 25

A ranking method that weighs term matches using frequency and document length.

BM25 is widely used to rank documents for a query. Its score considers factors including term frequency, how distinctive terms are across the collection and document length. Repeating a word indefinitely does not produce unlimited gains. For a knowledge base, BM25 provides a useful starting point, particularly for recognisable names and product codes. Compare it with vector search on real questions before choosing a more complex approach. It is a retrieval method, not a universal formula for predicting Google rankings or mechanically optimising website copy.

Related terms

Further reading

B ยท Back to all terms