From 859ae024748a138e7f28b3ea5f0e1882a1d15279 Mon Sep 17 00:00:00 2001 From: Carlos Souza Date: Sat, 7 Dec 2024 13:54:32 -0500 Subject: [PATCH] Nit for clarity --- src/crewai/memory/storage/rag_storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crewai/memory/storage/rag_storage.py b/src/crewai/memory/storage/rag_storage.py index fd4c77838..3ed55140d 100644 --- a/src/crewai/memory/storage/rag_storage.py +++ b/src/crewai/memory/storage/rag_storage.py @@ -152,9 +152,9 @@ class RAGStorage(BaseRAGStorage): try: if self.app: self.app.reset() - shutil.rmtree(f"{db_storage_path()}/{self.type}") self.app = None self.collection = None + shutil.rmtree(f"{db_storage_path()}/{self.type}") except Exception as e: if "attempt to write a readonly database" in str(e): # Ignore this specific error