Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

fix connection bug for zilliz uri on milvus (#3278)

chyezh65b6c2706e1d
diff --git a/autogpt/memory/milvus.py b/autogpt/memory/milvus.py
index 085f50b4bf..41f9ed1309 100644
--- a/autogpt/memory/milvus.py
+++ b/autogpt/memory/milvus.py
@@ -61,13 +61,13 @@ class MilvusMemory(MemoryProviderSingleton):
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."""