mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: 知识库检索直接响应数据错误
This commit is contained in:
parent
5d08349dab
commit
1c43bb6beb
|
|
@ -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},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue