Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

feat: optimize prompt (#1080)

takatost33562a9d8d07
diff --git a/api/core/prompt/prompts.py b/api/core/prompt/prompts.py
index a26874d325f..b393dd47f7d 100644
--- a/api/core/prompt/prompts.py
+++ b/api/core/prompt/prompts.py
@@ -1,6 +1,6 @@
# Written by YORKI MINAKO🤡
CONVERSATION_TITLE_PROMPT = """You need to decompose the user's input into "subject" and "intention" in order to accurately figure out what the user's input language actually is.
-Notice: the language type user using is abundant, can be English, Chinese, Español, Arabic, Japanese, and etc.
+Notice: the language type user use could be diverse, which can be English, Chinese, Español, Arabic, Japanese, Franch, and etc.
MAKE SURE your output is the SAME language as the user's input!
Your output is restricted only to: (Input language) Intention + Subject(short as possible)
Your output MUST be a valid JSON.