langgenius / dify

Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.
https://dify.ai
Other
52.62k stars 7.7k forks source link

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

Open matthieumasse opened 1 month ago

matthieumasse commented 1 month ago

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

dosubot[bot] commented 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.