Skip to content

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

Ensure LIGHTEN work (#3542)

Kevin Hud9c882399d44
diff --git a/api/settings.py b/api/settings.py
index b6afba0e84..94225bc442 100644
--- a/api/settings.py
+++ b/api/settings.py
@@ -61,7 +61,10 @@ kg_retrievaler = None
def init_settings():
- global LLM, LLM_FACTORY, LLM_BASE_URL
+ global LLM, LLM_FACTORY, LLM_BASE_URL, LIGHTEN, DATABASE_TYPE, DATABASE
+ LIGHTEN = int(os.environ.get('LIGHTEN', "0"))
+ DATABASE_TYPE = os.getenv("DB_TYPE", 'mysql')
+ DATABASE = decrypt_database_config(name=DATABASE_TYPE)
LLM = get_base_config("user_default_llm", {})
LLM_FACTORY = LLM.get("factory", "Tongyi-Qianwen")
LLM_BASE_URL = LLM.get("base_url")