Skip to content

Commit

Permalink
feat: 去除工作流直接返回内容的标题数据
Browse files Browse the repository at this point in the history
  • Loading branch information
shaohuzhang1 committed Nov 7, 2024
1 parent 33d8895 commit 9a66044
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def execute(self, dataset_id_list, dataset_setting, question,
[f"{reset_title(paragraph.get('title', ''))}{paragraph.get('content')}" for paragraph in
paragraph_list])[0:dataset_setting.get('max_paragraph_char_number', 5000)],
'directly_return': '\n'.join(
[f"{reset_title(paragraph.get('title', ''))}{paragraph.get('content')}" for paragraph in
[paragraph.get('content') for paragraph in
result if
paragraph.get('is_hit_handling_method')]),
'question': question},
Expand Down

0 comments on commit 9a66044

Please sign in to comment.