dify icon indicating copy to clipboard operation
dify copied to clipboard

Suggested questions always return empty

Open KroMiose opened this issue 1 year ago • 4 comments

Self Checks

  • [X] This is only for bug report, if you would like to ask a question, please head to Discussions.
  • [X] I have searched for existing issues search for existing issues, including closed ones.
  • [X] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • [x] Please do not modify this template :) and fill in all the required fields.

Dify version

0.14.1

Cloud or Self Hosted

Cloud, Self Hosted (Docker)

Steps to reproduce

  1. Create a simple response flow using the Dify cloud service.
  2. Enable "Next Step Question Suggestions" in the "Features" section.
  3. Ask any question and check the browser's network console, where the returned suggested questions list is empty.

image

For comparison, I have previously set up two Dify applications locally (both docker deployment). I found that the earlier deployed version (0.13.2) still provides question suggestions after upgrading to the latest version (0.14.1), while the later deployed version behaves the same as the cloud service (both fail to provide question suggestions). In all three test cases, "Next Step Question Suggestions" was enabled in the "Features" section.

Normal working version image

Abnormal version image

✔️ Expected Behavior

provide some suggested question

❌ Actual Behavior

provides not suggested question

KroMiose avatar Dec 19 '24 01:12 KroMiose

@KroMiose Hello there! I'm Dosu, a bot that can help you solve bugs, answer questions, and become a contributor. I'm here to help you while waiting for a human maintainer.

I found a similar unsolved discussion titled Why the suggested-questions always return empty? [1]. This might be related to the issue you're experiencing.

For your specific case, since the issue occurs in both cloud and self-hosted environments with version 0.14.1, but not in the earlier version 0.13.2, it could be related to changes introduced in the newer version. You might want to check the configuration settings related to the 'Next Step Question Suggestions' feature, such as suggestedQuestions and suggestedQuestionsAfterAnswerConfig, to ensure they are correctly set up [2].

Additionally, the MessageSuggestedQuestionApi class includes error handling that might log relevant errors if the feature is returning empty results. Checking the logs for any exceptions or errors could provide more insights into the issue [3].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

dosubot[bot] avatar Dec 19 '24 02:12 dosubot[bot]

I have read the duplicate issues provided by dosu and made sure that the corresponding switch has been turned on on the page. The problem has not been solved. I have also tried it in the latest updated version, and the result is the same.

KroMiose avatar Dec 25 '24 01:12 KroMiose

0.15.0 same error

suntao2015005848 avatar Jan 14 '25 08:01 suntao2015005848

Hi, @KroMiose. I'm Dosu, and I'm helping the Dify team manage their backlog. I'm marking this issue as stale.

Issue Summary:

  • You reported an issue with the "Next Step Question Suggestions" feature in Dify version 0.14.1, where it returns an empty list.
  • The issue affects both cloud and self-hosted environments.
  • The problem persists even after upgrading to version 0.15.0, as confirmed by another user.
  • You confirmed that the feature is enabled and reviewed similar issues, but the problem remains unresolved.

Next Steps:

  • Please let me know if this issue is still relevant to the latest version of the Dify repository. If so, you can keep the discussion open by commenting on this issue.
  • Otherwise, this issue will be automatically closed in 15 days.

Thank you for your understanding and contribution!

dosubot[bot] avatar Feb 14 '25 16:02 dosubot[bot]