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.

optimize qa prompt (#1957)

Jyong28b26f67e293
diff --git a/api/core/prompt/prompts.py b/api/core/prompt/prompts.py
index 44cf954d3e9..dc8badbb98e 100644
--- a/api/core/prompt/prompts.py
+++ b/api/core/prompt/prompts.py
@@ -75,7 +75,7 @@ GENERATOR_QA_PROMPT = (
'Step 3: Decompose or combine multiple pieces of information and concepts.\n'
'Step 4: Generate 20 questions and answers based on these key information and concepts.'
'The questions should be clear and detailed, and the answers should be detailed and complete.\n'
- "Answer according to the the language:{language} and in the following format: Q1:\nA1:\nQ2:\nA2:...\n"
+ "Answer MUST according to the the language:{language} and in the following format: Q1:\nA1:\nQ2:\nA2:...\n"
)
RULE_CONFIG_GENERATE_TEMPLATE = """Given MY INTENDED AUDIENCES and HOPING TO SOLVE using a language model, please select \