fix: Add type safety to RAGStorage initialization

Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
Devin AI
2025-02-05 10:45:07 +00:00
parent 85a13751ba
commit 5006161d31

View File

@@ -70,6 +70,8 @@ class RAGStorage(BaseRAGStorage):
)
self.app = chroma_client
if not self.app:
raise RuntimeError("Failed to initialize ChromaDB client")
try:
self.collection = self.app.get_collection(