mistral-embed is not defined as an embedding model
Self Checks
- [X] This is only for bug report, if you would like to ask a question, please head to Discussions.
- [X] I have searched for existing issues search for existing issues, including closed ones.
- [X] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
- [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
- [X] Please do not modify this template :) and fill in all the required fields.
Dify version
0.9.2
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
https://github.com/langgenius/dify/blob/424a7da470b17ab121a3bf492bc892488c9230f7/api/core/model_runtime/model_providers/mistralai/llm/mistral-embed.yaml
✔️ Expected Behavior
to be defined as an embed model
❌ Actual Behavior
is defined as a llm
Hey @matthieumasse! 👋 I'm here to help you with bugs, questions, and becoming a contributor. Let's tackle this issue together while we wait for a human maintainer.
The issue with the "mistral-embed" model being incorrectly defined as a "llm" instead of an "embed" model is due to the model_type being set to llm in the YAML configuration file. To fix this, you should change the model_type to text_embedding in the configuration file. This will correctly define the model as an embedding model [1].
To continue talking to Dosu, mention @dosu.