Skip to content

Commit

Permalink
fix: Fixes the consecutive DocumentChunk false text
Browse files Browse the repository at this point in the history
  • Loading branch information
hajdul88 committed Nov 12, 2024
1 parent e988a67 commit dcc8c96
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cognee/modules/chunking/TextChunker.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def __init__(self, document, get_text: callable, chunk_size: int = 1024):
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,
Expand Down

0 comments on commit dcc8c96

Please sign in to comment.