Closed jiacheo closed 7 months ago
Hey there, @jiacheo! 👋 I'm Dosu, your friendly neighborhood bot here to lend a hand with bugs, answer your questions, and guide you on your way to becoming a stellar contributor to Dify. While we're waiting for a human maintainer to chime in, I'm here to help as best as I can! Just wanted to let you know that I'm currently looking into your issue regarding the Question Classifier in your workflow. Hang tight, and I'll get back to you with a full answer shortly!
Please attach the exported yml file as well. @jiacheo
@crazywoola The DSL file here: Customer Review Analysis Workflow .yml.txt
@JohnJyong Please take a look at this.
What's the Classification tracing look like? After the most recent update my classification seems to have some hard coded customer service related prompts that I can't get rid of, wondering if maybe they're also being applied and messing things up (I think that's what's happening to my deployment, also having problems now)
I don't think these prompts were there before and not sure where they're coming from but they're always in my question classification tracing even in a workflow unrelated to customers - maybe unrelated and I'm just missing something figured would chime in though, here's what keeps getting added to my actual context:
"role": "user",
"text": "\n { \"input_text\": [\"I recently had a great experience with your company. The service was prompt and the staff was very friendly.\"],\n \"categories\": [\"Customer Service, Satisfaction, Sales, Product\"],\n \"classification_instructions\": [\"classify the text based on the feedback provided by customer\"]}```JSON\n",
"files": []
},
{
"role": "assistant",
"text": "\n {\"keywords\": [\"recently\", \"great experience\", \"company\", \"service\", \"prompt\", \"staff\", \"friendly\"],\n \"categories\": [\"Customer Service\"]}```\n",
"files": []
},
{
"role": "user",
"text": "\n {\"input_text\": [\"bad service, slow to bring the food\"],\n \"categories\": [\"Food Quality, Experience, Price\" ], \n \"classification_instructions\": []}```JSON\n",
"files": []
},
{
"role": "assistant",
"text": "\n {\"keywords\": [\"bad service\", \"slow\", \"food\", \"tip\", \"terrible\", \"waitresses\"],\n \"categories\": [\"Experience\"\"]}```\n",
"files": []
},
@crazywoola The DSL file here: Customer Review Analysis Workflow .yml.txt
@jiacheo I noticed that you have an extra blank space in this category, resulting in conditions that do not match.
@crazywoola Of course, it is true that LLM output may also have problems, I have submitted PR #3449
@crazywoola The DSL file here: Customer Review Analysis Workflow .yml.txt
@jiacheo I noticed that you have an extra blank space in this category, resulting in conditions that do not match.
@crazywoola Of course, it is true that LLM output may also have problems, I have submitted PR #3449
@YidaHu Wow! You must have golden eyes! After delete the extra space, it works fine now. (should we have a trim() before we choose brunches?)
@crazywoola The DSL file here: Customer Review Analysis Workflow .yml.txt
@jiacheo I noticed that you have an extra blank space in this category, resulting in conditions that do not match.
@crazywoola Of course, it is true that LLM output may also have problems, I have submitted PR #3449
@YidaHu Wow! You must have golden eyes! After delete the extra space, it works fine now. (should we have a trim() before we choose brunches?)
@jiacheo I don't think trim() is necessary. The service should not modify user input. Of course that's what I think.
I would close this issue now.
Btw, I found this template from the cloud version( cloud.dify.ai ) also have the same 'blank space' behind the 'Negetive review' brunch, maybe you can notify the cloud platform team to update this template. @YidaHu
I would close this issue now.
Btw, I found this template from the cloud version( cloud.dify.ai ) also have the same 'blank space' behind the 'Negetive review' brunch, maybe you can notify the cloud platform team to update this template. @YidaHu
@crazywoola @JohnJyong When language='en-US', there is an error in the template "Customer Review Analysis Workflow", Question Classifier Node -> Category -> Negative review (space here). This results in an inability to properly execute the workflow.
I found a pull app template from https://tmpl.dify.ai' and I can't fix it.
Self Checks
Dify version
0.6.2
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
✔️ Expected Behavior
Understand and go to the right brunch in the question classifier.
❌ Actual Behavior
No response