From afaba5c8cb0eac9dd87c8bd88aad0a88e867b26b Mon Sep 17 00:00:00 2001 From: Wenjie Zhang Date: Mon, 25 Aug 2025 02:26:50 +0800 Subject: [PATCH] =?UTF-8?q?fix(milvus=5Fkb):=20=E4=BF=AE=E6=AD=A3=E7=9B=B8?= =?UTF-8?q?=E4=BC=BC=E5=BA=A6=E8=AE=A1=E7=AE=97=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除未使用的auth_api导出并更新相关注释 --- src/knowledge/milvus_kb.py | 2 +- web/src/apis/index.js | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/knowledge/milvus_kb.py b/src/knowledge/milvus_kb.py index 5755bba9..fe1cba60 100644 --- a/src/knowledge/milvus_kb.py +++ b/src/knowledge/milvus_kb.py @@ -342,7 +342,7 @@ class MilvusKB(KnowledgeBase): retrieved_chunks = [] for hit in results[0]: - similarity = 1 - hit.distance if metric_type == "COSINE" else 1 / (1 + hit.distance) + similarity = hit.distance if metric_type == "COSINE" else 1 / (1 + hit.distance) if similarity < similarity_threshold: continue diff --git a/web/src/apis/index.js b/web/src/apis/index.js index c63e4866..df531e16 100644 --- a/web/src/apis/index.js +++ b/web/src/apis/index.js @@ -6,7 +6,6 @@ // 导出API模块 export * from './system_api' // 系统管理API export * from './knowledge_api' // 知识库管理API -export * from './auth_api' // 认证API export * from './graph_api' // 图谱API export * from './tools.js' // 工具API export * from './agent.js' // 智能体API @@ -27,8 +26,6 @@ export { apiGet, apiPost, apiPut, apiDelete, * - 数据库管理、文档管理、查询接口、文件管理 * - 权限要求: 管理员权限 * - * 3. auth_api.js: 认证API - * - 用户认证、用户管理 * * 4. graph_api.js: 图谱API * - 知识图谱相关功能