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(weaviate): reset() crashes with missing vector_size argument (#5531)

Hrushikesh Yadave30f0d91feac
diff --git a/mem0/vector_stores/weaviate.py b/mem0/vector_stores/weaviate.py
index e3c71742e..038528db6 100644
--- a/mem0/vector_stores/weaviate.py
+++ b/mem0/vector_stores/weaviate.py
@@ -388,4 +388,4 @@ class Weaviate(VectorStoreBase):
"""Reset the index by deleting and recreating it."""
logger.warning(f"Resetting index {self.collection_name}...")
self.delete_col()
- self.create_col()
+ self.create_col(self.embedding_model_dims)