Skip to content

Commit

Permalink
fix connection bug for zilliz uri on milvus (Significant-Gravitas#3278)
Browse files Browse the repository at this point in the history
Co-authored-by: Reinier van der Leer <[email protected]>
Co-authored-by: merwanehamadi <[email protected]>
  • Loading branch information
3 people authored Apr 27, 2023
1 parent 76bd192 commit 65b6c27
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions autogpt/memory/milvus.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ def configure(self, cfg: Config) -> None:
if self.uri.startswith("https"):
self.secure = True

# Zilliz Cloud requires AutoIndex.
if re.match(r"^https://(.*)\.zillizcloud\.(com|cn)", self.address) is not None:
self.index_params = {
"metric_type": "IP",
"index_type": "AUTOINDEX",
"params": {},
}
# Zilliz Cloud requires AutoIndex.
if re.match(r"^https://(.*)\.zillizcloud\.(com|cn)", self.uri) is not None:
self.index_params = {
"metric_type": "IP",
"index_type": "AUTOINDEX",
"params": {},
}

def init_collection(self) -> None:
"""Initialize collection in vector database."""
Expand Down

0 comments on commit 65b6c27

Please sign in to comment.