fix(mongodb): reset() passes wrong argument to create_col() (#5532)
This commit is contained in:
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user