Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

fix: align limitation with env (#1819)

Wang66e4113e0b4d
diff --git a/rag/settings.py b/rag/settings.py
index 08c19a815f..3b4ce1b4ee 100644
--- a/rag/settings.py
+++ b/rag/settings.py
@@ -30,7 +30,7 @@ try:
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(