From dcc8c96c42809429aeeac19c07c31547ebab98ad Mon Sep 17 00:00:00 2001 From: hajdul88 <52442977+hajdul88@users.noreply.github.com> Date: Tue, 12 Nov 2024 11:50:19 +0100 Subject: [PATCH] fix: Fixes the consecutive DocumentChunk false text --- cognee/modules/chunking/TextChunker.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cognee/modules/chunking/TextChunker.py b/cognee/modules/chunking/TextChunker.py index 714383804..f9a222904 100644 --- a/cognee/modules/chunking/TextChunker.py +++ b/cognee/modules/chunking/TextChunker.py @@ -17,6 +17,7 @@ class TextChunker(): self.get_text = get_text def read(self): + self.paragraph_chunks = [] for content_text in self.get_text(): for chunk_data in chunk_by_paragraph( content_text,