fix: 知识库检索直接响应数据错误

This commit is contained in:
shaohuzhang1 2024-06-25 17:13:47 +08:00
parent 5d08349dab
commit 1c43bb6beb

View File

@ -43,7 +43,7 @@ class BaseSearchDatasetNode(ISearchDatasetStepNode):
return NodeResult({'paragraph_list': result,
'is_hit_handling_method_list': [row for row in result if row.get('is_hit_handling_method')],
'data': '\n'.join([paragraph.get('content') for paragraph in paragraph_list]),
'directly_return': '\n'.join([paragraph.get('content') for paragraph in paragraph_list if
'directly_return': '\n'.join([paragraph.get('content') for paragraph in result if
paragraph.get('is_hit_handling_method')]),
'question': question},