We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ec7889 commit 9cb2a13Copy full SHA for 9cb2a13
mem0/vector_stores/azure_ai_search.py
@@ -87,7 +87,9 @@ def __init__(
87
self.search_client._client._config.user_agent_policy.add_user_agent("mem0")
88
self.index_client._client._config.user_agent_policy.add_user_agent("mem0")
89
90
- self.create_col() # create the collection / index
+ collections = self.list_cols()
91
+ if collection_name not in collections:
92
+ self.create_col()
93
94
def create_col(self):
95
"""Create a new index in Azure AI Search."""
pyproject.toml
@@ -1,6 +1,6 @@
1
[tool.poetry]
2
name = "mem0ai"
3
-version = "0.1.75"
+version = "0.1.76"
4
description = "Long-term memory for AI Agents"
5
authors = ["Mem0 <[email protected]>"]
6
exclude = [
0 commit comments