← All questions
Retrieval & EmbeddingsEasy· BM25· Vocabulary Mismatch· Doc2Query

How do you resolve a search failure where BM25 returns...

When a document is absent from posting lists due to missing keywords, it is not a ranking issue but a coverage issue. Rather than jumping to a full architectural change like a vector database, which is a more expensive lever, you should expand the document’s indexed text at build time. This allows the existing BM25 infrastructure to find the document by matching the expanded terms.

Code playground (Python)