The knowledge base needs to be able to add custom fields and use them for filtering in workflow knowledge retrieval, which would be a particularly useful feature
Self Checks
- [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.
1. Is this request related to a challenge you're experiencing? Tell me about your story.
When I call a workflow, I need to filter specific data in the knowledge base in different scenarios. However, currently dify can only retrieve information from the entire knowledge base. I have to create multiple knowledge bases and workflows. But this will be a huge workload.
2. Additional context or comments
No response
3. Can you help us with this feature?
- [X] I am interested in contributing to this feature.
Thank you for your valuable request. Adding Metadata to the knowledge base data may solve your problem. We are investigating internally. This part of the functionality is on the knowledge base product planning roadmap.
我也需要这个功能,非常需要。请问大概什么时候能上线该功能,根据不同的用户,我应当检索不同的数据集(或者说我可以根据我附带的变量选择某个数据集筛选出满足某些字段的数据)
yes, i need this fea too, is there anyway i can see your planning roadmap for this feature?
Any update this task ?
Hi, @miludedeng. I'm Dosu, and I'm helping the Dify team manage their backlog. I'm marking this issue as stale.
Issue Summary:
- You requested the ability to add custom fields to the knowledge base for better data filtering.
- @Yawen-1010 acknowledged the request and mentioned that adding metadata might be a solution.
- The feature is on the product planning roadmap.
- Other users, including @liuzixiao666 and @143230, expressed a strong need for this feature.
- @nhha1602 asked for updates on the task.
Next Steps:
- Please let me know if this issue is still relevant to the latest version of the Dify repository by commenting here.
- If there is no further activity, this issue will be automatically closed in 15 days.
Thank you for your understanding and contribution!
This is still relevant.
@takatost, the user @christophersandmann has indicated that this issue regarding adding custom fields to the knowledge base is still relevant. Could you please assist them with this?
I'm facing the same issue. My workaround is converting the filter object into a string, then merging it into the user query. When the Knowledge Base retrieves it, the backend will split and parse the filter object
I'm facing the same issue. My workaround is converting the filter object into a string, then merging it into the user query. When the Knowledge Base retrieves it, the backend will split and parse the filter object
https can
See https://docs.dify.ai/guides/knowledge-base/metadata.