fastrag.lexical_store#
fastrag.lexical_store — the read contract for BM25 relevance search.
Re-exports LexicalStore. It is a
capability, not a storage family: a vector store that can also rank text
(MilvusVectorStore,
OpenSearchVectorStore) implements it
alongside VectorStore, while a vector
store that cannot (ChromaVectorStore)
simply does not, and lexical retrieval is served from a separate database
instead.
- class fastrag.lexical_store.LexicalStore[source]#
Bases:
ABCStorage able to rank its documents’ text against a query with BM25.
Opened and closed by the caller, like a vector store — a retriever holds an already-open one and never manages its lifecycle.
Modules
The |