Skip to content

text_chunks_response_rag_module

TextChunksResponseRagModule

Bases: BaseResponseRagModule

Source code in griptape/engines/rag/modules/response/text_chunks_response_rag_module.py
@define(kw_only=True)
class TextChunksResponseRagModule(BaseResponseRagModule):
    def run(self, context: RagContext) -> BaseArtifact:
        return ListArtifact(context.text_chunks)

run(context)

Source code in griptape/engines/rag/modules/response/text_chunks_response_rag_module.py
def run(self, context: RagContext) -> BaseArtifact:
    return ListArtifact(context.text_chunks)