Skip to content

Commit

Permalink
Merge pull request #129 from galadriel-ai/rag-tools-error-fix
Browse files Browse the repository at this point in the history
settings.get().MAX_DOCUMENT_SIZE_MB -> settings.MAX_DOCUMENT_SIZE_MB
  • Loading branch information
kristjanpeterson1 authored Aug 16, 2024
2 parents a32304b + b080ca3 commit e48c40d
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 e48c40d

Please sign in to comment.