Skip to content

Commit

Permalink
fix: 修复【应用编排】知识库检索节点 最大应用字符数 不生效
Browse files Browse the repository at this point in the history
  • Loading branch information
shaohuzhang1 committed Oct 29, 2024
1 parent e68e587 commit 6890503
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def execute(self, dataset_id_list, dataset_setting, question,
'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')]),
Expand Down

0 comments on commit 6890503

Please sign in to comment.