Skip to content

Commit f36c475

Browse files
Google APIscopybara-github
authored andcommitted
feat: Add batch prediction assessments to multimodal dataset RPCs
PiperOrigin-RevId: 740340685
1 parent 9ce0397 commit f36c475

1 file changed

Lines changed: 54 additions & 0 deletions

File tree

google/cloud/aiplatform/v1beta1/dataset_service.proto

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -948,6 +948,18 @@ message AssessDataRequest {
948948
string model_name = 1 [(google.api.field_behavior) = REQUIRED];
949949
}
950950

951+
// Configuration for the batch prediction validation assessment.
952+
message BatchPredictionValidationAssessmentConfig {
953+
// Required. The name of the model used for batch prediction.
954+
string model_name = 1 [(google.api.field_behavior) = REQUIRED];
955+
}
956+
957+
// Configuration for the batch prediction resource usage assessment.
958+
message BatchPredictionResourceUsageAssessmentConfig {
959+
// Required. The name of the model used for batch prediction.
960+
string model_name = 1 [(google.api.field_behavior) = REQUIRED];
961+
}
962+
951963
// The assessment type.
952964
oneof assessment_config {
953965
// Optional. Configuration for the tuning validation assessment.
@@ -958,6 +970,17 @@ message AssessDataRequest {
958970
TuningResourceUsageAssessmentConfig
959971
tuning_resource_usage_assessment_config = 3
960972
[(google.api.field_behavior) = OPTIONAL];
973+
974+
// Optional. Configuration for the batch prediction validation assessment.
975+
BatchPredictionValidationAssessmentConfig
976+
batch_prediction_validation_assessment_config = 6
977+
[(google.api.field_behavior) = OPTIONAL];
978+
979+
// Optional. Configuration for the batch prediction resource usage
980+
// assessment.
981+
BatchPredictionResourceUsageAssessmentConfig
982+
batch_prediction_resource_usage_assessment_config = 7
983+
[(google.api.field_behavior) = OPTIONAL];
961984
}
962985

963986
// The read config for the dataset.
@@ -966,6 +989,10 @@ message AssessDataRequest {
966989
// assess assembled data.
967990
GeminiTemplateConfig gemini_template_config = 4
968991
[(google.api.field_behavior) = OPTIONAL];
992+
993+
// Optional. The column name in the underlying table that contains already
994+
// fully assembled requests.
995+
string request_column_name = 5 [(google.api.field_behavior) = OPTIONAL];
969996
}
970997

971998
// Required. The name of the Dataset resource. Used only for MULTIMODAL
@@ -997,6 +1024,18 @@ message AssessDataResponse {
9971024
int64 billable_character_count = 2;
9981025
}
9991026

1027+
// The result of the batch prediction validation assessment.
1028+
message BatchPredictionValidationAssessmentResult {}
1029+
1030+
// The result of the batch prediction resource usage assessment.
1031+
message BatchPredictionResourceUsageAssessmentResult {
1032+
// Number of tokens in the batch prediction dataset.
1033+
int64 token_count = 1;
1034+
1035+
// Number of audio tokens in the batch prediction dataset.
1036+
int64 audio_token_count = 2;
1037+
}
1038+
10001039
// The assessment result.
10011040
oneof assessment_result {
10021041
// Optional. The result of the tuning validation assessment.
@@ -1007,6 +1046,16 @@ message AssessDataResponse {
10071046
TuningResourceUsageAssessmentResult
10081047
tuning_resource_usage_assessment_result = 2
10091048
[(google.api.field_behavior) = OPTIONAL];
1049+
1050+
// Optional. The result of the batch prediction validation assessment.
1051+
BatchPredictionValidationAssessmentResult
1052+
batch_prediction_validation_assessment_result = 3
1053+
[(google.api.field_behavior) = OPTIONAL];
1054+
1055+
// Optional. The result of the batch prediction resource usage assessment.
1056+
BatchPredictionResourceUsageAssessmentResult
1057+
batch_prediction_resource_usage_assessment_result = 4
1058+
[(google.api.field_behavior) = OPTIONAL];
10101059
}
10111060
}
10121061

@@ -1110,6 +1159,11 @@ message AssembleDataRequest {
11101159
// Optional. Config for assembling templates with a Gemini API structure.
11111160
GeminiTemplateConfig gemini_template_config = 2
11121161
[(google.api.field_behavior) = OPTIONAL];
1162+
1163+
// Optional. The column name in the underlying table that contains already
1164+
// fully assembled requests. If this field is set, the original request will
1165+
// be copied to the output table.
1166+
string request_column_name = 5 [(google.api.field_behavior) = OPTIONAL];
11131167
}
11141168

11151169
// Required. The name of the Dataset resource (used only for MULTIMODAL

0 commit comments

Comments
 (0)