Retrievers¶
Base Retriever
BaseRetriever
¶
Bases: BaseModel
, ABC
Base Retriever Class.
Source code in src/fed_rag/base/retriever.py
encoder
abstractmethod
property
¶
PyTorch model associated with the encoder associated with retriever.
query_encoder
abstractmethod
property
¶
PyTorch model associated with the query encoder associated with retriever.
context_encoder
abstractmethod
property
¶
PyTorch model associated with the context encoder associated with retriever.