-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Chatflow] All classes with "Answer" block are triggered in "Knowledge Classifier" #8222
Comments
All classes with the "Answer" block are being triggered in the "Knowledge Classifier" in your Chatflow chatbot, resulting in concatenated responses because the "Answer" block is defined to handle response content in a Chatflow process. This means that whenever the "Knowledge Classifier" node classifies a user input, it triggers the "Answer" block to generate a response, leading to multiple "Answer" blocks being activated and their responses concatenated. To address this, you can configure the issue classifier to direct the flow to different paths based on the classification results. By setting up specific classification labels/descriptions and corresponding downstream nodes, you can ensure that only the relevant "Answer" block is triggered for each classified input. This can be done by:
By configuring these steps, you can prevent multiple "Answer" blocks from being triggered simultaneously, thereby avoiding concatenated responses. Additionally, the The |
Maybe #8221 fixes this issue |
Self Checks
Dify version
0.8.0
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
✔️ Expected Behavior
The bot should answer "Response from 2".
❌ Actual Behavior
The bot answered "Response from 1Response from 2Response from 3".
I'm not sure whether all classes are triggered in the classifier, or just the ones that have Answers, since other classes are not shown in the log.
The text was updated successfully, but these errors were encountered: