mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-22 01:55:27 -04:00
How to set dimension of tongyi embedding model ? #564
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @chenly15 on GitHub (Aug 15, 2025).
Self Checks
Dify version
1.7.0
Plugin version
0.0.38
Cloud or Self Hosted
Self Hosted (Source)
Questions
The dimension is a adjustable parameters for embedding models of tongyi series. How to set dimension adaptively in dify while using RAG?
✔️ Error log
No response
@dosubot[bot] commented on GitHub (Aug 15, 2025):
Dify does not currently support fully adaptive embedding dimension settings for Tongyi models in RAG workflows. Instead, you need to manually select the embedding dimension that matches both your chosen Tongyi embedding model and your vector database configuration.
Recent updates in the dify-official-plugins repository added dynamic parameter loading and model-specific options for text embedding models, including Tongyi. This means you should now see relevant parameters (like dimension) exposed in the plugin configuration UI or YAML files, allowing you to set the dimension explicitly when configuring your embedding model. These changes also include validation to ensure the dimension matches the model and vector DB requirements. See the details in this PR.
To set the dimension:
bedrock.yaml). Select the dimension that matches your model and vector DB.If you need to change the dimension later, update the configuration and re-index your data to match the new embedding size.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other
