Skip to content

Commit

Permalink
fix: align limitation with env (infiniflow#1819)
Browse files Browse the repository at this point in the history
### What problem does this PR solve?

try to process the large file will throw a File size exceeds error

### Type of change

- [x] Refactoring

Co-authored-by: Theta Wang (ncu) <chunshan.connect@gmail.com>
  • Loading branch information
Chunshan-Theta and Theta Wang (ncu) authored Aug 6, 2024
1 parent 88be3f6 commit 176f802
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rag/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
except Exception as e:
REDIS = {}
pass
DOC_MAXIMUM_SIZE = 128 * 1024 * 1024
DOC_MAXIMUM_SIZE = int(os.environ.get("MAX_CONTENT_LENGTH", 128 * 1024 * 1024))

# Logger
LoggerFactory.set_directory(
Expand Down

0 comments on commit 176f802

Please sign in to comment.