Skip to content

Commit 9cb2a13

Browse files
authored
fix for Azure AI and version bump -> 0.1.76 (#2438)
1 parent 5ec7889 commit 9cb2a13

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

mem0/vector_stores/azure_ai_search.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ def __init__(
8787
self.search_client._client._config.user_agent_policy.add_user_agent("mem0")
8888
self.index_client._client._config.user_agent_policy.add_user_agent("mem0")
8989

90-
self.create_col() # create the collection / index
90+
collections = self.list_cols()
91+
if collection_name not in collections:
92+
self.create_col()
9193

9294
def create_col(self):
9395
"""Create a new index in Azure AI Search."""

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "mem0ai"
3-
version = "0.1.75"
3+
version = "0.1.76"
44
description = "Long-term memory for AI Agents"
55
authors = ["Mem0 <[email protected]>"]
66
exclude = [

0 commit comments

Comments
 (0)