Skip to content

Commit 6890503

Browse files
committed
fix: 修复【应用编排】知识库检索节点 最大应用字符数 不生效
1 parent e68e587 commit 6890503

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/application/flow/step_node/search_dataset_node/impl/base_search_dataset_node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def execute(self, dataset_id_list, dataset_setting, question,
6464
'is_hit_handling_method_list': [row for row in result if row.get('is_hit_handling_method')],
6565
'data': '\n'.join(
6666
[f"{paragraph.get('title', '')}:{paragraph.get('content')}" for paragraph in
67-
paragraph_list]),
67+
paragraph_list])[0:dataset_setting.get('max_paragraph_char_number', 5000)],
6868
'directly_return': '\n'.join(
6969
[f"{paragraph.get('title', '')}:{paragraph.get('content')}" for paragraph in result if
7070
paragraph.get('is_hit_handling_method')]),

0 commit comments

Comments
 (0)