Vertex AI integration configuration
還沒有人認領這個 Issue。
評估
研究方向
Start with the FieldEmbedModelConfig model class, which should sit alongside the other generated collection-schema models, and compare its properties with the embed model_config section of the Typesense OpenAPI spec. Check whether refresh_token is in the spec and missing from the Java class, and whether the builder methods follow the same pattern as accessToken. Done when the documented refreshToken(...) call compiles and the serialized request body includes refresh_token.
由索引模型根據 Issue 內容生成。
描述
Description
While configuring Typesense to use Vertex AI it seems the property refreshToken is missing on FieldEmbedModelConfig class, so we cannot setup properly it, so it cannot connect to GCP Vertex AI API, throwing a 400 with the message: Property embed.model_config.refresh_token is missing or is not a string.
Actually, in the documentation it shows the refreshToken property being configured:
CollectionSchema collectionSchema = new CollectionSchema();
ArrayList<String> embedFrom = new ArrayList<>();
embedFrom.add("product_name");
embedFrom.add("categories");
collectionschema.name("products")
.addFieldsItem(new Field().name("product_name").type(FieldTypes.STRING))
.addFieldsItem(new Field().name("categories").type(FieldTypes.STRING_ARRAY))
.addFieldsItem(new Field().name("embedding").type(FieldTypes.FLOAT_ARRAY).embed(
new FieldEmbed().from(embedFrom).modelConfig(new FieldEmbedModelConfig().modelName("gcp/embedding-gecko-001")
.accessToken("your_gcp_access_token")
.refreshToken("your_gcp_refresh_token") <-- this one is missing!
.clientId("your_gcp_app_client_id")
.clientSecret("your_gcp_client_secret").projectId("your_gcp_project_id")))
));
CollectionResponse collectionResponse = client.collections().create(collectionSchema);
Guess the OpenAPI model is not fully synced with the one used in this library.
Steps to reproduce
Follow the steps from the documentation
Expected Behavior
Typesense library is able to connect to Vertex AI to generate embeddings
Actual Behavior
Typesense library is not able to connect to Vertex AI, throwing a 400 with the message: Property embed.model_config.refresh_token is missing or is not a string.
Metadata
Typesense Version: 0.8.1
OS: MacOS Sonoma 14.5
- 主要語言
- Java
- 星號
- 90
- 分支
- 39
- 平均合併
- 22 小時 26 分鐘
- 30 天內合併 PR
- 1
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
typesense/typesense-java 的其他 Issue
-
Add and retrieve metadata section of Collection Model definition (on creation or fetch)可能重新可做 關聯的 PR 已關閉且未合併。 未關閉
難度 3/5 1-2 天 新手友好度 45/100
typesense/typesense-java#82 ·
-
難度 3/5 1-2 天 新手友好度 22/100
typesense/typesense-java#60 · 3 則留言 ·
-
難度 3/5 1-2 天 新手友好度 30/100
typesense/typesense-java#59 · 3 則留言 · 1 個 reaction ·
-
難度 3/5 1-2 天 新手友好度 28/100
typesense/typesense-java#45 · 2 則留言 · 1 個 reaction ·
-
難度 3/5 1-2 天 新手友好度 35/100
typesense/typesense-java#36 · 1 則留言 · 1 個 reaction ·
查看 typesense/typesense-java 的全部 Issue
相似的 Issue
-
documentation good first issue help wanted
難度 1/5 1 小時以內 新手友好度 90/100
-
Attachment upload accepts a file part with no file chosen and stores an empty comp_attachment可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉bug
難度 2/5 1-3 小時 新手友好度 75/100
eclipse-sw360/sw360#4849 ·
維護者通常 2 天內回覆
-
[Bug]: Skip cross-field checkpointing validation rules when checkpointing is disabled可能已有人在做 @hutiefang76 今天認領。 未關閉accepted bug good first issue java
難度 2/5 1-3 小時 新手友好度 72/100
Sekelenao/Flinkboot#473 · 1 則留言 ·
維護者通常 1 天內回覆
-
help wanted priority: low Review effort [1-5]: 2 status: needs-triage type: tests
難度 1/5 1-3 小時 新手友好度 86/100
carlos-emr/carlos#6433 · 1 則留言 · 1 個 reaction ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 2 天內回覆