RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
fix: increase Quart RESPONSE_TIMEOUT and BODY_TIMEOUT for slow LLM responses (#11612)
dzikus9a8ce9d3e2d0
diff --git a/api/apps/__init__.py b/api/apps/__init__.pyindex a6e33c13b0..e034f460b8 100644--- a/api/apps/__init__.py+++ b/api/apps/__init__.py@@ -82,6 +82,11 @@ app.url_map.strict_slashes = Falseapp.json_encoder = CustomJSONEncoderapp.errorhandler(Exception)(server_error_response)+# Configure Quart timeouts for slow LLM responses (e.g., local Ollama on CPU)+# Default Quart timeouts are 60 seconds which is too short for many LLM backends+app.config["RESPONSE_TIMEOUT"] = int(os.environ.get("QUART_RESPONSE_TIMEOUT", 600))+app.config["BODY_TIMEOUT"] = int(os.environ.get("QUART_BODY_TIMEOUT", 600))+## convince for dev and debug# app.config["LOGIN_DISABLED"] = Trueapp.config["SESSION_PERMANENT"] = False