What does BM25 primarily rank documents by?
- The semantic similarity of dense sentence embeddings
- The order in which documents were added to the index
- The number of hyperlinks pointing to each document
- Term-frequency and inverse-document-frequency of the query's words
Why
BM25 is a lexical scoring function over term frequency and IDF (with length normalization), rewarding documents that contain the query's rare, informative terms. It is not an embedding method, insertion-order, or a link-graph score like PageRank.