mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08:00
fix milvus database name parameter missed (#3229)
This commit is contained in:
parent
9c01bcb3e5
commit
8fcf459285
|
@ -130,7 +130,8 @@ class MilvusVector(BaseVector):
|
||||||
uri = "https://" + str(self._client_config.host) + ":" + str(self._client_config.port)
|
uri = "https://" + str(self._client_config.host) + ":" + str(self._client_config.port)
|
||||||
else:
|
else:
|
||||||
uri = "http://" + str(self._client_config.host) + ":" + str(self._client_config.port)
|
uri = "http://" + str(self._client_config.host) + ":" + str(self._client_config.port)
|
||||||
connections.connect(alias=alias, uri=uri, user=self._client_config.user, password=self._client_config.password)
|
connections.connect(alias=alias, uri=uri, user=self._client_config.user, password=self._client_config.password,
|
||||||
|
db_name=self._client_config.database)
|
||||||
|
|
||||||
from pymilvus import utility
|
from pymilvus import utility
|
||||||
if utility.has_collection(self._collection_name, using=alias):
|
if utility.has_collection(self._collection_name, using=alias):
|
||||||
|
@ -142,7 +143,8 @@ class MilvusVector(BaseVector):
|
||||||
uri = "https://" + str(self._client_config.host) + ":" + str(self._client_config.port)
|
uri = "https://" + str(self._client_config.host) + ":" + str(self._client_config.port)
|
||||||
else:
|
else:
|
||||||
uri = "http://" + str(self._client_config.host) + ":" + str(self._client_config.port)
|
uri = "http://" + str(self._client_config.host) + ":" + str(self._client_config.port)
|
||||||
connections.connect(alias=alias, uri=uri, user=self._client_config.user, password=self._client_config.password)
|
connections.connect(alias=alias, uri=uri, user=self._client_config.user, password=self._client_config.password,
|
||||||
|
db_name=self._client_config.database)
|
||||||
|
|
||||||
from pymilvus import utility
|
from pymilvus import utility
|
||||||
if not utility.has_collection(self._collection_name, using=alias):
|
if not utility.has_collection(self._collection_name, using=alias):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user