Skip to content

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

Fix LIGHTEN. Close #2723 (#2744)

Zhichang Yu5cc9981a4d73
diff --git a/api/settings.py b/api/settings.py
index 3f239f0ebc..41dfbe91c2 100644
--- a/api/settings.py
+++ b/api/settings.py
@@ -42,7 +42,7 @@ RAG_FLOW_SERVICE_NAME = "ragflow"
SERVER_MODULE = "rag_flow_server.py"
TEMP_DIRECTORY = os.path.join(get_project_base_directory(), "temp")
RAG_FLOW_CONF_PATH = os.path.join(get_project_base_directory(), "conf")
-LIGHTEN = os.environ.get('LIGHTEN')
+LIGHTEN = int(os.environ.get('LIGHTEN', "0"))
SUBPROCESS_STD_LOG_NAME = "std.log"