[PR #21151] feat: add metadata support for external knowledge #29575

Open
opened 2026-02-21 20:45:50 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/21151

State: open
Merged: No


Summary

Fixes #16349

Currently, Dify only supports metadata configuration and filtering for its built-in knowledge base. However, users working with external knowledge bases (such as Milvus, Qdrant, Weaviate, etc.) also need the ability to add, manage, and filter metadata for their documents. This feature is important for enabling more flexible and precise knowledge retrieval scenarios.

Screenshots

Before After
image image

Checklist

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.
  • I ran dev/reformat(backend) and cd web && npx lint-staged(frontend) to appease the lint gods
**Original Pull Request:** https://github.com/langgenius/dify/pull/21151 **State:** open **Merged:** No --- ## Summary Fixes #16349 Currently, Dify only supports metadata configuration and filtering for its built-in knowledge base. However, users working with external knowledge bases (such as Milvus, Qdrant, Weaviate, etc.) also need the ability to add, manage, and filter metadata for their documents. This feature is important for enabling more flexible and precise knowledge retrieval scenarios. ## Screenshots | Before | After | |--------|-------| |<img width="1213" alt="image" src="https://github.com/user-attachments/assets/428da448-f697-4b58-80ed-ee822f167969" />|<img width="1193" alt="image" src="https://github.com/user-attachments/assets/fc0692b2-3f77-4501-a113-0db3480d4d06" />| ## Checklist - [ ] This change requires a documentation update, included: [Dify Document](https://github.com/langgenius/dify-docs) - [x] I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!) - [ ] I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change. - [ ] I've updated the documentation accordingly. - [x] I ran `dev/reformat`(backend) and `cd web && npx lint-staged`(frontend) to appease the lint gods
yindo added the pull-request label 2026-02-21 20:45:50 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#29575