瀏覽代碼

Fix:When sharing the knowledge base of multiple tenants with one person, when this person queries the knowledge base of both tenants, they will only query the question of the first person's knowledge base (#7500)

Fix:When sharing the knowledge base of multiple tenants with one person,
when this person queries the knowledge base of both tenants, they will
only query the question of the first person's knowledge base

Co-authored-by: 杜有强 <duyq@internal.ths.com.cn>
tags/v0.19.0
duramisu 5 月之前
父節點
當前提交
fa32a2d0fd
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. 2
    1
      api/apps/sdk/doc.py

+ 2
- 1
api/apps/sdk/doc.py 查看文件

@@ -1407,6 +1407,7 @@ def retrieval_test(tenant_id):
else:
highlight = True
try:
tenant_ids = list(set([kb.tenant_id for kb in kbs]))
e, kb = KnowledgebaseService.get_by_id(kb_ids[0])
if not e:
return get_error_data_result(message="Dataset not found!")
@@ -1423,7 +1424,7 @@ def retrieval_test(tenant_id):
ranks = settings.retrievaler.retrieval(
question,
embd_mdl,
kb.tenant_id,
tenant_ids,
kb_ids,
page,
size,

Loading…
取消
儲存