Vertex AI integration configuration
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 48/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Java
- Estrellas
- 90
- Forks
- 39
- Merge medio
- 22 h 26 min
- PR fusionados (30 d)
- 1
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de typesense/typesense-java
-
Add and retrieve metadata section of Collection Model definition (on creation or fetch)Quizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
typesense/typesense-java#82 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 22/100
typesense/typesense-java#60 · 3 comentarios ·
-
Timeout exceptionAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 30/100
typesense/typesense-java#59 · 3 comentarios · 1 reacción ·
-
Delete collectionAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 28/100
typesense/typesense-java#45 · 2 comentarios · 1 reacción ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
typesense/typesense-java#36 · 1 comentario · 1 reacción ·
Todos los issues de typesense/typesense-java
Issues similares
-
documentation good first issue help wanted
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
-
Attachment upload accepts a file part with no file chosen and stores an empty comp_attachmentPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
eclipse-sw360/sw360#4849 ·
Los mantenedores suelen responder en 2 días
-
[Bug]: Skip cross-field checkpointing validation rules when checkpointing is disabledPosiblemente ocupada @hutiefang76 la tomó hoy. Abiertoaccepted bug good first issue java
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Sekelenao/Flinkboot#473 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
help wanted priority: low Review effort [1-5]: 2 status: needs-triage type: tests
Dificultad 1/5 1-3 horas Aptitud para principiantes 86/100
carlos-emr/carlos#6433 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 2 días