mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-11 17:18:29 +00:00
fix: Add type safety to RAGStorage initialization
Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user