Vertex AI integration configuration
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Accessibilité débutants
- 48/100
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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
- Langage dominant
- Java
- Étoiles
- 90
- Forks
- 39
- Merge moyen
- 22 h 26 min
- PR mergées (30 j)
- 1
Préparer son environnement
- Fournit un Dockerfile ou un fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de typesense/typesense-java
-
Add and retrieve metadata section of Collection Model definition (on creation or fetch)Peut-être à nouveau libre Une pull request pour cette issue a été fermée sans être fusionnée. Ouverte
Difficulté 3/5 1-2 jours Accessibilité débutants 45/100
typesense/typesense-java#82 ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 22/100
typesense/typesense-java#60 · 3 commentaires ·
-
Timeout exceptionOuverte
Difficulté 3/5 1-2 jours Accessibilité débutants 30/100
typesense/typesense-java#59 · 3 commentaires · 1 réaction ·
-
Delete collectionOuverte
Difficulté 3/5 1-2 jours Accessibilité débutants 28/100
typesense/typesense-java#45 · 2 commentaires · 1 réaction ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 35/100
typesense/typesense-java#36 · 1 commentaire · 1 réaction ·
Toutes les issues de typesense/typesense-java
Issues similaires
-
documentation good first issue help wanted
Difficulté 1/5 Moins d'une heure Accessibilité débutants 90/100
-
Attachment upload accepts a file part with no file chosen and stores an empty comp_attachmentPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
eclipse-sw360/sw360#4849 ·
Les mainteneurs répondent en général sous 2 jours
-
[Bug]: Skip cross-field checkpointing validation rules when checkpointing is disabledPeut-être pris @hutiefang76 l’a pris aujourd’hui. Ouverteaccepted bug good first issue java
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Sekelenao/Flinkboot#473 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
help wanted priority: low Review effort [1-5]: 2 status: needs-triage type: tests
Difficulté 1/5 1-3 heures Accessibilité débutants 86/100
carlos-emr/carlos#6433 · 1 commentaire · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
Les mainteneurs répondent en général sous 2 jours