Skip to content
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

[bug] Question Classifier - needs reconnnecting #4028

Open
4 tasks done
nitrag opened this issue Apr 30, 2024 · 1 comment
Open
4 tasks done

[bug] Question Classifier - needs reconnnecting #4028

nitrag opened this issue Apr 30, 2024 · 1 comment
Labels
🐞 bug Something isn't working

Comments

@nitrag
Copy link

nitrag commented Apr 30, 2024

Self Checks

  • This is only for bug report, if you would like to ask a quesion, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • Pleas do not modify this template :) and fill in all the required fields.

Dify version

0.6.5

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

I was trying to figure out why my question classifier was routing to the wrong (and same one everytime) node. When debugging only the Question Classifier step, it showed that it found the correct classification but the routing choice to the next node did not match the result. I am frequently having to disconnect and reconnect the proceeding nodes to fix the issue.

✔️ Expected Behavior

The Question Classifier routes to the next node appropriately.

❌ Actual Behavior

The Question Classifier returns a proper result but routes to the incorrect node.

Copy link

dosubot bot commented Apr 30, 2024

To address the issue with the Question Classifier routing to the incorrect node despite recognizing the correct classification, consider the following steps:

  1. Review Classification Conditions: Ensure the conditions for each classification are clear and do not overlap, which could lead to incorrect routing.

  2. Verify Model Configuration: Check the inference model and model provider settings to ensure they are correctly configured for accurate classification and routing.

  3. Check Input Variables: Confirm that the input variable is correctly captured and passed to the Question Classifier without alterations.

For detailed guidance, refer to the Question Classifier documentation and ensure your Docker environment is configured correctly as per the Docker environment documentation.

Additionally, recent updates to the Dify codebase, particularly in api/core/workflow/nodes/question_classifier/template_prompts.py, might impact routing behavior. Review these changes for potential insights into the issue.

If the problem persists, providing specific logs or error messages could offer further insights into the misrouting issue.

Details

Sources


About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

To continue the conversation, mention @dosu.

@dosubot dosubot bot added the 🐞 bug Something isn't working label Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant