Vertex AI integration configuration
まだ誰も着手していません。
評価
調査の方向性
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分
- マージ済み PR(30日)
- 1
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
typesense/typesense-java のほかの issue
-
Add and retrieve metadata section of Collection Model definition (on creation or fetch)再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
typesense/typesense-java#82 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 22/100
typesense/typesense-java#60 · コメント 3 件 ·
-
Timeout exceptionオープン
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
typesense/typesense-java#59 · コメント 3 件 · リアクション 1 件 ·
-
Delete collectionオープン
難易度 3/5 1〜2日 初心者へのやさしさ 28/100
typesense/typesense-java#45 · コメント 2 件 · リアクション 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
typesense/typesense-java#36 · コメント 1 件 · リアクション 1 件 ·
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対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン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 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 2 日以内に返信