fastrag.retrieval.bm25#
Lexical retrieval through the SDK’s LexicalStore contract.
Classes
|
Rank query terms with the store's BM25 implementation. |
- class fastrag.retrieval.bm25.BM25Retriever(*, store, filter=None)[source]#
Bases:
RetrieverRank query terms with the store’s BM25 implementation.
storeis anyLexicalStore: the same open vector store a siblingVectorRetrieversearches, when the backend supports both, or a separate lexical database when it does not.- Parameters:
store (LexicalStore)
filter (str | None)