From b080ca32a5ec03914efa5888616f40e6ef3f2948 Mon Sep 17 00:00:00 2001 From: kristjanpeterson Date: Thu, 15 Aug 2024 16:31:47 +0300 Subject: [PATCH] settings.get().MAX_DOCUMENT_SIZE_MB -> settings.MAX_DOCUMENT_SIZE_MB --- rag_tools/knowledgebase/load_documents_use_case.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rag_tools/knowledgebase/load_documents_use_case.py b/rag_tools/knowledgebase/load_documents_use_case.py index b04720a..b6acefb 100644 --- a/rag_tools/knowledgebase/load_documents_use_case.py +++ b/rag_tools/knowledgebase/load_documents_use_case.py @@ -30,7 +30,7 @@ def execute(data_dir: str, text_splitter: TextSplitter) -> List[Document]: new_documents = [] if (file_size := _get_file_size(file_path)) > settings.MAX_DOCUMENT_SIZE_MB: print( - f"Document {file_path} too big ({file_size} > {settings.get().MAX_DOCUMENT_SIZE_MB}), skipping." + f"Document {file_path} too big ({file_size} > {settings.MAX_DOCUMENT_SIZE_MB}), skipping." ) continue try: