mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +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:]
|
page_content = page_content[1:]
|
||||||
else:
|
else:
|
||||||
page_content = page_content
|
page_content = page_content
|
||||||
document_node.page_content = page_content
|
if page_content:
|
||||||
split_documents.append(document_node)
|
document_node.page_content = page_content
|
||||||
|
split_documents.append(document_node)
|
||||||
all_documents.extend(split_documents)
|
all_documents.extend(split_documents)
|
||||||
return all_documents
|
return all_documents
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user