Why does my 'try to ask' function output English? #12578

Closed
opened 2026-02-21 19:08:03 -05:00 by yindo · 1 comment
Owner

Originally created by @xueyezs on GitHub (Apr 6, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, 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).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.1.2

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

When I use the 'Next Question Suggestion' function and ask in Chinese, the 'Try to Ask' function outputs in English.

Image

✔️ Expected Behavior

Based on the language type input by the user, generate next question suggestions for the corresponding language, or provide entry points for settings.

Actual Behavior

I entered in Chinese, and the next suggested question is indeed in English, which affects the user experience

Image

Originally created by @xueyezs on GitHub (Apr 6, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.1.2 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce When I use the 'Next Question Suggestion' function and ask in Chinese, the 'Try to Ask' function outputs in English. <img width="230" alt="Image" src="https://github.com/user-attachments/assets/1c3f1f1e-14e8-4507-82ee-774436d56da8" /> ### ✔️ Expected Behavior Based on the language type input by the user, generate next question suggestions for the corresponding language, or provide entry points for settings. ### ❌ Actual Behavior I entered in Chinese, and the next suggested question is indeed in English, which affects the user experience ![Image](https://github.com/user-attachments/assets/49a2f111-390d-43ea-935e-a7ce1f4de1bd)
yindo added the 🐞 bug label 2026-02-21 19:08:03 -05:00
yindo closed this issue 2026-02-21 19:08:03 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Apr 6, 2025):

There are similar threads and issues related to the language inconsistency in the 'Next Question Suggestion' function:

  1. An open discussion titled Help, How to use the next question suggestion function addresses similar concerns [1].
  2. A closed issue titled next suggest question need support chinese was resolved by a pull request that fixed the logic problem in the suggestion function [2].

To resolve the issue of the 'Try to Ask' function outputting in English, ensure that the SUGGESTED_QUESTIONS_AFTER_ANSWER_INSTRUCTION_PROMPT is configured correctly in the api/core/llm_generator/prompts.py file. This setting should enforce language consistency, ensuring that the suggested questions are in the same language as the user's input [3].

To continue talking to Dosu, mention @dosu.


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

@dosubot[bot] commented on GitHub (Apr 6, 2025): <!-- Answer --> There are similar threads and issues related to the language inconsistency in the 'Next Question Suggestion' function: 1. An open discussion titled [Help, How to use the next question suggestion function](https://github.com/langgenius/dify/discussions/17173) addresses similar concerns <sup>[[1]](https://github.com/langgenius/dify/discussions/17173)</sup>. 2. A closed issue titled [next suggest question need support chinese](https://github.com/langgenius/dify/issues/6231) was resolved by a pull request that fixed the logic problem in the suggestion function <sup>[[2]](https://github.com/langgenius/dify/issues/6231)</sup>. To resolve the issue of the 'Try to Ask' function outputting in English, ensure that the `SUGGESTED_QUESTIONS_AFTER_ANSWER_INSTRUCTION_PROMPT` is configured correctly in the `api/core/llm_generator/prompts.py` file. This setting should enforce language consistency, ensuring that the suggested questions are in the same language as the user's input <sup>[[3]](https://github.com/langgenius/dify/issues/13669)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/b46087dc-5fb7-45ea-a26f-3ba2bb199de6?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/b46087dc-5fb7-45ea-a26f-3ba2bb199de6?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/b46087dc-5fb7-45ea-a26f-3ba2bb199de6?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/b46087dc-5fb7-45ea-a26f-3ba2bb199de6?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/b46087dc-5fb7-45ea-a26f-3ba2bb199de6?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/b46087dc-5fb7-45ea-a26f-3ba2bb199de6?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/b46087dc-5fb7-45ea-a26f-3ba2bb199de6?feedback_type=other)</sup>
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#12578