mirror of
https://github.com/langgenius/dify-docs.git
synced 2026-07-22 04:15:24 -04:00
[DOCS]: When I add multiple knowledge bases to my agent, why can't I add metadata filtering? #237
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @huangxttttt on GitHub (Sep 4, 2025).
Type of Documentation Change
Error/Typo fix
Documentation Page URL or Path
No response
Current Content
No response
Suggested Changes
Reason for Change
No response
Code of Conduct
@dosubot[bot] commented on GitHub (Sep 4, 2025):
When you add multiple knowledge bases to an agent in Dify, metadata filtering is only possible if all selected knowledge bases share the same metadata fields. The UI computes the intersection of metadata fields across your selected knowledge bases—if there are no common fields, the metadata filter option is disabled, which can be confusing if you expect to filter by fields unique to each knowledge base. This is a current product limitation: you can only filter on metadata fields present in every selected knowledge base, not individually per source. If you need distinct filters, the recommended workaround is to organize your documents into separate knowledge bases by type or metadata structure. Metadata filtering for multiple knowledge bases is planned for future releases, but there is no timeline yet. More details are available in this issue and this discussion.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other
