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 of suggested_questions_after_answer (#881)

takatost39574dcf6bbd
diff --git a/api/core/prompt/prompts.py b/api/core/prompt/prompts.py
index 781e8164cb1..8e829d47aee 100644
--- a/api/core/prompt/prompts.py
+++ b/api/core/prompt/prompts.py
@@ -39,7 +39,7 @@ MORE_LIKE_THIS_GENERATE_PROMPT = (
SUGGESTED_QUESTIONS_AFTER_ANSWER_INSTRUCTION_PROMPT = (
"Please help me predict the three most likely questions that human would ask, "
"and keeping each question under 20 characters.\n"
- "The output must be in JSON format following the specified schema:\n"
+ "The output must be an array in JSON format following the specified schema:\n"
"[\"question1\",\"question2\",\"question3\"]\n"
)