BM25 scores documents by how often query terms appear (term frequency with saturation), how rare the terms are across the corpus (inverse document frequency), and normalizes for document length; it needs exact word matches, is fast, interpretable, and excellent for names, IDs and error codes.
Semantic (dense) retrieval matches meaning through embeddings, handling paraphrases and conceptual queries, but can miss exact tokens and is harder to explain.
Neither dominates, which is why production systems usually combine them.
Loading…