-
Notifications
You must be signed in to change notification settings - Fork 949
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add dimensions option for ZhiPuAi embedding model #2057
base: main
Are you sure you want to change the base?
Add dimensions option for ZhiPuAi embedding model #2057
Conversation
@mxsl-gr Could you check this PR? Thanks! |
no problem. |
@@ -91,6 +91,7 @@ The prefix `spring.ai.zhipuai.embedding` is property prefix that configures the | |||
| spring.ai.zhipuai.embedding.base-url | Optional overrides the spring.ai.zhipuai.base-url to provide embedding specific url | - | |||
| spring.ai.zhipuai.embedding.api-key | Optional overrides the spring.ai.zhipuai.api-key to provide embedding specific api-key | - | |||
| spring.ai.zhipuai.embedding.options.model | The model to use | embedding-2 | |||
| spring.ai.zhipuai.embedding.options.dimensions | The number of dimensions | - |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe it can be added to the doc: the default value is 2048 when the model is embedding-3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, I will add docs for this option.
the unit tests work fine, it might be helpful to add a note about the default value of dimensions in the doc |
Signed-off-by: Assassinxc <[email protected]>
Signed-off-by: Assassinxc <[email protected]>
b6b668b
to
cacf381
Compare
Add support for ZhiPuAi embedding-3 model's dimemsions option
https://www.bigmodel.cn/dev/api/vector/embedding