Chatbot Metadata Filtering adds Chinese descriptive variables #12420

Closed
opened 2026-02-21 19:07:19 -05:00 by yindo · 3 comments
Owner

Originally created by @qianyueping1211 on GitHub (Apr 1, 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

v 1.1.3.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

When creating a simple application using Chatbot, if the Label Name of Variables is in Chinese, then
This variable cannot be added in Metadata Filtering. If the Label Name is in English, it is normal.

Image

Image

✔️ Expected Behavior

Normal addition

Actual Behavior

Unable to add normally

Originally created by @qianyueping1211 on GitHub (Apr 1, 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 v 1.1.3.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce When creating a simple application using Chatbot, if the Label Name of Variables is in Chinese, then This variable cannot be added in Metadata Filtering. If the Label Name is in English, it is normal. ![Image](https://github.com/user-attachments/assets/d6fbfc0a-3f04-400f-b6f2-62d451bf86a5) ![Image](https://github.com/user-attachments/assets/890a6846-86b5-4d86-b90f-18643e716823) ### ✔️ Expected Behavior Normal addition ### ❌ Actual Behavior Unable to add normally
yindo added the 🐞 bugstale labels 2026-02-21 19:07:19 -05:00
yindo closed this issue 2026-02-21 19:07:19 -05:00
Author
Owner

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

The issue you're experiencing with metadata filtering when using Chinese characters in label names is a known limitation in the Dify platform. Currently, files with Chinese characters in their filenames cannot be downloaded through Dify's download_url endpoint, and similar limitations might affect other functionalities like metadata filtering [1].

To work around this issue, try using English (ASCII) characters for label names in metadata filtering. This should allow you to add variables normally.

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 1, 2025): <!-- Answer --> The issue you're experiencing with metadata filtering when using Chinese characters in label names is a known limitation in the Dify platform. Currently, files with Chinese characters in their filenames cannot be downloaded through Dify's download_url endpoint, and similar limitations might affect other functionalities like metadata filtering <sup>[[1]](https://github.com/langgenius/dify/issues/14155)</sup>. To work around this issue, try using English (ASCII) characters for label names in metadata filtering. This should allow you to add variables normally. <!-- 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/d5f88c9d-e835-4473-a6c1-99c1fda7825b?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/d5f88c9d-e835-4473-a6c1-99c1fda7825b?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/d5f88c9d-e835-4473-a6c1-99c1fda7825b?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/d5f88c9d-e835-4473-a6c1-99c1fda7825b?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/d5f88c9d-e835-4473-a6c1-99c1fda7825b?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/d5f88c9d-e835-4473-a6c1-99c1fda7825b?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/d5f88c9d-e835-4473-a6c1-99c1fda7825b?feedback_type=other)</sup>
Author
Owner

@qianyueping1211 commented on GitHub (Apr 1, 2025):

However, in chatflow, Chinese labels can be used as variables for knowledge summarization.

@qianyueping1211 commented on GitHub (Apr 1, 2025): However, in chatflow, Chinese labels can be used as variables for knowledge summarization.
Author
Owner

@dosubot[bot] commented on GitHub (May 2, 2025):

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

Issue Summary

  • You reported a bug where Chinese label names cannot be added in Metadata Filtering, while English labels work fine.
  • This is acknowledged as a known limitation, with a suggested workaround of using English characters.
  • You noted an inconsistency, as Chinese labels can be used in chatflow for knowledge summarization.

Next Steps

  • Could you confirm if this issue is still relevant to the latest version of the Dify repository? If so, please comment to keep the discussion open.
  • If there are no further updates, this issue will be automatically closed in 15 days.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (May 2, 2025): Hi, @qianyueping1211. I'm [Dosu](https://dosu.dev), and I'm helping the Dify team manage their backlog. I'm marking this issue as stale. **Issue Summary** - You reported a bug where Chinese label names cannot be added in Metadata Filtering, while English labels work fine. - This is acknowledged as a known limitation, with a suggested workaround of using English characters. - You noted an inconsistency, as Chinese labels can be used in chatflow for knowledge summarization. **Next Steps** - Could you confirm if this issue is still relevant to the latest version of the Dify repository? If so, please comment to keep the discussion open. - If there are no further updates, this issue will be automatically closed in 15 days. Thank you for your understanding and contribution!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#12420