Open matthieumasse opened 1 month ago
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.
Self Checks
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