Skip to content

Commit

Permalink
settings.get().MAX_DOCUMENT_SIZE_MB -> settings.MAX_DOCUMENT_SIZE_MB
Browse files Browse the repository at this point in the history
  • Loading branch information
kristjanpeterson1 committed Aug 15, 2024
1 parent a32304b commit b080ca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rag_tools/knowledgebase/load_documents_use_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b080ca3

Please sign in to comment.