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.

fix: prompt template issue (#3449)

YidaHu92f8c40e4c35
diff --git a/api/core/workflow/nodes/question_classifier/template_prompts.py b/api/core/workflow/nodes/question_classifier/template_prompts.py
index 829f0257bcb..c101ad9b19d 100644
--- a/api/core/workflow/nodes/question_classifier/template_prompts.py
+++ b/api/core/workflow/nodes/question_classifier/template_prompts.py
@@ -18,7 +18,7 @@ QUESTION_CLASSIFIER_SYSTEM_PROMPT = """
QUESTION_CLASSIFIER_USER_PROMPT_1 = """
{ "input_text": ["I recently had a great experience with your company. The service was prompt and the staff was very friendly."],
- "categories": ["Customer Service, Satisfaction, Sales, Product"],
+ "categories": ["Customer Service", "Satisfaction", "Sales", "Product"],
"classification_instructions": ["classify the text based on the feedback provided by customer"]}```JSON
"""
@@ -29,7 +29,7 @@ QUESTION_CLASSIFIER_ASSISTANT_PROMPT_1 = """
QUESTION_CLASSIFIER_USER_PROMPT_2 = """
{"input_text": ["bad service, slow to bring the food"],
- "categories": ["Food Quality, Experience, Price" ],
+ "categories": ["Food Quality", "Experience", "Price" ],
"classification_instructions": []}```JSON
"""