fix for Azure AI and version bump -> 0.1.76 (#2438)
This commit is contained in:
@@ -87,7 +87,9 @@ class AzureAISearch(VectorStoreBase):
|
|||||||
self.search_client._client._config.user_agent_policy.add_user_agent("mem0")
|
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.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):
|
def create_col(self):
|
||||||
"""Create a new index in Azure AI Search."""
|
"""Create a new index in Azure AI Search."""
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "mem0ai"
|
name = "mem0ai"
|
||||||
version = "0.1.75"
|
version = "0.1.76"
|
||||||
description = "Long-term memory for AI Agents"
|
description = "Long-term memory for AI Agents"
|
||||||
authors = ["Mem0 <founders@mem0.ai>"]
|
authors = ["Mem0 <founders@mem0.ai>"]
|
||||||
exclude = [
|
exclude = [
|
||||||
|
|||||||
Reference in New Issue
Block a user