Model add exceptions #796

Closed
opened 2026-02-16 10:20:32 -05:00 by yindo · 1 comment
Owner

Originally created by @9264Yf on GitHub (Nov 11, 2025).

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

7.9.2

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

At the model Settings, adding the model Pro/BAAI/bge-m3 was successful, but this Embedding model cannot be used at the knowledge base embedding

✔️ Expected Behavior

At the model Settings, adding the model Pro/BAAI/bge-m3 was successful, but this Embedding model cannot be used at the knowledge base embedding

Actual Behavior

Models can be added normally

Originally created by @9264Yf on GitHub (Nov 11, 2025). ### Self Checks - [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542). - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report, otherwise it will be closed. - [x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 7.9.2 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce At the model Settings, adding the model Pro/BAAI/bge-m3 was successful, but this Embedding model cannot be used at the knowledge base embedding ### ✔️ Expected Behavior At the model Settings, adding the model Pro/BAAI/bge-m3 was successful, but this Embedding model cannot be used at the knowledge base embedding ### ❌ Actual Behavior Models can be added normally
yindo added the bug label 2026-02-16 10:20:32 -05:00
yindo closed this issue 2026-02-16 10:20:32 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Nov 11, 2025):

The ability to use an embedding model for knowledge base embedding in Dify is determined by the provider and model metadata, specifically whether the model is registered with the TEXT_EMBEDDING type and has a valid credential schema. If a model like Pro/BAAI/bge-m3 can be added in model settings but isn't available for knowledge base embedding, it's likely due to missing or incorrect type registration or schema/configuration errors in the provider or model metadata—there are no hardcoded restrictions by model name, only schema-driven validation and exceptions for unsupported models. To resolve this, check that your provider config and model metadata correctly declare support for TEXT_EMBEDDING and that the credential schema matches what Dify expects for embedding models. Recent updates have improved validation and error messaging for embedding model selection in knowledge base workflows, so ensuring your model is properly registered should make it selectable and usable for embedding tasks.
See code details

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Join Discord Share on X

@dosubot[bot] commented on GitHub (Nov 11, 2025): <!-- Answer --> The ability to use an embedding model for knowledge base embedding in Dify is determined by the provider and model metadata, specifically whether the model is registered with the `TEXT_EMBEDDING` type and has a valid credential schema. If a model like Pro/BAAI/bge-m3 can be added in model settings but isn't available for knowledge base embedding, it's likely due to missing or incorrect type registration or schema/configuration errors in the provider or model metadata—there are no hardcoded restrictions by model name, only schema-driven validation and exceptions for unsupported models. To resolve this, check that your provider config and model metadata correctly declare support for `TEXT_EMBEDDING` and that the credential schema matches what Dify expects for embedding models. Recent updates have improved validation and error messaging for embedding model selection in knowledge base workflows, so ensuring your model is properly registered should make it selectable and usable for embedding tasks. [See code details](https://github.com/langgenius/dify/blob/c9798f642586b5de4ab4f72e92e58626ed4afb3b/api/core/model_runtime/model_providers/model_provider_factory.py#L24-L348) <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/f96c7351-7cb0-4f88-bf6b-c417f0c78fc9?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/f96c7351-7cb0-4f88-bf6b-c417f0c78fc9?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/f96c7351-7cb0-4f88-bf6b-c417f0c78fc9?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/f96c7351-7cb0-4f88-bf6b-c417f0c78fc9?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/f96c7351-7cb0-4f88-bf6b-c417f0c78fc9?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/f96c7351-7cb0-4f88-bf6b-c417f0c78fc9?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/f96c7351-7cb0-4f88-bf6b-c417f0c78fc9?feedback_type=other)</sup>&nbsp;&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify-official-plugins/issues/2040)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#796