Update cognee/tasks/chunks/chunk_by_paragraph.py

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
0xideas 2024-11-14 14:42:15 +01:00 committed by GitHub
parent 73f24f9e4d
commit 8b681529b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -65,7 +65,7 @@ def chunk_by_paragraph(data: str, paragraph_length: int = 1024, batch_paragraphs
"text": current_chunk,
"word_count": current_word_count,
"chunk_id": uuid5(NAMESPACE_OID, current_chunk),
"paragrapg_ids": paragraph_ids,
"paragraph_ids": paragraph_ids,
"chunk_index": chunk_index,
"cut_type": last_cut_type
}