mirror of
https://github.com/langgenius/dify-docs.git
synced 2026-07-22 12:25:45 -04:00
[DOCS]: API interface query to retrieve the tags bound to the dataset #290
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 @JMY-T on GitHub (Dec 11, 2025).
Type of Documentation Change
Error/Typo fix
Documentation Page URL or Path
https://docs.dify.ai/api-reference/%E5%85%83%E6%95%B0%E6%8D%AE%E5%92%8C%E6%A0%87%E7%AD%BE/%E6%9F%A5%E8%AF%A2%E7%BB%91%E5%AE%9A%E5%88%B0%E6%95%B0%E6%8D%AE%E9%9B%86%E7%9A%84%E6%A0%87%E7%AD%BE
Current Content
When querying the tag interface bound to the dataset using the POST method, an error occurred. However, switching to the GET method resolved the issue.
In addition, there are relatively few interfaces related to metadata and knowledge retrieval, and the interface descriptions are not detailed enough. Some hidden interfaces and parameters are not displayed.
Suggested Changes
Improve relevant interfaces of the knowledge base
Reason for Change
There is an issue with the knowledge base retrieval node, as the metadata filtering automatic mode did not output as expected.
The keywords have been clearly identified in the user's question, and the knowledge base search node has set up automatic data filtering mode. However, the output result does not include the expected document name.
Attempting to implement metadata filtering through an interface for knowledge retrieval, it was found that the interface document was incomplete.
Code of Conduct
@dosubot[bot] commented on GitHub (Dec 11, 2025):
Hi @JMY-T! I'm Dosu and I’m helping the dify-docs team.
The correct API method for retrieving tags bound to a dataset in Dify is a GET request to
/datasets/<uuid:dataset_id>/tags. Using POST for this endpoint will result in an error, as only GET is supported for tag retrieval according to the codebase implementation. The GET response includes a list of tags and the total count for the specified dataset. POST is used only for binding or unbinding tags, not for retrieval. The documentation should be updated to reflect this and remove any references to POST for tag retrieval.See code reference
For knowledge base retrieval and metadata filtering, the API now supports keyword and tag searches, and recent updates have added metadata-based search capabilities (such as filtering by tags, creation date, author, and file type). However, documentation for these features is still incomplete, and some parameters (like those for metadata filtering) are not fully described.
See issue and feature request
If you are implementing metadata filtering, ensure your request body is structured correctly, especially for manual filtering. For example, the
metadata_conditionobject should include a logical operator and an array of conditions, each with a name, comparison operator, and value.See example and bug report
There are ongoing improvements to metadata management and retrieval interfaces, but the documentation needs to be updated to clarify supported parameters, request formats, and expected behaviors for both tag retrieval and metadata filtering endpoints.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other
@RiskeyL commented on GitHub (Dec 12, 2025):
Hi @JMY-T, thanks for your feedback! We've updated the interface method from POST to GET. We are currently refactoring the help documentation and API docs related to the knowledge base, and we will incorporate your suggestions into future updates.
@dosubot[bot] commented on GitHub (Dec 23, 2025):
Hi, @JMY-T. I'm Dosu, and I'm helping the dify-docs team manage their backlog and am marking this issue as stale.
Issue Summary:
Next Steps:
Thank you for your understanding and contribution!