Vertex AI integration configuration
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 48/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- Java
- Stelle
- 90
- Fork
- 39
- Merge medio
- 22h 26m
- PR unite (30g)
- 1
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di typesense/typesense-java
-
Add and retrieve metadata section of Collection Model definition (on creation or fetch)Forse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
typesense/typesense-java#82 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 22/100
typesense/typesense-java#60 · 3 commenti ·
-
Timeout exceptionAperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 30/100
typesense/typesense-java#59 · 3 commenti · 1 reazione ·
-
Delete collectionAperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 28/100
typesense/typesense-java#45 · 2 commenti · 1 reazione ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
typesense/typesense-java#36 · 1 commento · 1 reazione ·
Tutte le issue di typesense/typesense-java
Issue simili
-
documentation good first issue help wanted
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
-
Attachment upload accepts a file part with no file chosen and stores an empty comp_attachmentForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
eclipse-sw360/sw360#4849 ·
I maintainer di solito rispondono entro 2 giorni
-
[Bug]: Skip cross-field checkpointing validation rules when checkpointing is disabledForse già presa @hutiefang76 l’ha presa oggi. Apertaaccepted bug good first issue java
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Sekelenao/Flinkboot#473 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
help wanted priority: low Review effort [1-5]: 2 status: needs-triage type: tests
Difficoltà 1/5 1-3 ore Idoneità per principianti 86/100
carlos-emr/carlos#6433 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 2 giorni