S
Sonny
Text
Ranking Documents with BM25 Lexical Search — Building with the Claude API
Score documents by term frequency and rarity to match exact words, identifiers, and rare tokens that a semantic embedding blurs away. Taught in the course “Building with the Claude API” (https://anth…