Skip to content

Glossary: RAG Basics

BM25

Also written: BM25Okapi, rank-bm25

A classic keyword-matching score that ranks chunks by how well their words match the query. It finds exact terms like `KC-ESP-5LB` that embeddings blur.

Where the book teaches it

Related terms

Hybrid searchReciprocal rank fusion (RRF)