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
0d762821f7
commit
989d0848c0
|
|
@ -79,7 +79,12 @@ class BaseSearchDatasetNode(ISearchDatasetStepNode):
|
|||
**paragraph,
|
||||
'similarity': find_embedding.get('similarity'),
|
||||
'is_hit_handling_method': find_embedding.get('similarity') > paragraph.get(
|
||||
'directly_return_similarity') and paragraph.get('hit_handling_method') == 'directly_return'
|
||||
'directly_return_similarity') and paragraph.get('hit_handling_method') == 'directly_return',
|
||||
'update_time': paragraph.get('update_time').strftime("%Y-%m-%d %H:%M:%S"),
|
||||
'create_time': paragraph.get('create_time').strftime("%Y-%m-%d %H:%M:%S"),
|
||||
'id': str(paragraph.get('id')),
|
||||
'dataset_id': str(paragraph.get('dataset_id')),
|
||||
'document_id': str(paragraph.get('document_id'))
|
||||
}
|
||||
|
||||
@staticmethod
|
||||
|
|
|
|||
|
|
@ -16,3 +16,5 @@ class AuthenticationType(Enum):
|
|||
APPLICATION_ACCESS_TOKEN = "APPLICATION_ACCESS_TOKEN"
|
||||
# key API
|
||||
API_KEY = "API_KEY"
|
||||
# 第三方对接
|
||||
PLATFORM = 'PLATFORM'
|
||||
|
|
|
|||
Loading…
Reference in New Issue