Skip to content

base_rerank_rag_module

BaseRerankRagModule

Bases: BaseRagModule, ABC

Source code in griptape/engines/rag/modules/retrieval/base_rerank_rag_module.py
@define(kw_only=True)
class BaseRerankRagModule(BaseRagModule, ABC):
    rerank_driver: BaseRerankDriver = field()

    @abstractmethod
    def run(self, context: RagContext) -> Sequence[BaseArtifact]: ...

rerank_driver: BaseRerankDriver = field() class-attribute instance-attribute

run(context) abstractmethod

Source code in griptape/engines/rag/modules/retrieval/base_rerank_rag_module.py
@abstractmethod
def run(self, context: RagContext) -> Sequence[BaseArtifact]: ...