WIP: test check with prints

This commit is contained in:
Lorenze Jay
2025-01-27 12:24:13 -08:00
parent adec0892fa
commit 1cc9c981e4
9 changed files with 76 additions and 51 deletions

View File

@@ -46,7 +46,9 @@ class BaseKnowledgeSource(BaseModel, ABC):
Save the documents to the storage.
This method should be called after the chunks and embeddings are generated.
"""
print("saving documents", self.storage)
if self.storage:
print("storage found")
self.storage.save(self.chunks)
else:
raise ValueError("No storage found to save documents.")