Skip to content

Commit 85597a4

Browse files
committed
fix: append results to paragraph_list instead of replacing it
1 parent daacbc3 commit 85597a4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

apps/application/flow/step_node/document_split_node/impl/base_document_split_node.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def execute(self, document_list, knowledge_id, split_strategy, paragraph_title_r
6464
document_name_relate_problem_reference
6565
)
6666

67-
paragraph_list = results
67+
paragraph_list += results
6868

6969
self.context['paragraph_list'] = paragraph_list
7070

@@ -135,6 +135,5 @@ def get_details(self, index: int, **kwargs):
135135
'type': self.node.type,
136136
'status': self.status,
137137
'err_message': self.err_message,
138-
'file_list': self.context.get('file_list'),
139138
'paragraph_list': self.context.get('paragraph_list', []),
140139
}

0 commit comments

Comments
 (0)