From 9cb2a13f3b977832eb13a28212e2aa804f3ba631 Mon Sep 17 00:00:00 2001 From: Dev Khant Date: Tue, 25 Mar 2025 18:10:36 +0530 Subject: [PATCH] fix for Azure AI and version bump -> 0.1.76 (#2438) --- mem0/vector_stores/azure_ai_search.py | 4 +++- pyproject.toml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mem0/vector_stores/azure_ai_search.py b/mem0/vector_stores/azure_ai_search.py index 4207302c..99c53454 100644 --- a/mem0/vector_stores/azure_ai_search.py +++ b/mem0/vector_stores/azure_ai_search.py @@ -87,7 +87,9 @@ class AzureAISearch(VectorStoreBase): self.search_client._client._config.user_agent_policy.add_user_agent("mem0") self.index_client._client._config.user_agent_policy.add_user_agent("mem0") - self.create_col() # create the collection / index + collections = self.list_cols() + if collection_name not in collections: + self.create_col() def create_col(self): """Create a new index in Azure AI Search.""" diff --git a/pyproject.toml b/pyproject.toml index f476a3f0..90c77c61 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "mem0ai" -version = "0.1.75" +version = "0.1.76" description = "Long-term memory for AI Agents" authors = ["Mem0 "] exclude = [