Skip to content

Commit a5a2744

Browse files
committed
fix: update problem_list population to use append for titles and document names
--bug=1064074 --user=刘瑞斌 【工作流知识库】高级分段时,文档名称、分段标题作为问题异常,被切割成单字问题了 https://www.tapd.cn/62980211/s/1806119
1 parent ce6b41d commit a5a2744

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,9 @@ def _generate_problem_list(
151151
problem_list.append(document_name)
152152
elif split_strategy == 'custom':
153153
if paragraph_title_relate_problem and paragraph.get('title'):
154-
problem_list.extend(paragraph.get('title'))
154+
problem_list.append(paragraph.get('title'))
155155
if document_name_relate_problem and document_name:
156-
problem_list.extend(document_name)
156+
problem_list.append(document_name)
157157
elif split_strategy == 'qa':
158158
if document_name_relate_problem and document_name:
159159
problem_list.append(document_name)

0 commit comments

Comments
 (0)