Browse Source

fix: prompt template issue (#3449)

tags/0.6.3
YidaHu 1 year ago
parent
commit
92f8c40e4c
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      api/core/workflow/nodes/question_classifier/template_prompts.py

+ 2
- 2
api/core/workflow/nodes/question_classifier/template_prompts.py View File



QUESTION_CLASSIFIER_USER_PROMPT_1 = """ 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."], { "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 "classification_instructions": ["classify the text based on the feedback provided by customer"]}```JSON
""" """




QUESTION_CLASSIFIER_USER_PROMPT_2 = """ QUESTION_CLASSIFIER_USER_PROMPT_2 = """
{"input_text": ["bad service, slow to bring the food"], {"input_text": ["bad service, slow to bring the food"],
"categories": ["Food Quality, Experience, Price" ],
"categories": ["Food Quality", "Experience", "Price" ],
"classification_instructions": []}```JSON "classification_instructions": []}```JSON
""" """



Loading…
Cancel
Save