Skip to content

Commit 27aa9d5

Browse files
Google APIscopybara-github
authored andcommitted
feat: add optimized config in v1 API
docs: Update comments for NumericFilter and Operator PiperOrigin-RevId: 720346137
1 parent 2c21b3a commit 27aa9d5

File tree

2 files changed

+23
-6
lines changed

2 files changed

+23
-6
lines changed

google/cloud/aiplatform/v1/feature_online_store_service.proto

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -178,13 +178,13 @@ message NearestNeighborQuery {
178178
// Numeric filter is used to search a subset of the entities by using boolean
179179
// rules on numeric columns.
180180
// For example:
181-
// Database Point 0: {name: “a” value_int: 42} {name: “b” value_float: 1.0}
182-
// Database Point 1: {name: “a” value_int: 10} {name: “b” value_float: 2.0}
183-
// Database Point 2: {name: “a” value_int: -1} {name: “b” value_float: 3.0}
184-
// Query: {name: “a” value_int: 12 operator: LESS} // Matches Point 1, 2
185-
// {name: “b” value_float: 2.0 operator: EQUAL} // Matches Point 1
181+
// Database Point 0: {name: "a" value_int: 42} {name: "b" value_float: 1.0}
182+
// Database Point 1: {name: "a" value_int: 10} {name: "b" value_float: 2.0}
183+
// Database Point 2: {name: "a" value_int: -1} {name: "b" value_float: 3.0}
184+
// Query: {name: "a" value_int: 12 operator: LESS} // Matches Point 1, 2
185+
// {name: "b" value_float: 2.0 operator: EQUAL} // Matches Point 1
186186
message NumericFilter {
187-
// Datapoints for which Operator is true relative to the querys Value
187+
// Datapoints for which Operator is true relative to the query's Value
188188
// field will be allowlisted.
189189
enum Operator {
190190
// Unspecified operator.

google/cloud/aiplatform/v1/feature_view.proto

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ package google.cloud.aiplatform.v1;
1818

1919
import "google/api/field_behavior.proto";
2020
import "google/api/resource.proto";
21+
import "google/cloud/aiplatform/v1/machine_resources.proto";
2122
import "google/protobuf/timestamp.proto";
2223

2324
option csharp_namespace = "Google.Cloud.AIPlatform.V1";
@@ -180,6 +181,17 @@ message FeatureView {
180181
int64 rag_corpus_id = 2 [(google.api.field_behavior) = OPTIONAL];
181182
}
182183

184+
// Configuration for FeatureViews created in Optimized FeatureOnlineStore.
185+
message OptimizedConfig {
186+
// Optional. A description of resources that the FeatureView uses, which to
187+
// large degree are decided by Vertex AI, and optionally allows only a
188+
// modest additional configuration. If min_replica_count is not set, the
189+
// default value is 2. If max_replica_count is not set, the default value
190+
// is 6. The max allowed replica count is 1000.
191+
AutomaticResources automatic_resources = 7
192+
[(google.api.field_behavior) = OPTIONAL];
193+
}
194+
183195
// Service agent type used during data sync.
184196
enum ServiceAgentType {
185197
// By default, the project-level Vertex AI Service Agent is enabled.
@@ -252,6 +264,11 @@ message FeatureView {
252264
// performed during online serving.
253265
IndexConfig index_config = 15 [(google.api.field_behavior) = OPTIONAL];
254266

267+
// Optional. Configuration for FeatureView created under Optimized
268+
// FeatureOnlineStore.
269+
OptimizedConfig optimized_config = 16
270+
[(google.api.field_behavior) = OPTIONAL];
271+
255272
// Optional. Service agent type used during data sync. By default, the Vertex
256273
// AI Service Agent is used. When using an IAM Policy to isolate this
257274
// FeatureView within a project, a separate service account should be

0 commit comments

Comments
 (0)