diff --git a/src/main/java/io/weaviate/client6/v1/api/collections/vectorizers/Text2VecGoogleVectorizer.java b/src/main/java/io/weaviate/client6/v1/api/collections/vectorizers/Text2VecGoogleVectorizer.java index 1791a0904..33e3e1ed2 100644 --- a/src/main/java/io/weaviate/client6/v1/api/collections/vectorizers/Text2VecGoogleVectorizer.java +++ b/src/main/java/io/weaviate/client6/v1/api/collections/vectorizers/Text2VecGoogleVectorizer.java @@ -21,6 +21,12 @@ public record Text2VecGoogleVectorizer( /** Google project ID. Only relevant for Vertex AI integration. */ @SerializedName("projectId") String projectId, + /** + * Google Vertex AI region. Only relevant for Vertex AI integration. + * If omitted, the server applies its default. + */ + @SerializedName("location") String location, + /** * Weaviate defaults to {@code true} if the value is not provided. * To avoid that we send "vectorizeClassName": false all the time @@ -90,6 +96,7 @@ public Text2VecGoogleVectorizer( Integer dimensions, TaskType taskType, String projectId, + String location, boolean vectorizeCollectionName, List sourceProperties, @@ -100,6 +107,7 @@ public Text2VecGoogleVectorizer( this.titleProperty = titleProperty; this.dimensions = dimensions; this.projectId = projectId; + this.location = location; this.taskType = taskType; this.vectorizeCollectionName = false; @@ -116,6 +124,7 @@ public Text2VecGoogleVectorizer(Builder builder) { builder.dimensions, builder.taskType, builder.projectId, + builder.location, builder.vectorizeCollectionName, builder.sourceProperties, @@ -133,6 +142,8 @@ public abstract static class Builder implements ObjectBuilder v.sourceProperties("a")), + Text2VecGoogleVectorizer.vertex("projectId", v -> v.location("europe-west4").sourceProperties("a")), """ { "vectorIndexType": "hnsw", @@ -228,6 +228,7 @@ public static Object[][] testCases() { "text2vec-google": { "apiEndpoint":"us-central1-aiplatform.googleapis.com", "projectId": "projectId", + "location": "europe-west4", "properties": ["a"], "vectorizeClassName": false }