Skip to content

armgit / mem0

Public Imported from GitHub
0

The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.

fix(opensearch): update logger warning (#2999)

Akarsha Sehwag1fa0f0a157ba
diff --git a/mem0/vector_stores/opensearch.py b/mem0/vector_stores/opensearch.py
index b3ddff82a..211970fc3 100644
--- a/mem0/vector_stores/opensearch.py
+++ b/mem0/vector_stores/opensearch.py
@@ -83,8 +83,8 @@ class OpenSearchDB(VectorStoreBase):
},
}
- logger.warning(f"Creating index {name}, it might take 1-2 minutes...")
if not self.client.indices.exists(index=name):
+ logger.warning(f"Creating index {name}, it might take 1-2 minutes...")
self.client.indices.create(index=name, body=index_settings)
# Wait for index to be ready