From a5a27445d66c25bc09fa27fb439f3489bfa481e4 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Fri, 5 Dec 2025 10:56:37 +0800 Subject: [PATCH] fix: update problem_list population to use append for titles and document names MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1064074 --user=刘瑞斌 【工作流知识库】高级分段时,文档名称、分段标题作为问题异常,被切割成单字问题了 https://www.tapd.cn/62980211/s/1806119 --- .../document_split_node/impl/base_document_split_node.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/application/flow/step_node/document_split_node/impl/base_document_split_node.py b/apps/application/flow/step_node/document_split_node/impl/base_document_split_node.py index 508a1986e..80b32f80b 100644 --- a/apps/application/flow/step_node/document_split_node/impl/base_document_split_node.py +++ b/apps/application/flow/step_node/document_split_node/impl/base_document_split_node.py @@ -151,9 +151,9 @@ class BaseDocumentSplitNode(IDocumentSplitNode): problem_list.append(document_name) elif split_strategy == 'custom': if paragraph_title_relate_problem and paragraph.get('title'): - problem_list.extend(paragraph.get('title')) + problem_list.append(paragraph.get('title')) if document_name_relate_problem and document_name: - problem_list.extend(document_name) + problem_list.append(document_name) elif split_strategy == 'qa': if document_name_relate_problem and document_name: problem_list.append(document_name)