If the knowledge base sets the metadata as "number" and the input parameter of the workflow is also "number," the content cannot be retrieved. #12599

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

Originally created by @jackleehui on GitHub (Apr 7, 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.3

Cloud or Self Hosted

Cloud, Self Hosted (Docker)

Steps to reproduce

If the knowledge base sets the metadata as "number" and the input parameter of the workflow is also "number," the content cannot be retrieved.
If the metadata is changed to "string" and the input parameter of the workflow is also changed to "string," the content can be retrieved.

✔️ Expected Behavior

It is possible to retrieve the corresponding knowledge base segments within the metadata range through my "number" input parameter.

Actual Behavior

Currently, only by setting the metadata as the "string" type can the content be retrieved.

Originally created by @jackleehui on GitHub (Apr 7, 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.3 ### Cloud or Self Hosted Cloud, Self Hosted (Docker) ### Steps to reproduce If the knowledge base sets the metadata as "number" and the input parameter of the workflow is also "number," the content cannot be retrieved. If the metadata is changed to "string" and the input parameter of the workflow is also changed to "string," the content can be retrieved. ### ✔️ Expected Behavior It is possible to retrieve the corresponding knowledge base segments within the metadata range through my "number" input parameter. ### ❌ Actual Behavior Currently, only by setting the metadata as the "string" type can the content be retrieved.
yindo added the 🐞 bug label 2026-02-21 19:08:08 -05:00
yindo closed this issue 2026-02-21 19:08:08 -05:00
Author
Owner

@crazywoola commented on GitHub (Apr 7, 2025):

Fixed in https://github.com/langgenius/dify/pull/16665

@crazywoola commented on GitHub (Apr 7, 2025): Fixed in https://github.com/langgenius/dify/pull/16665
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#12599