From 68905036894648b254b663256f577f9d5d94274c Mon Sep 17 00:00:00 2001 From: shaohuzhang1 Date: Tue, 29 Oct 2024 17:46:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E3=80=90=E5=BA=94?= =?UTF-8?q?=E7=94=A8=E7=BC=96=E6=8E=92=E3=80=91=E7=9F=A5=E8=AF=86=E5=BA=93?= =?UTF-8?q?=E6=A3=80=E7=B4=A2=E8=8A=82=E7=82=B9=20=E6=9C=80=E5=A4=A7?= =?UTF-8?q?=E5=BA=94=E7=94=A8=E5=AD=97=E7=AC=A6=E6=95=B0=20=E4=B8=8D?= =?UTF-8?q?=E7=94=9F=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../search_dataset_node/impl/base_search_dataset_node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/application/flow/step_node/search_dataset_node/impl/base_search_dataset_node.py b/apps/application/flow/step_node/search_dataset_node/impl/base_search_dataset_node.py index 6f778c454..fcd1dbdff 100644 --- a/apps/application/flow/step_node/search_dataset_node/impl/base_search_dataset_node.py +++ b/apps/application/flow/step_node/search_dataset_node/impl/base_search_dataset_node.py @@ -64,7 +64,7 @@ class BaseSearchDatasetNode(ISearchDatasetStepNode): 'is_hit_handling_method_list': [row for row in result if row.get('is_hit_handling_method')], 'data': '\n'.join( [f"{paragraph.get('title', '')}:{paragraph.get('content')}" for paragraph in - paragraph_list]), + paragraph_list])[0:dataset_setting.get('max_paragraph_char_number', 5000)], 'directly_return': '\n'.join( [f"{paragraph.get('title', '')}:{paragraph.get('content')}" for paragraph in result if paragraph.get('is_hit_handling_method')]),