|
@@ -271,7 +271,13 @@ class KbmService:
|
|
try:
|
|
try:
|
|
# 清理milvus
|
|
# 清理milvus
|
|
# 连接到 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()
|
|
kmb = Knowledgebase.objects.filter(id=kb_id).first()
|
|
collection = Collection(kmb.location)
|
|
collection = Collection(kmb.location)
|