mistral-embed is not defined as an embedding model #6163

Closed
opened 2026-02-21 18:14:21 -05:00 by yindo · 1 comment
Owner

Originally created by @matthieumasse on GitHub (Oct 18, 2024).

Originally assigned to: @JohnJyong, @Yawen-1010 on GitHub.

Self Checks

  • 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 (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • 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

Originally created by @matthieumasse on GitHub (Oct 18, 2024). Originally assigned to: @JohnJyong, @Yawen-1010 on GitHub. ### Self Checks - [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 (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [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
yindo added the 👻 feat:rag label 2026-02-21 18:14:21 -05:00
yindo closed this issue 2026-02-21 18:14:21 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Oct 18, 2024):

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.

@dosubot[bot] commented on GitHub (Oct 18, 2024): <!-- Greeting --> 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. <!-- Answer --> 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 <sup>[[1]](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/model_providers/mistralai/llm/mistral-embed.yaml)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#6163