fix(mongodb): reset() passes wrong argument to create_col() (#5532)

This commit is contained in:
Hrushikesh Yadav
2026-06-16 15:48:45 +05:30
committed by GitHub
parent e30f0d91fe
commit bb4a239cb1
+1 -1
View File
@@ -391,7 +391,7 @@ class MongoDB(VectorStoreBase):
"""Reset the index by deleting and recreating it."""
logger.warning(f"Resetting index {self.collection_name}...")
self.delete_col()
self.collection = self.create_col(self.collection_name)
self.collection = self.create_col()
def __del__(self) -> None:
"""Close the database connection when the object is deleted."""