mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-29 10:08:13 +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
|
self.app = chroma_client
|
||||||
|
if not self.app:
|
||||||
|
raise RuntimeError("Failed to initialize ChromaDB client")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self.collection = self.app.get_collection(
|
self.collection = self.app.get_collection(
|
||||||
|
|||||||
Reference in New Issue
Block a user