Skip to content

text_chunks_rerank_rag_module

TextChunksRerankRagModule

Bases: BaseRerankRagModule

Source code in griptape/engines/rag/modules/retrieval/text_chunks_rerank_rag_module.py
@define(kw_only=True)
class TextChunksRerankRagModule(BaseRerankRagModule):
    def run(self, context: RagContext) -> Sequence[BaseArtifact]:
        return self.rerank_driver.run(context.query, context.text_chunks)

run(context)

Source code in griptape/engines/rag/modules/retrieval/text_chunks_rerank_rag_module.py
def run(self, context: RagContext) -> Sequence[BaseArtifact]:
    return self.rerank_driver.run(context.query, context.text_chunks)