Browse Source

医药,增加关闭流

cxd 10 months ago
parent
commit
a21819581c
1 changed files with 7 additions and 1 deletions
  1. 7 1
      backend/Service/KbmService.py

+ 7 - 1
backend/Service/KbmService.py

@@ -271,7 +271,13 @@ class KbmService:
         try:
             # 清理milvus
             # 连接到 Milvus
-            connections.connect("default", host=MILVUS_HOST, port=MILVUS_PORT)
+            connections.connect(
+                "default",
+                host=MILVUS_HOST,
+                port=MILVUS_PORT,
+                user=MILVUS_USER,
+                password=MILVUS_PASSWORD
+            )
 
             kmb = Knowledgebase.objects.filter(id=kb_id).first()
             collection = Collection(kmb.location)