Skip to content

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

Refa: refine the context window size warning. (#5993)

Kevin Hu3571270191a6
diff --git a/rag/llm/chat_model.py b/rag/llm/chat_model.py
index ce6457bf74..362433998a 100644
--- a/rag/llm/chat_model.py
+++ b/rag/llm/chat_model.py
@@ -29,8 +29,8 @@ import json
import requests
import asyncio
-LENGTH_NOTIFICATION_CN = "······\n由于长度的原因,回答被截断了,要继续吗?"
-LENGTH_NOTIFICATION_EN = "...\nFor the content length reason, it stopped, continue?"
+LENGTH_NOTIFICATION_CN = "······\n由于大模型的上下文窗口大小限制,回答已经被大模型截断。"
+LENGTH_NOTIFICATION_EN = "...\nThe answer is truncated by your chosen LLM due to its context length limitation."
class Base(ABC):