Skip to content

feat: 增加vertex embedding的支持,修改vertex的模型adapter匹配逻辑#2267

Open
RandyZ wants to merge 7 commits intosongquanpeng:mainfrom
RandyZ:add-vertex-embedding-support
Open

feat: 增加vertex embedding的支持,修改vertex的模型adapter匹配逻辑#2267
RandyZ wants to merge 7 commits intosongquanpeng:mainfrom
RandyZ:add-vertex-embedding-support

Conversation

@RandyZ
Copy link

@RandyZ RandyZ commented May 10, 2025

Feature:

  1. 改动VertexAI的GetAdaptor逻辑,default增加模型adapter的逻辑,便于适配后续新模型产生
  2. 增加VertexAI的Embedding的adapter,支持VertexAI的embedding api
  3. Vertex中的Embedding模型支持微调任务类型,比如想使用“RETRIEVAL_DOCUMENT”类型的微调任务,可以选择模型名称填写text-multilingual-embedding-002?task_type=RETRIEVAL_DOCUMENT

https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/text-embeddings-api#request_body

  1. 最新的gemini-2.5-flash-preview-04-17模型默认会开启Thinking模式,支持传递?thinking=1&thinking_budget=500来控制

https://cloud.google.com/vertex-ai/generative-ai/docs/thinking

我已确认该 PR 已自测通过,相关截图如下:

image
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant