make save_documents private

This commit is contained in:
Brandon Hancock
2024-12-05 14:18:21 -05:00
parent 55e4ab68a3
commit 6cb40ea6e3
9 changed files with 9 additions and 9 deletions

View File

@@ -43,7 +43,7 @@ class PDFKnowledgeSource(BaseFileKnowledgeSource):
for _, text in self.content.items():
new_chunks = self._chunk_text(text)
self.chunks.extend(new_chunks)
self.save_documents()
self._save_documents()
def _chunk_text(self, text: str) -> List[str]:
"""Utility method to split text into chunks."""