Skip to content

Commit a4f0659

Browse files
author
Andrew Zhai
committed
use new milvus connection type
1 parent c82314a commit a4f0659

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

docarray/index/backends/milvus.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,7 @@ def __init__(self, db_config=None, **kwargs):
8686

8787
self._client = connections.connect(
8888
db_name="default",
89-
host=self._db_config.host,
90-
port=self._db_config.port,
91-
user=self._db_config.user,
92-
password=self._db_config.password,
89+
uri=self._db_config.uri,
9390
token=self._db_config.token,
9491
)
9592

@@ -122,10 +119,7 @@ class DBConfig(BaseDocIndex.DBConfig):
122119

123120
index_name: Optional[str] = None
124121
collection_description: str = ""
125-
host: str = "localhost"
126-
port: int = 19530
127-
user: Optional[str] = ""
128-
password: Optional[str] = ""
122+
uri: str = ""
129123
token: Optional[str] = ""
130124
consistency_level: str = 'Session'
131125
search_params: Dict = field(

0 commit comments

Comments
 (0)