mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 03:32:23 +08:00
fix page content is empty
This commit is contained in:
parent
fbbba6db92
commit
53269506bf
|
@ -48,8 +48,9 @@ class ParagraphIndexProcessor(BaseIndexProcessor):
|
|||
page_content = page_content[1:]
|
||||
else:
|
||||
page_content = page_content
|
||||
document_node.page_content = page_content
|
||||
split_documents.append(document_node)
|
||||
if page_content:
|
||||
document_node.page_content = page_content
|
||||
split_documents.append(document_node)
|
||||
all_documents.extend(split_documents)
|
||||
return all_documents
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user