mirror of
https://github.com/langgenius/dify-docs.git
synced 2026-07-22 12:25:45 -04:00
[DOCS]:How to perform paragraph-level metadata tagging? #267
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 @liutong-eeo on GitHub (Nov 11, 2025).
Type of Documentation Change
Other
Documentation Page URL or Path
https://docs.dify.ai/zh-hans/guides/knowledge-base/metadata
Current Content
We are already using document-level metadata, but our requirement is to perform paragraph-level filtering when retrieving segments. I wonder if Dify has this functionality.
Suggested Changes
no
Reason for Change
No response
Code of Conduct
@dosubot[bot] commented on GitHub (Nov 11, 2025):
Hi @liutong-eeo! I'm Dosu and I’m helping the dify-docs team.
Dify does not currently support paragraph-level (segment-level) metadata tagging or filtering—metadata can only be defined and filtered at the document level. While the codebase structures allow for metadata to be attached to individual chunks or segments, there is no built-in way to filter or retrieve segments based on their own metadata during search or retrieval operations. This limitation is confirmed in both the documentation and open feature requests from other users who want more granular filtering capabilities at the segment level (reference).
If you need fine-grained filtering, a common workaround is to split your content into smaller documents, each with its own metadata, or organize your knowledge base by metadata type. True paragraph-level metadata filtering would require architectural changes and is not available out of the box.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other
