google-apis-aiplatform_v1beta1 0.22.0 → 0.23.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/aiplatform_v1beta1/classes.rb +3771 -207
- data/lib/google/apis/aiplatform_v1beta1/gem_version.rb +2 -2
- data/lib/google/apis/aiplatform_v1beta1/representations.rb +2087 -152
- data/lib/google/apis/aiplatform_v1beta1/service.rb +558 -0
- metadata +3 -3
@@ -802,6 +802,11 @@ module Google
|
|
802
802
|
# @return [Google::Apis::AiplatformV1beta1::CloudAiNlLlmProtoServicePartBlob]
|
803
803
|
attr_accessor :inline_data
|
804
804
|
|
805
|
+
# Metadata provides extra info for building the LM Root request.
|
806
|
+
# Corresponds to the JSON property `lmRootMetadata`
|
807
|
+
# @return [Google::Apis::AiplatformV1beta1::CloudAiNlLlmProtoServicePartLmRootMetadata]
|
808
|
+
attr_accessor :lm_root_metadata
|
809
|
+
|
805
810
|
# Text input.
|
806
811
|
# Corresponds to the JSON property `text`
|
807
812
|
# @return [String]
|
@@ -823,6 +828,7 @@ module Google
|
|
823
828
|
@function_call = args[:function_call] if args.key?(:function_call)
|
824
829
|
@function_response = args[:function_response] if args.key?(:function_response)
|
825
830
|
@inline_data = args[:inline_data] if args.key?(:inline_data)
|
831
|
+
@lm_root_metadata = args[:lm_root_metadata] if args.key?(:lm_root_metadata)
|
826
832
|
@text = args[:text] if args.key?(:text)
|
827
833
|
@video_metadata = args[:video_metadata] if args.key?(:video_metadata)
|
828
834
|
end
|
@@ -911,6 +917,25 @@ module Google
|
|
911
917
|
end
|
912
918
|
end
|
913
919
|
|
920
|
+
# Metadata provides extra info for building the LM Root request.
|
921
|
+
class CloudAiNlLlmProtoServicePartLmRootMetadata
|
922
|
+
include Google::Apis::Core::Hashable
|
923
|
+
|
924
|
+
# Chunk id that will be used when mapping the part to the LM Root's chunk.
|
925
|
+
# Corresponds to the JSON property `chunkId`
|
926
|
+
# @return [String]
|
927
|
+
attr_accessor :chunk_id
|
928
|
+
|
929
|
+
def initialize(**args)
|
930
|
+
update!(**args)
|
931
|
+
end
|
932
|
+
|
933
|
+
# Update properties of this object
|
934
|
+
def update!(**args)
|
935
|
+
@chunk_id = args[:chunk_id] if args.key?(:chunk_id)
|
936
|
+
end
|
937
|
+
end
|
938
|
+
|
914
939
|
# Metadata describes the input video content.
|
915
940
|
class CloudAiNlLlmProtoServicePartVideoMetadata
|
916
941
|
include Google::Apis::Core::Hashable
|
@@ -3218,11 +3243,114 @@ module Google
|
|
3218
3243
|
end
|
3219
3244
|
end
|
3220
3245
|
|
3221
|
-
#
|
3246
|
+
# Input for bleu metric.
|
3247
|
+
class GoogleCloudAiplatformV1beta1BleuInput
|
3248
|
+
include Google::Apis::Core::Hashable
|
3249
|
+
|
3250
|
+
# Required. Repeated bleu instances.
|
3251
|
+
# Corresponds to the JSON property `instances`
|
3252
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BleuInstance>]
|
3253
|
+
attr_accessor :instances
|
3254
|
+
|
3255
|
+
# Spec for bleu score metric - calculates the precision of n-grams in the
|
3256
|
+
# prediction as compared to reference - returns a score ranging between 0 to 1.
|
3257
|
+
# Corresponds to the JSON property `metricSpec`
|
3258
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BleuSpec]
|
3259
|
+
attr_accessor :metric_spec
|
3260
|
+
|
3261
|
+
def initialize(**args)
|
3262
|
+
update!(**args)
|
3263
|
+
end
|
3264
|
+
|
3265
|
+
# Update properties of this object
|
3266
|
+
def update!(**args)
|
3267
|
+
@instances = args[:instances] if args.key?(:instances)
|
3268
|
+
@metric_spec = args[:metric_spec] if args.key?(:metric_spec)
|
3269
|
+
end
|
3270
|
+
end
|
3271
|
+
|
3272
|
+
# Spec for bleu instance.
|
3273
|
+
class GoogleCloudAiplatformV1beta1BleuInstance
|
3274
|
+
include Google::Apis::Core::Hashable
|
3275
|
+
|
3276
|
+
# Required. Output of the evaluated model.
|
3277
|
+
# Corresponds to the JSON property `prediction`
|
3278
|
+
# @return [String]
|
3279
|
+
attr_accessor :prediction
|
3280
|
+
|
3281
|
+
# Required. Ground truth used to compare against the prediction.
|
3282
|
+
# Corresponds to the JSON property `reference`
|
3283
|
+
# @return [String]
|
3284
|
+
attr_accessor :reference
|
3285
|
+
|
3286
|
+
def initialize(**args)
|
3287
|
+
update!(**args)
|
3288
|
+
end
|
3289
|
+
|
3290
|
+
# Update properties of this object
|
3291
|
+
def update!(**args)
|
3292
|
+
@prediction = args[:prediction] if args.key?(:prediction)
|
3293
|
+
@reference = args[:reference] if args.key?(:reference)
|
3294
|
+
end
|
3295
|
+
end
|
3296
|
+
|
3297
|
+
# Bleu metric value for an instance.
|
3298
|
+
class GoogleCloudAiplatformV1beta1BleuMetricValue
|
3299
|
+
include Google::Apis::Core::Hashable
|
3300
|
+
|
3301
|
+
# Output only. Bleu score.
|
3302
|
+
# Corresponds to the JSON property `score`
|
3303
|
+
# @return [Float]
|
3304
|
+
attr_accessor :score
|
3305
|
+
|
3306
|
+
def initialize(**args)
|
3307
|
+
update!(**args)
|
3308
|
+
end
|
3309
|
+
|
3310
|
+
# Update properties of this object
|
3311
|
+
def update!(**args)
|
3312
|
+
@score = args[:score] if args.key?(:score)
|
3313
|
+
end
|
3314
|
+
end
|
3315
|
+
|
3316
|
+
# Results for bleu metric.
|
3317
|
+
class GoogleCloudAiplatformV1beta1BleuResults
|
3318
|
+
include Google::Apis::Core::Hashable
|
3319
|
+
|
3320
|
+
# Output only. Bleu metric values.
|
3321
|
+
# Corresponds to the JSON property `bleuMetricValues`
|
3322
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BleuMetricValue>]
|
3323
|
+
attr_accessor :bleu_metric_values
|
3324
|
+
|
3325
|
+
def initialize(**args)
|
3326
|
+
update!(**args)
|
3327
|
+
end
|
3328
|
+
|
3329
|
+
# Update properties of this object
|
3330
|
+
def update!(**args)
|
3331
|
+
@bleu_metric_values = args[:bleu_metric_values] if args.key?(:bleu_metric_values)
|
3332
|
+
end
|
3333
|
+
end
|
3334
|
+
|
3335
|
+
# Spec for bleu score metric - calculates the precision of n-grams in the
|
3336
|
+
# prediction as compared to reference - returns a score ranging between 0 to 1.
|
3337
|
+
class GoogleCloudAiplatformV1beta1BleuSpec
|
3338
|
+
include Google::Apis::Core::Hashable
|
3339
|
+
|
3340
|
+
def initialize(**args)
|
3341
|
+
update!(**args)
|
3342
|
+
end
|
3343
|
+
|
3344
|
+
# Update properties of this object
|
3345
|
+
def update!(**args)
|
3346
|
+
end
|
3347
|
+
end
|
3348
|
+
|
3349
|
+
# Content blob. It's preferred to send as text directly rather than raw bytes.
|
3222
3350
|
class GoogleCloudAiplatformV1beta1Blob
|
3223
3351
|
include Google::Apis::Core::Hashable
|
3224
3352
|
|
3225
|
-
# Required. Raw bytes
|
3353
|
+
# Required. Raw bytes.
|
3226
3354
|
# Corresponds to the JSON property `data`
|
3227
3355
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
3228
3356
|
# @return [String]
|
@@ -3439,26 +3567,6 @@ module Google
|
|
3439
3567
|
end
|
3440
3568
|
end
|
3441
3569
|
|
3442
|
-
# Placeholder for all checkpoint related data. Any data needed to restore a
|
3443
|
-
# request and more go/vertex-extension-query-operation
|
3444
|
-
class GoogleCloudAiplatformV1beta1CheckPoint
|
3445
|
-
include Google::Apis::Core::Hashable
|
3446
|
-
|
3447
|
-
# Required. encoded checkpoint
|
3448
|
-
# Corresponds to the JSON property `content`
|
3449
|
-
# @return [String]
|
3450
|
-
attr_accessor :content
|
3451
|
-
|
3452
|
-
def initialize(**args)
|
3453
|
-
update!(**args)
|
3454
|
-
end
|
3455
|
-
|
3456
|
-
# Update properties of this object
|
3457
|
-
def update!(**args)
|
3458
|
-
@content = args[:content] if args.key?(:content)
|
3459
|
-
end
|
3460
|
-
end
|
3461
|
-
|
3462
3570
|
# This message will be placed in the metadata field of a google.longrunning.
|
3463
3571
|
# Operation associated with a CheckTrialEarlyStoppingState request.
|
3464
3572
|
class GoogleCloudAiplatformV1beta1CheckTrialEarlyStoppingStateMetatdata
|
@@ -3599,6 +3707,100 @@ module Google
|
|
3599
3707
|
end
|
3600
3708
|
end
|
3601
3709
|
|
3710
|
+
# Input for coherence metric.
|
3711
|
+
class GoogleCloudAiplatformV1beta1CoherenceInput
|
3712
|
+
include Google::Apis::Core::Hashable
|
3713
|
+
|
3714
|
+
# Spec for coherence instance.
|
3715
|
+
# Corresponds to the JSON property `instance`
|
3716
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CoherenceInstance]
|
3717
|
+
attr_accessor :instance
|
3718
|
+
|
3719
|
+
# Spec for coherence score metric.
|
3720
|
+
# Corresponds to the JSON property `metricSpec`
|
3721
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CoherenceSpec]
|
3722
|
+
attr_accessor :metric_spec
|
3723
|
+
|
3724
|
+
def initialize(**args)
|
3725
|
+
update!(**args)
|
3726
|
+
end
|
3727
|
+
|
3728
|
+
# Update properties of this object
|
3729
|
+
def update!(**args)
|
3730
|
+
@instance = args[:instance] if args.key?(:instance)
|
3731
|
+
@metric_spec = args[:metric_spec] if args.key?(:metric_spec)
|
3732
|
+
end
|
3733
|
+
end
|
3734
|
+
|
3735
|
+
# Spec for coherence instance.
|
3736
|
+
class GoogleCloudAiplatformV1beta1CoherenceInstance
|
3737
|
+
include Google::Apis::Core::Hashable
|
3738
|
+
|
3739
|
+
# Required. Output of the evaluated model.
|
3740
|
+
# Corresponds to the JSON property `prediction`
|
3741
|
+
# @return [String]
|
3742
|
+
attr_accessor :prediction
|
3743
|
+
|
3744
|
+
def initialize(**args)
|
3745
|
+
update!(**args)
|
3746
|
+
end
|
3747
|
+
|
3748
|
+
# Update properties of this object
|
3749
|
+
def update!(**args)
|
3750
|
+
@prediction = args[:prediction] if args.key?(:prediction)
|
3751
|
+
end
|
3752
|
+
end
|
3753
|
+
|
3754
|
+
# Spec for coherence result.
|
3755
|
+
class GoogleCloudAiplatformV1beta1CoherenceResult
|
3756
|
+
include Google::Apis::Core::Hashable
|
3757
|
+
|
3758
|
+
# Output only. Confidence for coherence score.
|
3759
|
+
# Corresponds to the JSON property `confidence`
|
3760
|
+
# @return [Float]
|
3761
|
+
attr_accessor :confidence
|
3762
|
+
|
3763
|
+
# Output only. Explanation for coherence score.
|
3764
|
+
# Corresponds to the JSON property `explanation`
|
3765
|
+
# @return [String]
|
3766
|
+
attr_accessor :explanation
|
3767
|
+
|
3768
|
+
# Output only. Coherence score.
|
3769
|
+
# Corresponds to the JSON property `score`
|
3770
|
+
# @return [Float]
|
3771
|
+
attr_accessor :score
|
3772
|
+
|
3773
|
+
def initialize(**args)
|
3774
|
+
update!(**args)
|
3775
|
+
end
|
3776
|
+
|
3777
|
+
# Update properties of this object
|
3778
|
+
def update!(**args)
|
3779
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
3780
|
+
@explanation = args[:explanation] if args.key?(:explanation)
|
3781
|
+
@score = args[:score] if args.key?(:score)
|
3782
|
+
end
|
3783
|
+
end
|
3784
|
+
|
3785
|
+
# Spec for coherence score metric.
|
3786
|
+
class GoogleCloudAiplatformV1beta1CoherenceSpec
|
3787
|
+
include Google::Apis::Core::Hashable
|
3788
|
+
|
3789
|
+
# Optional. Which version to use for evaluation.
|
3790
|
+
# Corresponds to the JSON property `version`
|
3791
|
+
# @return [Fixnum]
|
3792
|
+
attr_accessor :version
|
3793
|
+
|
3794
|
+
def initialize(**args)
|
3795
|
+
update!(**args)
|
3796
|
+
end
|
3797
|
+
|
3798
|
+
# Update properties of this object
|
3799
|
+
def update!(**args)
|
3800
|
+
@version = args[:version] if args.key?(:version)
|
3801
|
+
end
|
3802
|
+
end
|
3803
|
+
|
3602
3804
|
# Request message for VizierService.CompleteTrial.
|
3603
3805
|
class GoogleCloudAiplatformV1beta1CompleteTrialRequest
|
3604
3806
|
include Google::Apis::Core::Hashable
|
@@ -6300,6 +6502,19 @@ module Google
|
|
6300
6502
|
end
|
6301
6503
|
end
|
6302
6504
|
|
6505
|
+
# The input content is encapsulated and uploaded in the request.
|
6506
|
+
class GoogleCloudAiplatformV1beta1DirectUploadSource
|
6507
|
+
include Google::Apis::Core::Hashable
|
6508
|
+
|
6509
|
+
def initialize(**args)
|
6510
|
+
update!(**args)
|
6511
|
+
end
|
6512
|
+
|
6513
|
+
# Update properties of this object
|
6514
|
+
def update!(**args)
|
6515
|
+
end
|
6516
|
+
end
|
6517
|
+
|
6303
6518
|
# Represents the spec of disk options.
|
6304
6519
|
class GoogleCloudAiplatformV1beta1DiskSpec
|
6305
6520
|
include Google::Apis::Core::Hashable
|
@@ -6692,6 +6907,308 @@ module Google
|
|
6692
6907
|
end
|
6693
6908
|
end
|
6694
6909
|
|
6910
|
+
# Request message for EvaluationService.EvaluateInstances.
|
6911
|
+
class GoogleCloudAiplatformV1beta1EvaluateInstancesRequest
|
6912
|
+
include Google::Apis::Core::Hashable
|
6913
|
+
|
6914
|
+
# Input for bleu metric.
|
6915
|
+
# Corresponds to the JSON property `bleuInput`
|
6916
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BleuInput]
|
6917
|
+
attr_accessor :bleu_input
|
6918
|
+
|
6919
|
+
# Input for coherence metric.
|
6920
|
+
# Corresponds to the JSON property `coherenceInput`
|
6921
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CoherenceInput]
|
6922
|
+
attr_accessor :coherence_input
|
6923
|
+
|
6924
|
+
# Input for exact match metric.
|
6925
|
+
# Corresponds to the JSON property `exactMatchInput`
|
6926
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExactMatchInput]
|
6927
|
+
attr_accessor :exact_match_input
|
6928
|
+
|
6929
|
+
# Input for fluency metric.
|
6930
|
+
# Corresponds to the JSON property `fluencyInput`
|
6931
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FluencyInput]
|
6932
|
+
attr_accessor :fluency_input
|
6933
|
+
|
6934
|
+
# Input for fulfillment metric.
|
6935
|
+
# Corresponds to the JSON property `fulfillmentInput`
|
6936
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FulfillmentInput]
|
6937
|
+
attr_accessor :fulfillment_input
|
6938
|
+
|
6939
|
+
# Input for groundedness metric.
|
6940
|
+
# Corresponds to the JSON property `groundednessInput`
|
6941
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GroundednessInput]
|
6942
|
+
attr_accessor :groundedness_input
|
6943
|
+
|
6944
|
+
# Input for pairwise question answering quality metric.
|
6945
|
+
# Corresponds to the JSON property `pairwiseQuestionAnsweringQualityInput`
|
6946
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PairwiseQuestionAnsweringQualityInput]
|
6947
|
+
attr_accessor :pairwise_question_answering_quality_input
|
6948
|
+
|
6949
|
+
# Input for pairwise summarization quality metric.
|
6950
|
+
# Corresponds to the JSON property `pairwiseSummarizationQualityInput`
|
6951
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PairwiseSummarizationQualityInput]
|
6952
|
+
attr_accessor :pairwise_summarization_quality_input
|
6953
|
+
|
6954
|
+
# Input for question answering correctness metric.
|
6955
|
+
# Corresponds to the JSON property `questionAnsweringCorrectnessInput`
|
6956
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QuestionAnsweringCorrectnessInput]
|
6957
|
+
attr_accessor :question_answering_correctness_input
|
6958
|
+
|
6959
|
+
# Input for question answering helpfulness metric.
|
6960
|
+
# Corresponds to the JSON property `questionAnsweringHelpfulnessInput`
|
6961
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QuestionAnsweringHelpfulnessInput]
|
6962
|
+
attr_accessor :question_answering_helpfulness_input
|
6963
|
+
|
6964
|
+
# Input for question answering quality metric.
|
6965
|
+
# Corresponds to the JSON property `questionAnsweringQualityInput`
|
6966
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QuestionAnsweringQualityInput]
|
6967
|
+
attr_accessor :question_answering_quality_input
|
6968
|
+
|
6969
|
+
# Input for question answering relevance metric.
|
6970
|
+
# Corresponds to the JSON property `questionAnsweringRelevanceInput`
|
6971
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QuestionAnsweringRelevanceInput]
|
6972
|
+
attr_accessor :question_answering_relevance_input
|
6973
|
+
|
6974
|
+
# Input for rag context recall metric.
|
6975
|
+
# Corresponds to the JSON property `ragContextRecallInput`
|
6976
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagContextRecallInput]
|
6977
|
+
attr_accessor :rag_context_recall_input
|
6978
|
+
|
6979
|
+
# Input for response recall metric.
|
6980
|
+
# Corresponds to the JSON property `responseRecallInput`
|
6981
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ResponseRecallInput]
|
6982
|
+
attr_accessor :response_recall_input
|
6983
|
+
|
6984
|
+
# Input for rouge metric.
|
6985
|
+
# Corresponds to the JSON property `rougeInput`
|
6986
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RougeInput]
|
6987
|
+
attr_accessor :rouge_input
|
6988
|
+
|
6989
|
+
# Input for safety metric.
|
6990
|
+
# Corresponds to the JSON property `safetyInput`
|
6991
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SafetyInput]
|
6992
|
+
attr_accessor :safety_input
|
6993
|
+
|
6994
|
+
# Input for summarization helpfulness metric.
|
6995
|
+
# Corresponds to the JSON property `summarizationHelpfulnessInput`
|
6996
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SummarizationHelpfulnessInput]
|
6997
|
+
attr_accessor :summarization_helpfulness_input
|
6998
|
+
|
6999
|
+
# Input for summarization quality metric.
|
7000
|
+
# Corresponds to the JSON property `summarizationQualityInput`
|
7001
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SummarizationQualityInput]
|
7002
|
+
attr_accessor :summarization_quality_input
|
7003
|
+
|
7004
|
+
# Input for summarization verbosity metric.
|
7005
|
+
# Corresponds to the JSON property `summarizationVerbosityInput`
|
7006
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SummarizationVerbosityInput]
|
7007
|
+
attr_accessor :summarization_verbosity_input
|
7008
|
+
|
7009
|
+
# Input for tool call valid metric.
|
7010
|
+
# Corresponds to the JSON property `toolCallValidInput`
|
7011
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ToolCallValidInput]
|
7012
|
+
attr_accessor :tool_call_valid_input
|
7013
|
+
|
7014
|
+
# Input for tool name match metric.
|
7015
|
+
# Corresponds to the JSON property `toolNameMatchInput`
|
7016
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ToolNameMatchInput]
|
7017
|
+
attr_accessor :tool_name_match_input
|
7018
|
+
|
7019
|
+
# Input for tool parameter key match metric.
|
7020
|
+
# Corresponds to the JSON property `toolParameterKeyMatchInput`
|
7021
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ToolParameterKeyMatchInput]
|
7022
|
+
attr_accessor :tool_parameter_key_match_input
|
7023
|
+
|
7024
|
+
# Input for tool parameter key value match metric.
|
7025
|
+
# Corresponds to the JSON property `toolParameterKvMatchInput`
|
7026
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ToolParameterKvMatchInput]
|
7027
|
+
attr_accessor :tool_parameter_kv_match_input
|
7028
|
+
|
7029
|
+
def initialize(**args)
|
7030
|
+
update!(**args)
|
7031
|
+
end
|
7032
|
+
|
7033
|
+
# Update properties of this object
|
7034
|
+
def update!(**args)
|
7035
|
+
@bleu_input = args[:bleu_input] if args.key?(:bleu_input)
|
7036
|
+
@coherence_input = args[:coherence_input] if args.key?(:coherence_input)
|
7037
|
+
@exact_match_input = args[:exact_match_input] if args.key?(:exact_match_input)
|
7038
|
+
@fluency_input = args[:fluency_input] if args.key?(:fluency_input)
|
7039
|
+
@fulfillment_input = args[:fulfillment_input] if args.key?(:fulfillment_input)
|
7040
|
+
@groundedness_input = args[:groundedness_input] if args.key?(:groundedness_input)
|
7041
|
+
@pairwise_question_answering_quality_input = args[:pairwise_question_answering_quality_input] if args.key?(:pairwise_question_answering_quality_input)
|
7042
|
+
@pairwise_summarization_quality_input = args[:pairwise_summarization_quality_input] if args.key?(:pairwise_summarization_quality_input)
|
7043
|
+
@question_answering_correctness_input = args[:question_answering_correctness_input] if args.key?(:question_answering_correctness_input)
|
7044
|
+
@question_answering_helpfulness_input = args[:question_answering_helpfulness_input] if args.key?(:question_answering_helpfulness_input)
|
7045
|
+
@question_answering_quality_input = args[:question_answering_quality_input] if args.key?(:question_answering_quality_input)
|
7046
|
+
@question_answering_relevance_input = args[:question_answering_relevance_input] if args.key?(:question_answering_relevance_input)
|
7047
|
+
@rag_context_recall_input = args[:rag_context_recall_input] if args.key?(:rag_context_recall_input)
|
7048
|
+
@response_recall_input = args[:response_recall_input] if args.key?(:response_recall_input)
|
7049
|
+
@rouge_input = args[:rouge_input] if args.key?(:rouge_input)
|
7050
|
+
@safety_input = args[:safety_input] if args.key?(:safety_input)
|
7051
|
+
@summarization_helpfulness_input = args[:summarization_helpfulness_input] if args.key?(:summarization_helpfulness_input)
|
7052
|
+
@summarization_quality_input = args[:summarization_quality_input] if args.key?(:summarization_quality_input)
|
7053
|
+
@summarization_verbosity_input = args[:summarization_verbosity_input] if args.key?(:summarization_verbosity_input)
|
7054
|
+
@tool_call_valid_input = args[:tool_call_valid_input] if args.key?(:tool_call_valid_input)
|
7055
|
+
@tool_name_match_input = args[:tool_name_match_input] if args.key?(:tool_name_match_input)
|
7056
|
+
@tool_parameter_key_match_input = args[:tool_parameter_key_match_input] if args.key?(:tool_parameter_key_match_input)
|
7057
|
+
@tool_parameter_kv_match_input = args[:tool_parameter_kv_match_input] if args.key?(:tool_parameter_kv_match_input)
|
7058
|
+
end
|
7059
|
+
end
|
7060
|
+
|
7061
|
+
# Response message for EvaluationService.EvaluateInstances.
|
7062
|
+
class GoogleCloudAiplatformV1beta1EvaluateInstancesResponse
|
7063
|
+
include Google::Apis::Core::Hashable
|
7064
|
+
|
7065
|
+
# Results for bleu metric.
|
7066
|
+
# Corresponds to the JSON property `bleuResults`
|
7067
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BleuResults]
|
7068
|
+
attr_accessor :bleu_results
|
7069
|
+
|
7070
|
+
# Spec for coherence result.
|
7071
|
+
# Corresponds to the JSON property `coherenceResult`
|
7072
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CoherenceResult]
|
7073
|
+
attr_accessor :coherence_result
|
7074
|
+
|
7075
|
+
# Results for exact match metric.
|
7076
|
+
# Corresponds to the JSON property `exactMatchResults`
|
7077
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExactMatchResults]
|
7078
|
+
attr_accessor :exact_match_results
|
7079
|
+
|
7080
|
+
# Spec for fluency result.
|
7081
|
+
# Corresponds to the JSON property `fluencyResult`
|
7082
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FluencyResult]
|
7083
|
+
attr_accessor :fluency_result
|
7084
|
+
|
7085
|
+
# Spec for fulfillment result.
|
7086
|
+
# Corresponds to the JSON property `fulfillmentResult`
|
7087
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FulfillmentResult]
|
7088
|
+
attr_accessor :fulfillment_result
|
7089
|
+
|
7090
|
+
# Spec for groundedness result.
|
7091
|
+
# Corresponds to the JSON property `groundednessResult`
|
7092
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GroundednessResult]
|
7093
|
+
attr_accessor :groundedness_result
|
7094
|
+
|
7095
|
+
# Spec for pairwise question answering quality result.
|
7096
|
+
# Corresponds to the JSON property `pairwiseQuestionAnsweringQualityResult`
|
7097
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PairwiseQuestionAnsweringQualityResult]
|
7098
|
+
attr_accessor :pairwise_question_answering_quality_result
|
7099
|
+
|
7100
|
+
# Spec for pairwise summarization quality result.
|
7101
|
+
# Corresponds to the JSON property `pairwiseSummarizationQualityResult`
|
7102
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PairwiseSummarizationQualityResult]
|
7103
|
+
attr_accessor :pairwise_summarization_quality_result
|
7104
|
+
|
7105
|
+
# Spec for question answering correctness result.
|
7106
|
+
# Corresponds to the JSON property `questionAnsweringCorrectnessResult`
|
7107
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QuestionAnsweringCorrectnessResult]
|
7108
|
+
attr_accessor :question_answering_correctness_result
|
7109
|
+
|
7110
|
+
# Spec for question answering helpfulness result.
|
7111
|
+
# Corresponds to the JSON property `questionAnsweringHelpfulnessResult`
|
7112
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QuestionAnsweringHelpfulnessResult]
|
7113
|
+
attr_accessor :question_answering_helpfulness_result
|
7114
|
+
|
7115
|
+
# Spec for question answering quality result.
|
7116
|
+
# Corresponds to the JSON property `questionAnsweringQualityResult`
|
7117
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QuestionAnsweringQualityResult]
|
7118
|
+
attr_accessor :question_answering_quality_result
|
7119
|
+
|
7120
|
+
# Spec for question answering relevance result.
|
7121
|
+
# Corresponds to the JSON property `questionAnsweringRelevanceResult`
|
7122
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QuestionAnsweringRelevanceResult]
|
7123
|
+
attr_accessor :question_answering_relevance_result
|
7124
|
+
|
7125
|
+
# Spec for rag context recall result.
|
7126
|
+
# Corresponds to the JSON property `ragContextRecallResult`
|
7127
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagContextRecallResult]
|
7128
|
+
attr_accessor :rag_context_recall_result
|
7129
|
+
|
7130
|
+
# Spec for response recall result.
|
7131
|
+
# Corresponds to the JSON property `responseRecallResult`
|
7132
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ResponseRecallResult]
|
7133
|
+
attr_accessor :response_recall_result
|
7134
|
+
|
7135
|
+
# Results for rouge metric.
|
7136
|
+
# Corresponds to the JSON property `rougeResults`
|
7137
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RougeResults]
|
7138
|
+
attr_accessor :rouge_results
|
7139
|
+
|
7140
|
+
# Spec for safety result.
|
7141
|
+
# Corresponds to the JSON property `safetyResult`
|
7142
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SafetyResult]
|
7143
|
+
attr_accessor :safety_result
|
7144
|
+
|
7145
|
+
# Spec for summarization helpfulness result.
|
7146
|
+
# Corresponds to the JSON property `summarizationHelpfulnessResult`
|
7147
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SummarizationHelpfulnessResult]
|
7148
|
+
attr_accessor :summarization_helpfulness_result
|
7149
|
+
|
7150
|
+
# Spec for summarization quality result.
|
7151
|
+
# Corresponds to the JSON property `summarizationQualityResult`
|
7152
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SummarizationQualityResult]
|
7153
|
+
attr_accessor :summarization_quality_result
|
7154
|
+
|
7155
|
+
# Spec for summarization verbosity result.
|
7156
|
+
# Corresponds to the JSON property `summarizationVerbosityResult`
|
7157
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SummarizationVerbosityResult]
|
7158
|
+
attr_accessor :summarization_verbosity_result
|
7159
|
+
|
7160
|
+
# Results for tool call valid metric.
|
7161
|
+
# Corresponds to the JSON property `toolCallValidResults`
|
7162
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ToolCallValidResults]
|
7163
|
+
attr_accessor :tool_call_valid_results
|
7164
|
+
|
7165
|
+
# Results for tool name match metric.
|
7166
|
+
# Corresponds to the JSON property `toolNameMatchResults`
|
7167
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ToolNameMatchResults]
|
7168
|
+
attr_accessor :tool_name_match_results
|
7169
|
+
|
7170
|
+
# Results for tool parameter key match metric.
|
7171
|
+
# Corresponds to the JSON property `toolParameterKeyMatchResults`
|
7172
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ToolParameterKeyMatchResults]
|
7173
|
+
attr_accessor :tool_parameter_key_match_results
|
7174
|
+
|
7175
|
+
# Results for tool parameter key value match metric.
|
7176
|
+
# Corresponds to the JSON property `toolParameterKvMatchResults`
|
7177
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ToolParameterKvMatchResults]
|
7178
|
+
attr_accessor :tool_parameter_kv_match_results
|
7179
|
+
|
7180
|
+
def initialize(**args)
|
7181
|
+
update!(**args)
|
7182
|
+
end
|
7183
|
+
|
7184
|
+
# Update properties of this object
|
7185
|
+
def update!(**args)
|
7186
|
+
@bleu_results = args[:bleu_results] if args.key?(:bleu_results)
|
7187
|
+
@coherence_result = args[:coherence_result] if args.key?(:coherence_result)
|
7188
|
+
@exact_match_results = args[:exact_match_results] if args.key?(:exact_match_results)
|
7189
|
+
@fluency_result = args[:fluency_result] if args.key?(:fluency_result)
|
7190
|
+
@fulfillment_result = args[:fulfillment_result] if args.key?(:fulfillment_result)
|
7191
|
+
@groundedness_result = args[:groundedness_result] if args.key?(:groundedness_result)
|
7192
|
+
@pairwise_question_answering_quality_result = args[:pairwise_question_answering_quality_result] if args.key?(:pairwise_question_answering_quality_result)
|
7193
|
+
@pairwise_summarization_quality_result = args[:pairwise_summarization_quality_result] if args.key?(:pairwise_summarization_quality_result)
|
7194
|
+
@question_answering_correctness_result = args[:question_answering_correctness_result] if args.key?(:question_answering_correctness_result)
|
7195
|
+
@question_answering_helpfulness_result = args[:question_answering_helpfulness_result] if args.key?(:question_answering_helpfulness_result)
|
7196
|
+
@question_answering_quality_result = args[:question_answering_quality_result] if args.key?(:question_answering_quality_result)
|
7197
|
+
@question_answering_relevance_result = args[:question_answering_relevance_result] if args.key?(:question_answering_relevance_result)
|
7198
|
+
@rag_context_recall_result = args[:rag_context_recall_result] if args.key?(:rag_context_recall_result)
|
7199
|
+
@response_recall_result = args[:response_recall_result] if args.key?(:response_recall_result)
|
7200
|
+
@rouge_results = args[:rouge_results] if args.key?(:rouge_results)
|
7201
|
+
@safety_result = args[:safety_result] if args.key?(:safety_result)
|
7202
|
+
@summarization_helpfulness_result = args[:summarization_helpfulness_result] if args.key?(:summarization_helpfulness_result)
|
7203
|
+
@summarization_quality_result = args[:summarization_quality_result] if args.key?(:summarization_quality_result)
|
7204
|
+
@summarization_verbosity_result = args[:summarization_verbosity_result] if args.key?(:summarization_verbosity_result)
|
7205
|
+
@tool_call_valid_results = args[:tool_call_valid_results] if args.key?(:tool_call_valid_results)
|
7206
|
+
@tool_name_match_results = args[:tool_name_match_results] if args.key?(:tool_name_match_results)
|
7207
|
+
@tool_parameter_key_match_results = args[:tool_parameter_key_match_results] if args.key?(:tool_parameter_key_match_results)
|
7208
|
+
@tool_parameter_kv_match_results = args[:tool_parameter_kv_match_results] if args.key?(:tool_parameter_kv_match_results)
|
7209
|
+
end
|
7210
|
+
end
|
7211
|
+
|
6695
7212
|
# True positive, false positive, or false negative. EvaluatedAnnotation is only
|
6696
7213
|
# available under ModelEvaluationSlice with slice of `annotationSpec` dimension.
|
6697
7214
|
class GoogleCloudAiplatformV1beta1EvaluatedAnnotation
|
@@ -6846,6 +7363,109 @@ module Google
|
|
6846
7363
|
end
|
6847
7364
|
end
|
6848
7365
|
|
7366
|
+
# Input for exact match metric.
|
7367
|
+
class GoogleCloudAiplatformV1beta1ExactMatchInput
|
7368
|
+
include Google::Apis::Core::Hashable
|
7369
|
+
|
7370
|
+
# Required. Repeated exact match instances.
|
7371
|
+
# Corresponds to the JSON property `instances`
|
7372
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExactMatchInstance>]
|
7373
|
+
attr_accessor :instances
|
7374
|
+
|
7375
|
+
# Spec for exact match metric - returns 1 if prediction and reference exactly
|
7376
|
+
# matches, otherwise 0.
|
7377
|
+
# Corresponds to the JSON property `metricSpec`
|
7378
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExactMatchSpec]
|
7379
|
+
attr_accessor :metric_spec
|
7380
|
+
|
7381
|
+
def initialize(**args)
|
7382
|
+
update!(**args)
|
7383
|
+
end
|
7384
|
+
|
7385
|
+
# Update properties of this object
|
7386
|
+
def update!(**args)
|
7387
|
+
@instances = args[:instances] if args.key?(:instances)
|
7388
|
+
@metric_spec = args[:metric_spec] if args.key?(:metric_spec)
|
7389
|
+
end
|
7390
|
+
end
|
7391
|
+
|
7392
|
+
# Spec for exact match instance.
|
7393
|
+
class GoogleCloudAiplatformV1beta1ExactMatchInstance
|
7394
|
+
include Google::Apis::Core::Hashable
|
7395
|
+
|
7396
|
+
# Required. Output of the evaluated model.
|
7397
|
+
# Corresponds to the JSON property `prediction`
|
7398
|
+
# @return [String]
|
7399
|
+
attr_accessor :prediction
|
7400
|
+
|
7401
|
+
# Required. Ground truth used to compare against the prediction.
|
7402
|
+
# Corresponds to the JSON property `reference`
|
7403
|
+
# @return [String]
|
7404
|
+
attr_accessor :reference
|
7405
|
+
|
7406
|
+
def initialize(**args)
|
7407
|
+
update!(**args)
|
7408
|
+
end
|
7409
|
+
|
7410
|
+
# Update properties of this object
|
7411
|
+
def update!(**args)
|
7412
|
+
@prediction = args[:prediction] if args.key?(:prediction)
|
7413
|
+
@reference = args[:reference] if args.key?(:reference)
|
7414
|
+
end
|
7415
|
+
end
|
7416
|
+
|
7417
|
+
# Exact match metric value for an instance.
|
7418
|
+
class GoogleCloudAiplatformV1beta1ExactMatchMetricValue
|
7419
|
+
include Google::Apis::Core::Hashable
|
7420
|
+
|
7421
|
+
# Output only. Exact match score.
|
7422
|
+
# Corresponds to the JSON property `score`
|
7423
|
+
# @return [Float]
|
7424
|
+
attr_accessor :score
|
7425
|
+
|
7426
|
+
def initialize(**args)
|
7427
|
+
update!(**args)
|
7428
|
+
end
|
7429
|
+
|
7430
|
+
# Update properties of this object
|
7431
|
+
def update!(**args)
|
7432
|
+
@score = args[:score] if args.key?(:score)
|
7433
|
+
end
|
7434
|
+
end
|
7435
|
+
|
7436
|
+
# Results for exact match metric.
|
7437
|
+
class GoogleCloudAiplatformV1beta1ExactMatchResults
|
7438
|
+
include Google::Apis::Core::Hashable
|
7439
|
+
|
7440
|
+
# Output only. Exact match metric values.
|
7441
|
+
# Corresponds to the JSON property `exactMatchMetricValues`
|
7442
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExactMatchMetricValue>]
|
7443
|
+
attr_accessor :exact_match_metric_values
|
7444
|
+
|
7445
|
+
def initialize(**args)
|
7446
|
+
update!(**args)
|
7447
|
+
end
|
7448
|
+
|
7449
|
+
# Update properties of this object
|
7450
|
+
def update!(**args)
|
7451
|
+
@exact_match_metric_values = args[:exact_match_metric_values] if args.key?(:exact_match_metric_values)
|
7452
|
+
end
|
7453
|
+
end
|
7454
|
+
|
7455
|
+
# Spec for exact match metric - returns 1 if prediction and reference exactly
|
7456
|
+
# matches, otherwise 0.
|
7457
|
+
class GoogleCloudAiplatformV1beta1ExactMatchSpec
|
7458
|
+
include Google::Apis::Core::Hashable
|
7459
|
+
|
7460
|
+
def initialize(**args)
|
7461
|
+
update!(**args)
|
7462
|
+
end
|
7463
|
+
|
7464
|
+
# Update properties of this object
|
7465
|
+
def update!(**args)
|
7466
|
+
end
|
7467
|
+
end
|
7468
|
+
|
6849
7469
|
# Example-based explainability that returns the nearest neighbors from the
|
6850
7470
|
# provided dataset.
|
6851
7471
|
class GoogleCloudAiplatformV1beta1Examples
|
@@ -7144,88 +7764,6 @@ module Google
|
|
7144
7764
|
end
|
7145
7765
|
end
|
7146
7766
|
|
7147
|
-
# Execution plan for a request.
|
7148
|
-
class GoogleCloudAiplatformV1beta1ExecutionPlan
|
7149
|
-
include Google::Apis::Core::Hashable
|
7150
|
-
|
7151
|
-
# Required. Sequence of steps to execute a request.
|
7152
|
-
# Corresponds to the JSON property `steps`
|
7153
|
-
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecutionPlanStep>]
|
7154
|
-
attr_accessor :steps
|
7155
|
-
|
7156
|
-
def initialize(**args)
|
7157
|
-
update!(**args)
|
7158
|
-
end
|
7159
|
-
|
7160
|
-
# Update properties of this object
|
7161
|
-
def update!(**args)
|
7162
|
-
@steps = args[:steps] if args.key?(:steps)
|
7163
|
-
end
|
7164
|
-
end
|
7165
|
-
|
7166
|
-
# Single step in query execution plan.
|
7167
|
-
class GoogleCloudAiplatformV1beta1ExecutionPlanStep
|
7168
|
-
include Google::Apis::Core::Hashable
|
7169
|
-
|
7170
|
-
# Extension execution step.
|
7171
|
-
# Corresponds to the JSON property `extensionExecution`
|
7172
|
-
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecutionPlanStepExtensionExecution]
|
7173
|
-
attr_accessor :extension_execution
|
7174
|
-
|
7175
|
-
# Respond to user step.
|
7176
|
-
# Corresponds to the JSON property `respondToUser`
|
7177
|
-
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExecutionPlanStepRespondToUser]
|
7178
|
-
attr_accessor :respond_to_user
|
7179
|
-
|
7180
|
-
def initialize(**args)
|
7181
|
-
update!(**args)
|
7182
|
-
end
|
7183
|
-
|
7184
|
-
# Update properties of this object
|
7185
|
-
def update!(**args)
|
7186
|
-
@extension_execution = args[:extension_execution] if args.key?(:extension_execution)
|
7187
|
-
@respond_to_user = args[:respond_to_user] if args.key?(:respond_to_user)
|
7188
|
-
end
|
7189
|
-
end
|
7190
|
-
|
7191
|
-
# Extension execution step.
|
7192
|
-
class GoogleCloudAiplatformV1beta1ExecutionPlanStepExtensionExecution
|
7193
|
-
include Google::Apis::Core::Hashable
|
7194
|
-
|
7195
|
-
# Required. extension resource name
|
7196
|
-
# Corresponds to the JSON property `extension`
|
7197
|
-
# @return [String]
|
7198
|
-
attr_accessor :extension
|
7199
|
-
|
7200
|
-
# Required. the operation id
|
7201
|
-
# Corresponds to the JSON property `operationId`
|
7202
|
-
# @return [String]
|
7203
|
-
attr_accessor :operation_id
|
7204
|
-
|
7205
|
-
def initialize(**args)
|
7206
|
-
update!(**args)
|
7207
|
-
end
|
7208
|
-
|
7209
|
-
# Update properties of this object
|
7210
|
-
def update!(**args)
|
7211
|
-
@extension = args[:extension] if args.key?(:extension)
|
7212
|
-
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
7213
|
-
end
|
7214
|
-
end
|
7215
|
-
|
7216
|
-
# Respond to user step.
|
7217
|
-
class GoogleCloudAiplatformV1beta1ExecutionPlanStepRespondToUser
|
7218
|
-
include Google::Apis::Core::Hashable
|
7219
|
-
|
7220
|
-
def initialize(**args)
|
7221
|
-
update!(**args)
|
7222
|
-
end
|
7223
|
-
|
7224
|
-
# Update properties of this object
|
7225
|
-
def update!(**args)
|
7226
|
-
end
|
7227
|
-
end
|
7228
|
-
|
7229
7767
|
# Request message for PredictionService.Explain.
|
7230
7768
|
class GoogleCloudAiplatformV1beta1ExplainRequest
|
7231
7769
|
include Google::Apis::Core::Hashable
|
@@ -8816,13 +9354,14 @@ module Google
|
|
8816
9354
|
attr_accessor :create_time
|
8817
9355
|
|
8818
9356
|
# The dedicated serving endpoint for this FeatureOnlineStore. Only need to set
|
8819
|
-
# when you choose Optimized storage type
|
8820
|
-
#
|
8821
|
-
# DedicatedServingEndpoint.public_endpoint_domain_name] is available now.
|
9357
|
+
# when you choose Optimized storage type. Public endpoint is provisioned by
|
9358
|
+
# default.
|
8822
9359
|
# Corresponds to the JSON property `dedicatedServingEndpoint`
|
8823
9360
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureOnlineStoreDedicatedServingEndpoint]
|
8824
9361
|
attr_accessor :dedicated_serving_endpoint
|
8825
9362
|
|
9363
|
+
# Deprecated: This sub message is no longer needed anymore and embedding
|
9364
|
+
# management is automatically enabled when specifying Optimized storage type.
|
8826
9365
|
# Contains settings for embedding management.
|
8827
9366
|
# Corresponds to the JSON property `embeddingManagement`
|
8828
9367
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureOnlineStoreEmbeddingManagement]
|
@@ -8944,9 +9483,8 @@ module Google
|
|
8944
9483
|
end
|
8945
9484
|
|
8946
9485
|
# The dedicated serving endpoint for this FeatureOnlineStore. Only need to set
|
8947
|
-
# when you choose Optimized storage type
|
8948
|
-
#
|
8949
|
-
# DedicatedServingEndpoint.public_endpoint_domain_name] is available now.
|
9486
|
+
# when you choose Optimized storage type. Public endpoint is provisioned by
|
9487
|
+
# default.
|
8950
9488
|
class GoogleCloudAiplatformV1beta1FeatureOnlineStoreDedicatedServingEndpoint
|
8951
9489
|
include Google::Apis::Core::Hashable
|
8952
9490
|
|
@@ -8979,6 +9517,8 @@ module Google
|
|
8979
9517
|
end
|
8980
9518
|
end
|
8981
9519
|
|
9520
|
+
# Deprecated: This sub message is no longer needed anymore and embedding
|
9521
|
+
# management is automatically enabled when specifying Optimized storage type.
|
8982
9522
|
# Contains settings for embedding management.
|
8983
9523
|
class GoogleCloudAiplatformV1beta1FeatureOnlineStoreEmbeddingManagement
|
8984
9524
|
include Google::Apis::Core::Hashable
|
@@ -9291,6 +9831,11 @@ module Google
|
|
9291
9831
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewFeatureRegistrySource]
|
9292
9832
|
attr_accessor :feature_registry_source
|
9293
9833
|
|
9834
|
+
# Configuration for vector indexing.
|
9835
|
+
# Corresponds to the JSON property `indexConfig`
|
9836
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewIndexConfig]
|
9837
|
+
attr_accessor :index_config
|
9838
|
+
|
9294
9839
|
# Optional. The labels with user-defined metadata to organize your FeatureViews.
|
9295
9840
|
# Label keys and values can be no longer than 64 characters (Unicode codepoints),
|
9296
9841
|
# can only contain lowercase letters, numeric characters, underscores and
|
@@ -9351,6 +9896,7 @@ module Google
|
|
9351
9896
|
@create_time = args[:create_time] if args.key?(:create_time)
|
9352
9897
|
@etag = args[:etag] if args.key?(:etag)
|
9353
9898
|
@feature_registry_source = args[:feature_registry_source] if args.key?(:feature_registry_source)
|
9899
|
+
@index_config = args[:index_config] if args.key?(:index_config)
|
9354
9900
|
@labels = args[:labels] if args.key?(:labels)
|
9355
9901
|
@name = args[:name] if args.key?(:name)
|
9356
9902
|
@service_account_email = args[:service_account_email] if args.key?(:service_account_email)
|
@@ -9483,6 +10029,100 @@ module Google
|
|
9483
10029
|
end
|
9484
10030
|
end
|
9485
10031
|
|
10032
|
+
# Configuration for vector indexing.
|
10033
|
+
class GoogleCloudAiplatformV1beta1FeatureViewIndexConfig
|
10034
|
+
include Google::Apis::Core::Hashable
|
10035
|
+
|
10036
|
+
# Configuration options for using brute force search.
|
10037
|
+
# Corresponds to the JSON property `bruteForceConfig`
|
10038
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewIndexConfigBruteForceConfig]
|
10039
|
+
attr_accessor :brute_force_config
|
10040
|
+
|
10041
|
+
# Optional. Column of crowding. This column contains crowding attribute which is
|
10042
|
+
# a constraint on a neighbor list produced by FeatureOnlineStoreService.
|
10043
|
+
# SearchNearestEntities to diversify search results. If NearestNeighborQuery.
|
10044
|
+
# per_crowding_attribute_neighbor_count is set to K in
|
10045
|
+
# SearchNearestEntitiesRequest, it's guaranteed that no more than K entities of
|
10046
|
+
# the same crowding attribute are returned in the response.
|
10047
|
+
# Corresponds to the JSON property `crowdingColumn`
|
10048
|
+
# @return [String]
|
10049
|
+
attr_accessor :crowding_column
|
10050
|
+
|
10051
|
+
# Optional. The distance measure used in nearest neighbor search.
|
10052
|
+
# Corresponds to the JSON property `distanceMeasureType`
|
10053
|
+
# @return [String]
|
10054
|
+
attr_accessor :distance_measure_type
|
10055
|
+
|
10056
|
+
# Optional. Column of embedding. This column contains the source data to create
|
10057
|
+
# index for vector search. embedding_column must be set when using vector search.
|
10058
|
+
# Corresponds to the JSON property `embeddingColumn`
|
10059
|
+
# @return [String]
|
10060
|
+
attr_accessor :embedding_column
|
10061
|
+
|
10062
|
+
# Optional. The number of dimensions of the input embedding.
|
10063
|
+
# Corresponds to the JSON property `embeddingDimension`
|
10064
|
+
# @return [Fixnum]
|
10065
|
+
attr_accessor :embedding_dimension
|
10066
|
+
|
10067
|
+
# Optional. Columns of features that're used to filter vector search results.
|
10068
|
+
# Corresponds to the JSON property `filterColumns`
|
10069
|
+
# @return [Array<String>]
|
10070
|
+
attr_accessor :filter_columns
|
10071
|
+
|
10072
|
+
# Configuration options for the tree-AH algorithm.
|
10073
|
+
# Corresponds to the JSON property `treeAhConfig`
|
10074
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FeatureViewIndexConfigTreeAhConfig]
|
10075
|
+
attr_accessor :tree_ah_config
|
10076
|
+
|
10077
|
+
def initialize(**args)
|
10078
|
+
update!(**args)
|
10079
|
+
end
|
10080
|
+
|
10081
|
+
# Update properties of this object
|
10082
|
+
def update!(**args)
|
10083
|
+
@brute_force_config = args[:brute_force_config] if args.key?(:brute_force_config)
|
10084
|
+
@crowding_column = args[:crowding_column] if args.key?(:crowding_column)
|
10085
|
+
@distance_measure_type = args[:distance_measure_type] if args.key?(:distance_measure_type)
|
10086
|
+
@embedding_column = args[:embedding_column] if args.key?(:embedding_column)
|
10087
|
+
@embedding_dimension = args[:embedding_dimension] if args.key?(:embedding_dimension)
|
10088
|
+
@filter_columns = args[:filter_columns] if args.key?(:filter_columns)
|
10089
|
+
@tree_ah_config = args[:tree_ah_config] if args.key?(:tree_ah_config)
|
10090
|
+
end
|
10091
|
+
end
|
10092
|
+
|
10093
|
+
# Configuration options for using brute force search.
|
10094
|
+
class GoogleCloudAiplatformV1beta1FeatureViewIndexConfigBruteForceConfig
|
10095
|
+
include Google::Apis::Core::Hashable
|
10096
|
+
|
10097
|
+
def initialize(**args)
|
10098
|
+
update!(**args)
|
10099
|
+
end
|
10100
|
+
|
10101
|
+
# Update properties of this object
|
10102
|
+
def update!(**args)
|
10103
|
+
end
|
10104
|
+
end
|
10105
|
+
|
10106
|
+
# Configuration options for the tree-AH algorithm.
|
10107
|
+
class GoogleCloudAiplatformV1beta1FeatureViewIndexConfigTreeAhConfig
|
10108
|
+
include Google::Apis::Core::Hashable
|
10109
|
+
|
10110
|
+
# Optional. Number of embeddings on each leaf node. The default value is 1000 if
|
10111
|
+
# not set.
|
10112
|
+
# Corresponds to the JSON property `leafNodeEmbeddingCount`
|
10113
|
+
# @return [Fixnum]
|
10114
|
+
attr_accessor :leaf_node_embedding_count
|
10115
|
+
|
10116
|
+
def initialize(**args)
|
10117
|
+
update!(**args)
|
10118
|
+
end
|
10119
|
+
|
10120
|
+
# Update properties of this object
|
10121
|
+
def update!(**args)
|
10122
|
+
@leaf_node_embedding_count = args[:leaf_node_embedding_count] if args.key?(:leaf_node_embedding_count)
|
10123
|
+
end
|
10124
|
+
end
|
10125
|
+
|
9486
10126
|
# FeatureViewSync is a representation of sync operation which copies data from
|
9487
10127
|
# data source to Feature View in Online Store.
|
9488
10128
|
class GoogleCloudAiplatformV1beta1FeatureViewSync
|
@@ -10344,6 +10984,100 @@ module Google
|
|
10344
10984
|
end
|
10345
10985
|
end
|
10346
10986
|
|
10987
|
+
# Input for fluency metric.
|
10988
|
+
class GoogleCloudAiplatformV1beta1FluencyInput
|
10989
|
+
include Google::Apis::Core::Hashable
|
10990
|
+
|
10991
|
+
# Spec for fluency instance.
|
10992
|
+
# Corresponds to the JSON property `instance`
|
10993
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FluencyInstance]
|
10994
|
+
attr_accessor :instance
|
10995
|
+
|
10996
|
+
# Spec for fluency score metric.
|
10997
|
+
# Corresponds to the JSON property `metricSpec`
|
10998
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FluencySpec]
|
10999
|
+
attr_accessor :metric_spec
|
11000
|
+
|
11001
|
+
def initialize(**args)
|
11002
|
+
update!(**args)
|
11003
|
+
end
|
11004
|
+
|
11005
|
+
# Update properties of this object
|
11006
|
+
def update!(**args)
|
11007
|
+
@instance = args[:instance] if args.key?(:instance)
|
11008
|
+
@metric_spec = args[:metric_spec] if args.key?(:metric_spec)
|
11009
|
+
end
|
11010
|
+
end
|
11011
|
+
|
11012
|
+
# Spec for fluency instance.
|
11013
|
+
class GoogleCloudAiplatformV1beta1FluencyInstance
|
11014
|
+
include Google::Apis::Core::Hashable
|
11015
|
+
|
11016
|
+
# Required. Output of the evaluated model.
|
11017
|
+
# Corresponds to the JSON property `prediction`
|
11018
|
+
# @return [String]
|
11019
|
+
attr_accessor :prediction
|
11020
|
+
|
11021
|
+
def initialize(**args)
|
11022
|
+
update!(**args)
|
11023
|
+
end
|
11024
|
+
|
11025
|
+
# Update properties of this object
|
11026
|
+
def update!(**args)
|
11027
|
+
@prediction = args[:prediction] if args.key?(:prediction)
|
11028
|
+
end
|
11029
|
+
end
|
11030
|
+
|
11031
|
+
# Spec for fluency result.
|
11032
|
+
class GoogleCloudAiplatformV1beta1FluencyResult
|
11033
|
+
include Google::Apis::Core::Hashable
|
11034
|
+
|
11035
|
+
# Output only. Confidence for fluency score.
|
11036
|
+
# Corresponds to the JSON property `confidence`
|
11037
|
+
# @return [Float]
|
11038
|
+
attr_accessor :confidence
|
11039
|
+
|
11040
|
+
# Output only. Explanation for fluency score.
|
11041
|
+
# Corresponds to the JSON property `explanation`
|
11042
|
+
# @return [String]
|
11043
|
+
attr_accessor :explanation
|
11044
|
+
|
11045
|
+
# Output only. Fluency score.
|
11046
|
+
# Corresponds to the JSON property `score`
|
11047
|
+
# @return [Float]
|
11048
|
+
attr_accessor :score
|
11049
|
+
|
11050
|
+
def initialize(**args)
|
11051
|
+
update!(**args)
|
11052
|
+
end
|
11053
|
+
|
11054
|
+
# Update properties of this object
|
11055
|
+
def update!(**args)
|
11056
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
11057
|
+
@explanation = args[:explanation] if args.key?(:explanation)
|
11058
|
+
@score = args[:score] if args.key?(:score)
|
11059
|
+
end
|
11060
|
+
end
|
11061
|
+
|
11062
|
+
# Spec for fluency score metric.
|
11063
|
+
class GoogleCloudAiplatformV1beta1FluencySpec
|
11064
|
+
include Google::Apis::Core::Hashable
|
11065
|
+
|
11066
|
+
# Optional. Which version to use for evaluation.
|
11067
|
+
# Corresponds to the JSON property `version`
|
11068
|
+
# @return [Fixnum]
|
11069
|
+
attr_accessor :version
|
11070
|
+
|
11071
|
+
def initialize(**args)
|
11072
|
+
update!(**args)
|
11073
|
+
end
|
11074
|
+
|
11075
|
+
# Update properties of this object
|
11076
|
+
def update!(**args)
|
11077
|
+
@version = args[:version] if args.key?(:version)
|
11078
|
+
end
|
11079
|
+
end
|
11080
|
+
|
10347
11081
|
# Assigns the input data to training, validation, and test sets as per the given
|
10348
11082
|
# fractions. Any of `training_fraction`, `validation_fraction` and `
|
10349
11083
|
# test_fraction` may optionally be provided, they must sum to up to 1. If the
|
@@ -10380,6 +11114,106 @@ module Google
|
|
10380
11114
|
end
|
10381
11115
|
end
|
10382
11116
|
|
11117
|
+
# Input for fulfillment metric.
|
11118
|
+
class GoogleCloudAiplatformV1beta1FulfillmentInput
|
11119
|
+
include Google::Apis::Core::Hashable
|
11120
|
+
|
11121
|
+
# Spec for fulfillment instance.
|
11122
|
+
# Corresponds to the JSON property `instance`
|
11123
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FulfillmentInstance]
|
11124
|
+
attr_accessor :instance
|
11125
|
+
|
11126
|
+
# Spec for fulfillment metric.
|
11127
|
+
# Corresponds to the JSON property `metricSpec`
|
11128
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FulfillmentSpec]
|
11129
|
+
attr_accessor :metric_spec
|
11130
|
+
|
11131
|
+
def initialize(**args)
|
11132
|
+
update!(**args)
|
11133
|
+
end
|
11134
|
+
|
11135
|
+
# Update properties of this object
|
11136
|
+
def update!(**args)
|
11137
|
+
@instance = args[:instance] if args.key?(:instance)
|
11138
|
+
@metric_spec = args[:metric_spec] if args.key?(:metric_spec)
|
11139
|
+
end
|
11140
|
+
end
|
11141
|
+
|
11142
|
+
# Spec for fulfillment instance.
|
11143
|
+
class GoogleCloudAiplatformV1beta1FulfillmentInstance
|
11144
|
+
include Google::Apis::Core::Hashable
|
11145
|
+
|
11146
|
+
# Required. Inference instruction prompt to compare prediction with.
|
11147
|
+
# Corresponds to the JSON property `instruction`
|
11148
|
+
# @return [String]
|
11149
|
+
attr_accessor :instruction
|
11150
|
+
|
11151
|
+
# Required. Output of the evaluated model.
|
11152
|
+
# Corresponds to the JSON property `prediction`
|
11153
|
+
# @return [String]
|
11154
|
+
attr_accessor :prediction
|
11155
|
+
|
11156
|
+
def initialize(**args)
|
11157
|
+
update!(**args)
|
11158
|
+
end
|
11159
|
+
|
11160
|
+
# Update properties of this object
|
11161
|
+
def update!(**args)
|
11162
|
+
@instruction = args[:instruction] if args.key?(:instruction)
|
11163
|
+
@prediction = args[:prediction] if args.key?(:prediction)
|
11164
|
+
end
|
11165
|
+
end
|
11166
|
+
|
11167
|
+
# Spec for fulfillment result.
|
11168
|
+
class GoogleCloudAiplatformV1beta1FulfillmentResult
|
11169
|
+
include Google::Apis::Core::Hashable
|
11170
|
+
|
11171
|
+
# Output only. Confidence for fulfillment score.
|
11172
|
+
# Corresponds to the JSON property `confidence`
|
11173
|
+
# @return [Float]
|
11174
|
+
attr_accessor :confidence
|
11175
|
+
|
11176
|
+
# Output only. Explanation for fulfillment score.
|
11177
|
+
# Corresponds to the JSON property `explanation`
|
11178
|
+
# @return [String]
|
11179
|
+
attr_accessor :explanation
|
11180
|
+
|
11181
|
+
# Output only. Fulfillment score.
|
11182
|
+
# Corresponds to the JSON property `score`
|
11183
|
+
# @return [Float]
|
11184
|
+
attr_accessor :score
|
11185
|
+
|
11186
|
+
def initialize(**args)
|
11187
|
+
update!(**args)
|
11188
|
+
end
|
11189
|
+
|
11190
|
+
# Update properties of this object
|
11191
|
+
def update!(**args)
|
11192
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
11193
|
+
@explanation = args[:explanation] if args.key?(:explanation)
|
11194
|
+
@score = args[:score] if args.key?(:score)
|
11195
|
+
end
|
11196
|
+
end
|
11197
|
+
|
11198
|
+
# Spec for fulfillment metric.
|
11199
|
+
class GoogleCloudAiplatformV1beta1FulfillmentSpec
|
11200
|
+
include Google::Apis::Core::Hashable
|
11201
|
+
|
11202
|
+
# Optional. Which version to use for evaluation.
|
11203
|
+
# Corresponds to the JSON property `version`
|
11204
|
+
# @return [Fixnum]
|
11205
|
+
attr_accessor :version
|
11206
|
+
|
11207
|
+
def initialize(**args)
|
11208
|
+
update!(**args)
|
11209
|
+
end
|
11210
|
+
|
11211
|
+
# Update properties of this object
|
11212
|
+
def update!(**args)
|
11213
|
+
@version = args[:version] if args.key?(:version)
|
11214
|
+
end
|
11215
|
+
end
|
11216
|
+
|
10383
11217
|
# A predicted [FunctionCall] returned from the model that contains a string
|
10384
11218
|
# representing the [FunctionDeclaration.name] and a structured JSON object
|
10385
11219
|
# containing the parameters and their values.
|
@@ -10408,6 +11242,33 @@ module Google
|
|
10408
11242
|
end
|
10409
11243
|
end
|
10410
11244
|
|
11245
|
+
# Function calling config.
|
11246
|
+
class GoogleCloudAiplatformV1beta1FunctionCallingConfig
|
11247
|
+
include Google::Apis::Core::Hashable
|
11248
|
+
|
11249
|
+
# Optional. Function names to call. Only set when the Mode is ANY. Function
|
11250
|
+
# names should match [FunctionDeclaration.name]. With mode set to ANY, model
|
11251
|
+
# will predict a function call from the set of function names provided.
|
11252
|
+
# Corresponds to the JSON property `allowedFunctionNames`
|
11253
|
+
# @return [Array<String>]
|
11254
|
+
attr_accessor :allowed_function_names
|
11255
|
+
|
11256
|
+
# Optional. Function calling mode.
|
11257
|
+
# Corresponds to the JSON property `mode`
|
11258
|
+
# @return [String]
|
11259
|
+
attr_accessor :mode
|
11260
|
+
|
11261
|
+
def initialize(**args)
|
11262
|
+
update!(**args)
|
11263
|
+
end
|
11264
|
+
|
11265
|
+
# Update properties of this object
|
11266
|
+
def update!(**args)
|
11267
|
+
@allowed_function_names = args[:allowed_function_names] if args.key?(:allowed_function_names)
|
11268
|
+
@mode = args[:mode] if args.key?(:mode)
|
11269
|
+
end
|
11270
|
+
end
|
11271
|
+
|
10411
11272
|
# Structured representation of a function declaration as defined by the [OpenAPI
|
10412
11273
|
# 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this
|
10413
11274
|
# declaration are the function name and parameters. This FunctionDeclaration is
|
@@ -10436,6 +11297,13 @@ module Google
|
|
10436
11297
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schema]
|
10437
11298
|
attr_accessor :parameters
|
10438
11299
|
|
11300
|
+
# Schema is used to define the format of input/output data. Represents a select
|
11301
|
+
# subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#
|
11302
|
+
# schema). More fields may be added in the future as needed.
|
11303
|
+
# Corresponds to the JSON property `response`
|
11304
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Schema]
|
11305
|
+
attr_accessor :response
|
11306
|
+
|
10439
11307
|
def initialize(**args)
|
10440
11308
|
update!(**args)
|
10441
11309
|
end
|
@@ -10445,6 +11313,7 @@ module Google
|
|
10445
11313
|
@description = args[:description] if args.key?(:description)
|
10446
11314
|
@name = args[:name] if args.key?(:name)
|
10447
11315
|
@parameters = args[:parameters] if args.key?(:parameters)
|
11316
|
+
@response = args[:response] if args.key?(:response)
|
10448
11317
|
end
|
10449
11318
|
end
|
10450
11319
|
|
@@ -10601,6 +11470,19 @@ module Google
|
|
10601
11470
|
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SafetySetting>]
|
10602
11471
|
attr_accessor :safety_settings
|
10603
11472
|
|
11473
|
+
# The base structured datatype containing multi-part content of a message. A `
|
11474
|
+
# Content` includes a `role` field designating the producer of the `Content` and
|
11475
|
+
# a `parts` field containing multi-part data that contains the content of the
|
11476
|
+
# message turn.
|
11477
|
+
# Corresponds to the JSON property `systemInstruction`
|
11478
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content]
|
11479
|
+
attr_accessor :system_instruction
|
11480
|
+
|
11481
|
+
# Tool config. This config is shared for all tools provided in the request.
|
11482
|
+
# Corresponds to the JSON property `toolConfig`
|
11483
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ToolConfig]
|
11484
|
+
attr_accessor :tool_config
|
11485
|
+
|
10604
11486
|
# Optional. A list of `Tools` the model may use to generate the next response. A
|
10605
11487
|
# `Tool` is a piece of code that enables the system to interact with external
|
10606
11488
|
# systems to perform an action, or set of actions, outside of knowledge and
|
@@ -10618,6 +11500,8 @@ module Google
|
|
10618
11500
|
@contents = args[:contents] if args.key?(:contents)
|
10619
11501
|
@generation_config = args[:generation_config] if args.key?(:generation_config)
|
10620
11502
|
@safety_settings = args[:safety_settings] if args.key?(:safety_settings)
|
11503
|
+
@system_instruction = args[:system_instruction] if args.key?(:system_instruction)
|
11504
|
+
@tool_config = args[:tool_config] if args.key?(:tool_config)
|
10621
11505
|
@tools = args[:tools] if args.key?(:tools)
|
10622
11506
|
end
|
10623
11507
|
end
|
@@ -10724,11 +11608,21 @@ module Google
|
|
10724
11608
|
# @return [Fixnum]
|
10725
11609
|
attr_accessor :candidate_count
|
10726
11610
|
|
11611
|
+
# Optional. Frequency penalties.
|
11612
|
+
# Corresponds to the JSON property `frequencyPenalty`
|
11613
|
+
# @return [Float]
|
11614
|
+
attr_accessor :frequency_penalty
|
11615
|
+
|
10727
11616
|
# Optional. The maximum number of output tokens to generate per message.
|
10728
11617
|
# Corresponds to the JSON property `maxOutputTokens`
|
10729
11618
|
# @return [Fixnum]
|
10730
11619
|
attr_accessor :max_output_tokens
|
10731
11620
|
|
11621
|
+
# Optional. Positive penalties.
|
11622
|
+
# Corresponds to the JSON property `presencePenalty`
|
11623
|
+
# @return [Float]
|
11624
|
+
attr_accessor :presence_penalty
|
11625
|
+
|
10732
11626
|
# Optional. Stop sequences.
|
10733
11627
|
# Corresponds to the JSON property `stopSequences`
|
10734
11628
|
# @return [Array<String>]
|
@@ -10756,7 +11650,9 @@ module Google
|
|
10756
11650
|
# Update properties of this object
|
10757
11651
|
def update!(**args)
|
10758
11652
|
@candidate_count = args[:candidate_count] if args.key?(:candidate_count)
|
11653
|
+
@frequency_penalty = args[:frequency_penalty] if args.key?(:frequency_penalty)
|
10759
11654
|
@max_output_tokens = args[:max_output_tokens] if args.key?(:max_output_tokens)
|
11655
|
+
@presence_penalty = args[:presence_penalty] if args.key?(:presence_penalty)
|
10760
11656
|
@stop_sequences = args[:stop_sequences] if args.key?(:stop_sequences)
|
10761
11657
|
@temperature = args[:temperature] if args.key?(:temperature)
|
10762
11658
|
@top_k = args[:top_k] if args.key?(:top_k)
|
@@ -10818,6 +11714,50 @@ module Google
|
|
10818
11714
|
end
|
10819
11715
|
end
|
10820
11716
|
|
11717
|
+
# The Google Drive location for the input content.
|
11718
|
+
class GoogleCloudAiplatformV1beta1GoogleDriveSource
|
11719
|
+
include Google::Apis::Core::Hashable
|
11720
|
+
|
11721
|
+
# Required. Google Drive resource IDs.
|
11722
|
+
# Corresponds to the JSON property `resourceIds`
|
11723
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GoogleDriveSourceResourceId>]
|
11724
|
+
attr_accessor :resource_ids
|
11725
|
+
|
11726
|
+
def initialize(**args)
|
11727
|
+
update!(**args)
|
11728
|
+
end
|
11729
|
+
|
11730
|
+
# Update properties of this object
|
11731
|
+
def update!(**args)
|
11732
|
+
@resource_ids = args[:resource_ids] if args.key?(:resource_ids)
|
11733
|
+
end
|
11734
|
+
end
|
11735
|
+
|
11736
|
+
# The type and ID of the Google Drive resource.
|
11737
|
+
class GoogleCloudAiplatformV1beta1GoogleDriveSourceResourceId
|
11738
|
+
include Google::Apis::Core::Hashable
|
11739
|
+
|
11740
|
+
# Required. The ID of the Google Drive resource.
|
11741
|
+
# Corresponds to the JSON property `resourceId`
|
11742
|
+
# @return [String]
|
11743
|
+
attr_accessor :resource_id
|
11744
|
+
|
11745
|
+
# Required. The type of the Google Drive resource.
|
11746
|
+
# Corresponds to the JSON property `resourceType`
|
11747
|
+
# @return [String]
|
11748
|
+
attr_accessor :resource_type
|
11749
|
+
|
11750
|
+
def initialize(**args)
|
11751
|
+
update!(**args)
|
11752
|
+
end
|
11753
|
+
|
11754
|
+
# Update properties of this object
|
11755
|
+
def update!(**args)
|
11756
|
+
@resource_id = args[:resource_id] if args.key?(:resource_id)
|
11757
|
+
@resource_type = args[:resource_type] if args.key?(:resource_type)
|
11758
|
+
end
|
11759
|
+
end
|
11760
|
+
|
10821
11761
|
# Tool to retrieve public web data for grounding, powered by Google.
|
10822
11762
|
class GoogleCloudAiplatformV1beta1GoogleSearchRetrieval
|
10823
11763
|
include Google::Apis::Core::Hashable
|
@@ -10840,6 +11780,107 @@ module Google
|
|
10840
11780
|
end
|
10841
11781
|
end
|
10842
11782
|
|
11783
|
+
# Input for groundedness metric.
|
11784
|
+
class GoogleCloudAiplatformV1beta1GroundednessInput
|
11785
|
+
include Google::Apis::Core::Hashable
|
11786
|
+
|
11787
|
+
# Spec for groundedness instance.
|
11788
|
+
# Corresponds to the JSON property `instance`
|
11789
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GroundednessInstance]
|
11790
|
+
attr_accessor :instance
|
11791
|
+
|
11792
|
+
# Spec for groundedness metric.
|
11793
|
+
# Corresponds to the JSON property `metricSpec`
|
11794
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GroundednessSpec]
|
11795
|
+
attr_accessor :metric_spec
|
11796
|
+
|
11797
|
+
def initialize(**args)
|
11798
|
+
update!(**args)
|
11799
|
+
end
|
11800
|
+
|
11801
|
+
# Update properties of this object
|
11802
|
+
def update!(**args)
|
11803
|
+
@instance = args[:instance] if args.key?(:instance)
|
11804
|
+
@metric_spec = args[:metric_spec] if args.key?(:metric_spec)
|
11805
|
+
end
|
11806
|
+
end
|
11807
|
+
|
11808
|
+
# Spec for groundedness instance.
|
11809
|
+
class GoogleCloudAiplatformV1beta1GroundednessInstance
|
11810
|
+
include Google::Apis::Core::Hashable
|
11811
|
+
|
11812
|
+
# Required. Background information provided in context used to compare against
|
11813
|
+
# the prediction.
|
11814
|
+
# Corresponds to the JSON property `context`
|
11815
|
+
# @return [String]
|
11816
|
+
attr_accessor :context
|
11817
|
+
|
11818
|
+
# Required. Output of the evaluated model.
|
11819
|
+
# Corresponds to the JSON property `prediction`
|
11820
|
+
# @return [String]
|
11821
|
+
attr_accessor :prediction
|
11822
|
+
|
11823
|
+
def initialize(**args)
|
11824
|
+
update!(**args)
|
11825
|
+
end
|
11826
|
+
|
11827
|
+
# Update properties of this object
|
11828
|
+
def update!(**args)
|
11829
|
+
@context = args[:context] if args.key?(:context)
|
11830
|
+
@prediction = args[:prediction] if args.key?(:prediction)
|
11831
|
+
end
|
11832
|
+
end
|
11833
|
+
|
11834
|
+
# Spec for groundedness result.
|
11835
|
+
class GoogleCloudAiplatformV1beta1GroundednessResult
|
11836
|
+
include Google::Apis::Core::Hashable
|
11837
|
+
|
11838
|
+
# Output only. Confidence for groundedness score.
|
11839
|
+
# Corresponds to the JSON property `confidence`
|
11840
|
+
# @return [Float]
|
11841
|
+
attr_accessor :confidence
|
11842
|
+
|
11843
|
+
# Output only. Explanation for groundedness score.
|
11844
|
+
# Corresponds to the JSON property `explanation`
|
11845
|
+
# @return [String]
|
11846
|
+
attr_accessor :explanation
|
11847
|
+
|
11848
|
+
# Output only. Groundedness score.
|
11849
|
+
# Corresponds to the JSON property `score`
|
11850
|
+
# @return [Float]
|
11851
|
+
attr_accessor :score
|
11852
|
+
|
11853
|
+
def initialize(**args)
|
11854
|
+
update!(**args)
|
11855
|
+
end
|
11856
|
+
|
11857
|
+
# Update properties of this object
|
11858
|
+
def update!(**args)
|
11859
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
11860
|
+
@explanation = args[:explanation] if args.key?(:explanation)
|
11861
|
+
@score = args[:score] if args.key?(:score)
|
11862
|
+
end
|
11863
|
+
end
|
11864
|
+
|
11865
|
+
# Spec for groundedness metric.
|
11866
|
+
class GoogleCloudAiplatformV1beta1GroundednessSpec
|
11867
|
+
include Google::Apis::Core::Hashable
|
11868
|
+
|
11869
|
+
# Optional. Which version to use for evaluation.
|
11870
|
+
# Corresponds to the JSON property `version`
|
11871
|
+
# @return [Fixnum]
|
11872
|
+
attr_accessor :version
|
11873
|
+
|
11874
|
+
def initialize(**args)
|
11875
|
+
update!(**args)
|
11876
|
+
end
|
11877
|
+
|
11878
|
+
# Update properties of this object
|
11879
|
+
def update!(**args)
|
11880
|
+
@version = args[:version] if args.key?(:version)
|
11881
|
+
end
|
11882
|
+
end
|
11883
|
+
|
10843
11884
|
# Grounding attribution.
|
10844
11885
|
class GoogleCloudAiplatformV1beta1GroundingAttribution
|
10845
11886
|
include Google::Apis::Core::Hashable
|
@@ -10850,6 +11891,11 @@ module Google
|
|
10850
11891
|
# @return [Float]
|
10851
11892
|
attr_accessor :confidence_score
|
10852
11893
|
|
11894
|
+
# Attribution from context retrieved by the retrieval tools.
|
11895
|
+
# Corresponds to the JSON property `retrievedContext`
|
11896
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GroundingAttributionRetrievedContext]
|
11897
|
+
attr_accessor :retrieved_context
|
11898
|
+
|
10853
11899
|
# Segment of the content.
|
10854
11900
|
# Corresponds to the JSON property `segment`
|
10855
11901
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Segment]
|
@@ -10867,11 +11913,37 @@ module Google
|
|
10867
11913
|
# Update properties of this object
|
10868
11914
|
def update!(**args)
|
10869
11915
|
@confidence_score = args[:confidence_score] if args.key?(:confidence_score)
|
11916
|
+
@retrieved_context = args[:retrieved_context] if args.key?(:retrieved_context)
|
10870
11917
|
@segment = args[:segment] if args.key?(:segment)
|
10871
11918
|
@web = args[:web] if args.key?(:web)
|
10872
11919
|
end
|
10873
11920
|
end
|
10874
11921
|
|
11922
|
+
# Attribution from context retrieved by the retrieval tools.
|
11923
|
+
class GoogleCloudAiplatformV1beta1GroundingAttributionRetrievedContext
|
11924
|
+
include Google::Apis::Core::Hashable
|
11925
|
+
|
11926
|
+
# Output only. Title of the attribution.
|
11927
|
+
# Corresponds to the JSON property `title`
|
11928
|
+
# @return [String]
|
11929
|
+
attr_accessor :title
|
11930
|
+
|
11931
|
+
# Output only. URI reference of the attribution.
|
11932
|
+
# Corresponds to the JSON property `uri`
|
11933
|
+
# @return [String]
|
11934
|
+
attr_accessor :uri
|
11935
|
+
|
11936
|
+
def initialize(**args)
|
11937
|
+
update!(**args)
|
11938
|
+
end
|
11939
|
+
|
11940
|
+
# Update properties of this object
|
11941
|
+
def update!(**args)
|
11942
|
+
@title = args[:title] if args.key?(:title)
|
11943
|
+
@uri = args[:uri] if args.key?(:uri)
|
11944
|
+
end
|
11945
|
+
end
|
11946
|
+
|
10875
11947
|
# Attribution from the web.
|
10876
11948
|
class GoogleCloudAiplatformV1beta1GroundingAttributionWeb
|
10877
11949
|
include Google::Apis::Core::Hashable
|
@@ -10906,6 +11978,11 @@ module Google
|
|
10906
11978
|
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GroundingAttribution>]
|
10907
11979
|
attr_accessor :grounding_attributions
|
10908
11980
|
|
11981
|
+
# Optional. Queries executed by the retrieval tools.
|
11982
|
+
# Corresponds to the JSON property `retrievalQueries`
|
11983
|
+
# @return [Array<String>]
|
11984
|
+
attr_accessor :retrieval_queries
|
11985
|
+
|
10909
11986
|
# Optional. Web search queries for the following-up web search.
|
10910
11987
|
# Corresponds to the JSON property `webSearchQueries`
|
10911
11988
|
# @return [Array<String>]
|
@@ -10918,6 +11995,7 @@ module Google
|
|
10918
11995
|
# Update properties of this object
|
10919
11996
|
def update!(**args)
|
10920
11997
|
@grounding_attributions = args[:grounding_attributions] if args.key?(:grounding_attributions)
|
11998
|
+
@retrieval_queries = args[:retrieval_queries] if args.key?(:retrieval_queries)
|
10921
11999
|
@web_search_queries = args[:web_search_queries] if args.key?(:web_search_queries)
|
10922
12000
|
end
|
10923
12001
|
end
|
@@ -11428,6 +12506,56 @@ module Google
|
|
11428
12506
|
end
|
11429
12507
|
end
|
11430
12508
|
|
12509
|
+
# Config for importing RagFiles.
|
12510
|
+
class GoogleCloudAiplatformV1beta1ImportRagFilesConfig
|
12511
|
+
include Google::Apis::Core::Hashable
|
12512
|
+
|
12513
|
+
# The Google Cloud Storage location for the input content.
|
12514
|
+
# Corresponds to the JSON property `gcsSource`
|
12515
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GcsSource]
|
12516
|
+
attr_accessor :gcs_source
|
12517
|
+
|
12518
|
+
# The Google Drive location for the input content.
|
12519
|
+
# Corresponds to the JSON property `googleDriveSource`
|
12520
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GoogleDriveSource]
|
12521
|
+
attr_accessor :google_drive_source
|
12522
|
+
|
12523
|
+
# Specifies the size and overlap of chunks for RagFiles.
|
12524
|
+
# Corresponds to the JSON property `ragFileChunkingConfig`
|
12525
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFileChunkingConfig]
|
12526
|
+
attr_accessor :rag_file_chunking_config
|
12527
|
+
|
12528
|
+
def initialize(**args)
|
12529
|
+
update!(**args)
|
12530
|
+
end
|
12531
|
+
|
12532
|
+
# Update properties of this object
|
12533
|
+
def update!(**args)
|
12534
|
+
@gcs_source = args[:gcs_source] if args.key?(:gcs_source)
|
12535
|
+
@google_drive_source = args[:google_drive_source] if args.key?(:google_drive_source)
|
12536
|
+
@rag_file_chunking_config = args[:rag_file_chunking_config] if args.key?(:rag_file_chunking_config)
|
12537
|
+
end
|
12538
|
+
end
|
12539
|
+
|
12540
|
+
# Request message for VertexRagDataService.ImportRagFiles.
|
12541
|
+
class GoogleCloudAiplatformV1beta1ImportRagFilesRequest
|
12542
|
+
include Google::Apis::Core::Hashable
|
12543
|
+
|
12544
|
+
# Config for importing RagFiles.
|
12545
|
+
# Corresponds to the JSON property `importRagFilesConfig`
|
12546
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ImportRagFilesConfig]
|
12547
|
+
attr_accessor :import_rag_files_config
|
12548
|
+
|
12549
|
+
def initialize(**args)
|
12550
|
+
update!(**args)
|
12551
|
+
end
|
12552
|
+
|
12553
|
+
# Update properties of this object
|
12554
|
+
def update!(**args)
|
12555
|
+
@import_rag_files_config = args[:import_rag_files_config] if args.key?(:import_rag_files_config)
|
12556
|
+
end
|
12557
|
+
end
|
12558
|
+
|
11431
12559
|
# A representation of a collection of database items organized in a way that
|
11432
12560
|
# allows for approximate nearest neighbor (a.k.a ANN) algorithms search.
|
11433
12561
|
class GoogleCloudAiplatformV1beta1Index
|
@@ -13152,6 +14280,84 @@ module Google
|
|
13152
14280
|
end
|
13153
14281
|
end
|
13154
14282
|
|
14283
|
+
# Response message for VertexRagDataService.ListRagCorpora.
|
14284
|
+
class GoogleCloudAiplatformV1beta1ListRagCorporaResponse
|
14285
|
+
include Google::Apis::Core::Hashable
|
14286
|
+
|
14287
|
+
# A token to retrieve the next page of results. Pass to ListRagCorporaRequest.
|
14288
|
+
# page_token to obtain that page.
|
14289
|
+
# Corresponds to the JSON property `nextPageToken`
|
14290
|
+
# @return [String]
|
14291
|
+
attr_accessor :next_page_token
|
14292
|
+
|
14293
|
+
# List of RagCorpora in the requested page.
|
14294
|
+
# Corresponds to the JSON property `ragCorpora`
|
14295
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagCorpus>]
|
14296
|
+
attr_accessor :rag_corpora
|
14297
|
+
|
14298
|
+
def initialize(**args)
|
14299
|
+
update!(**args)
|
14300
|
+
end
|
14301
|
+
|
14302
|
+
# Update properties of this object
|
14303
|
+
def update!(**args)
|
14304
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
14305
|
+
@rag_corpora = args[:rag_corpora] if args.key?(:rag_corpora)
|
14306
|
+
end
|
14307
|
+
end
|
14308
|
+
|
14309
|
+
# Response message for VertexRagDataService.ListRagFiles.
|
14310
|
+
class GoogleCloudAiplatformV1beta1ListRagFilesResponse
|
14311
|
+
include Google::Apis::Core::Hashable
|
14312
|
+
|
14313
|
+
# A token to retrieve the next page of results. Pass to ListRagFilesRequest.
|
14314
|
+
# page_token to obtain that page.
|
14315
|
+
# Corresponds to the JSON property `nextPageToken`
|
14316
|
+
# @return [String]
|
14317
|
+
attr_accessor :next_page_token
|
14318
|
+
|
14319
|
+
# List of RagFiles in the requested page.
|
14320
|
+
# Corresponds to the JSON property `ragFiles`
|
14321
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFile>]
|
14322
|
+
attr_accessor :rag_files
|
14323
|
+
|
14324
|
+
def initialize(**args)
|
14325
|
+
update!(**args)
|
14326
|
+
end
|
14327
|
+
|
14328
|
+
# Update properties of this object
|
14329
|
+
def update!(**args)
|
14330
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
14331
|
+
@rag_files = args[:rag_files] if args.key?(:rag_files)
|
14332
|
+
end
|
14333
|
+
end
|
14334
|
+
|
14335
|
+
# Response message for ReasoningEngineService.ListReasoningEngines
|
14336
|
+
class GoogleCloudAiplatformV1beta1ListReasoningEnginesResponse
|
14337
|
+
include Google::Apis::Core::Hashable
|
14338
|
+
|
14339
|
+
# A token to retrieve the next page of results. Pass to
|
14340
|
+
# ListReasoningEnginesRequest.page_token to obtain that page.
|
14341
|
+
# Corresponds to the JSON property `nextPageToken`
|
14342
|
+
# @return [String]
|
14343
|
+
attr_accessor :next_page_token
|
14344
|
+
|
14345
|
+
# List of ReasoningEngines in the requested page.
|
14346
|
+
# Corresponds to the JSON property `reasoningEngines`
|
14347
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngine>]
|
14348
|
+
attr_accessor :reasoning_engines
|
14349
|
+
|
14350
|
+
def initialize(**args)
|
14351
|
+
update!(**args)
|
14352
|
+
end
|
14353
|
+
|
14354
|
+
# Update properties of this object
|
14355
|
+
def update!(**args)
|
14356
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
14357
|
+
@reasoning_engines = args[:reasoning_engines] if args.key?(:reasoning_engines)
|
14358
|
+
end
|
14359
|
+
end
|
14360
|
+
|
13155
14361
|
# Response message for DatasetService.ListSavedQueries.
|
13156
14362
|
class GoogleCloudAiplatformV1beta1ListSavedQueriesResponse
|
13157
14363
|
include Google::Apis::Core::Hashable
|
@@ -17129,6 +18335,258 @@ module Google
|
|
17129
18335
|
end
|
17130
18336
|
end
|
17131
18337
|
|
18338
|
+
# Input for pairwise question answering quality metric.
|
18339
|
+
class GoogleCloudAiplatformV1beta1PairwiseQuestionAnsweringQualityInput
|
18340
|
+
include Google::Apis::Core::Hashable
|
18341
|
+
|
18342
|
+
# Spec for pairwise question answering quality instance.
|
18343
|
+
# Corresponds to the JSON property `instance`
|
18344
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PairwiseQuestionAnsweringQualityInstance]
|
18345
|
+
attr_accessor :instance
|
18346
|
+
|
18347
|
+
# Spec for pairwise question answering quality score metric.
|
18348
|
+
# Corresponds to the JSON property `metricSpec`
|
18349
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PairwiseQuestionAnsweringQualitySpec]
|
18350
|
+
attr_accessor :metric_spec
|
18351
|
+
|
18352
|
+
def initialize(**args)
|
18353
|
+
update!(**args)
|
18354
|
+
end
|
18355
|
+
|
18356
|
+
# Update properties of this object
|
18357
|
+
def update!(**args)
|
18358
|
+
@instance = args[:instance] if args.key?(:instance)
|
18359
|
+
@metric_spec = args[:metric_spec] if args.key?(:metric_spec)
|
18360
|
+
end
|
18361
|
+
end
|
18362
|
+
|
18363
|
+
# Spec for pairwise question answering quality instance.
|
18364
|
+
class GoogleCloudAiplatformV1beta1PairwiseQuestionAnsweringQualityInstance
|
18365
|
+
include Google::Apis::Core::Hashable
|
18366
|
+
|
18367
|
+
# Required. Output of the baseline model.
|
18368
|
+
# Corresponds to the JSON property `baselinePrediction`
|
18369
|
+
# @return [String]
|
18370
|
+
attr_accessor :baseline_prediction
|
18371
|
+
|
18372
|
+
# Optional. Text to answer the question.
|
18373
|
+
# Corresponds to the JSON property `context`
|
18374
|
+
# @return [String]
|
18375
|
+
attr_accessor :context
|
18376
|
+
|
18377
|
+
# Required. Question Answering prompt for LLM.
|
18378
|
+
# Corresponds to the JSON property `instruction`
|
18379
|
+
# @return [String]
|
18380
|
+
attr_accessor :instruction
|
18381
|
+
|
18382
|
+
# Required. Output of the candidate model.
|
18383
|
+
# Corresponds to the JSON property `prediction`
|
18384
|
+
# @return [String]
|
18385
|
+
attr_accessor :prediction
|
18386
|
+
|
18387
|
+
# Optional. Ground truth used to compare against the prediction.
|
18388
|
+
# Corresponds to the JSON property `reference`
|
18389
|
+
# @return [String]
|
18390
|
+
attr_accessor :reference
|
18391
|
+
|
18392
|
+
def initialize(**args)
|
18393
|
+
update!(**args)
|
18394
|
+
end
|
18395
|
+
|
18396
|
+
# Update properties of this object
|
18397
|
+
def update!(**args)
|
18398
|
+
@baseline_prediction = args[:baseline_prediction] if args.key?(:baseline_prediction)
|
18399
|
+
@context = args[:context] if args.key?(:context)
|
18400
|
+
@instruction = args[:instruction] if args.key?(:instruction)
|
18401
|
+
@prediction = args[:prediction] if args.key?(:prediction)
|
18402
|
+
@reference = args[:reference] if args.key?(:reference)
|
18403
|
+
end
|
18404
|
+
end
|
18405
|
+
|
18406
|
+
# Spec for pairwise question answering quality result.
|
18407
|
+
class GoogleCloudAiplatformV1beta1PairwiseQuestionAnsweringQualityResult
|
18408
|
+
include Google::Apis::Core::Hashable
|
18409
|
+
|
18410
|
+
# Output only. Confidence for question answering quality score.
|
18411
|
+
# Corresponds to the JSON property `confidence`
|
18412
|
+
# @return [Float]
|
18413
|
+
attr_accessor :confidence
|
18414
|
+
|
18415
|
+
# Output only. Explanation for question answering quality score.
|
18416
|
+
# Corresponds to the JSON property `explanation`
|
18417
|
+
# @return [String]
|
18418
|
+
attr_accessor :explanation
|
18419
|
+
|
18420
|
+
# Output only. Pairwise question answering prediction choice.
|
18421
|
+
# Corresponds to the JSON property `pairwiseChoice`
|
18422
|
+
# @return [String]
|
18423
|
+
attr_accessor :pairwise_choice
|
18424
|
+
|
18425
|
+
def initialize(**args)
|
18426
|
+
update!(**args)
|
18427
|
+
end
|
18428
|
+
|
18429
|
+
# Update properties of this object
|
18430
|
+
def update!(**args)
|
18431
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
18432
|
+
@explanation = args[:explanation] if args.key?(:explanation)
|
18433
|
+
@pairwise_choice = args[:pairwise_choice] if args.key?(:pairwise_choice)
|
18434
|
+
end
|
18435
|
+
end
|
18436
|
+
|
18437
|
+
# Spec for pairwise question answering quality score metric.
|
18438
|
+
class GoogleCloudAiplatformV1beta1PairwiseQuestionAnsweringQualitySpec
|
18439
|
+
include Google::Apis::Core::Hashable
|
18440
|
+
|
18441
|
+
# Optional. Whether to use instance.reference to compute question answering
|
18442
|
+
# quality.
|
18443
|
+
# Corresponds to the JSON property `useReference`
|
18444
|
+
# @return [Boolean]
|
18445
|
+
attr_accessor :use_reference
|
18446
|
+
alias_method :use_reference?, :use_reference
|
18447
|
+
|
18448
|
+
# Optional. Which version to use for evaluation.
|
18449
|
+
# Corresponds to the JSON property `version`
|
18450
|
+
# @return [Fixnum]
|
18451
|
+
attr_accessor :version
|
18452
|
+
|
18453
|
+
def initialize(**args)
|
18454
|
+
update!(**args)
|
18455
|
+
end
|
18456
|
+
|
18457
|
+
# Update properties of this object
|
18458
|
+
def update!(**args)
|
18459
|
+
@use_reference = args[:use_reference] if args.key?(:use_reference)
|
18460
|
+
@version = args[:version] if args.key?(:version)
|
18461
|
+
end
|
18462
|
+
end
|
18463
|
+
|
18464
|
+
# Input for pairwise summarization quality metric.
|
18465
|
+
class GoogleCloudAiplatformV1beta1PairwiseSummarizationQualityInput
|
18466
|
+
include Google::Apis::Core::Hashable
|
18467
|
+
|
18468
|
+
# Spec for pairwise summarization quality instance.
|
18469
|
+
# Corresponds to the JSON property `instance`
|
18470
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PairwiseSummarizationQualityInstance]
|
18471
|
+
attr_accessor :instance
|
18472
|
+
|
18473
|
+
# Spec for pairwise summarization quality score metric.
|
18474
|
+
# Corresponds to the JSON property `metricSpec`
|
18475
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PairwiseSummarizationQualitySpec]
|
18476
|
+
attr_accessor :metric_spec
|
18477
|
+
|
18478
|
+
def initialize(**args)
|
18479
|
+
update!(**args)
|
18480
|
+
end
|
18481
|
+
|
18482
|
+
# Update properties of this object
|
18483
|
+
def update!(**args)
|
18484
|
+
@instance = args[:instance] if args.key?(:instance)
|
18485
|
+
@metric_spec = args[:metric_spec] if args.key?(:metric_spec)
|
18486
|
+
end
|
18487
|
+
end
|
18488
|
+
|
18489
|
+
# Spec for pairwise summarization quality instance.
|
18490
|
+
class GoogleCloudAiplatformV1beta1PairwiseSummarizationQualityInstance
|
18491
|
+
include Google::Apis::Core::Hashable
|
18492
|
+
|
18493
|
+
# Required. Output of the baseline model.
|
18494
|
+
# Corresponds to the JSON property `baselinePrediction`
|
18495
|
+
# @return [String]
|
18496
|
+
attr_accessor :baseline_prediction
|
18497
|
+
|
18498
|
+
# Required. Text to be summarized.
|
18499
|
+
# Corresponds to the JSON property `context`
|
18500
|
+
# @return [String]
|
18501
|
+
attr_accessor :context
|
18502
|
+
|
18503
|
+
# Required. Summarization prompt for LLM.
|
18504
|
+
# Corresponds to the JSON property `instruction`
|
18505
|
+
# @return [String]
|
18506
|
+
attr_accessor :instruction
|
18507
|
+
|
18508
|
+
# Required. Output of the candidate model.
|
18509
|
+
# Corresponds to the JSON property `prediction`
|
18510
|
+
# @return [String]
|
18511
|
+
attr_accessor :prediction
|
18512
|
+
|
18513
|
+
# Optional. Ground truth used to compare against the prediction.
|
18514
|
+
# Corresponds to the JSON property `reference`
|
18515
|
+
# @return [String]
|
18516
|
+
attr_accessor :reference
|
18517
|
+
|
18518
|
+
def initialize(**args)
|
18519
|
+
update!(**args)
|
18520
|
+
end
|
18521
|
+
|
18522
|
+
# Update properties of this object
|
18523
|
+
def update!(**args)
|
18524
|
+
@baseline_prediction = args[:baseline_prediction] if args.key?(:baseline_prediction)
|
18525
|
+
@context = args[:context] if args.key?(:context)
|
18526
|
+
@instruction = args[:instruction] if args.key?(:instruction)
|
18527
|
+
@prediction = args[:prediction] if args.key?(:prediction)
|
18528
|
+
@reference = args[:reference] if args.key?(:reference)
|
18529
|
+
end
|
18530
|
+
end
|
18531
|
+
|
18532
|
+
# Spec for pairwise summarization quality result.
|
18533
|
+
class GoogleCloudAiplatformV1beta1PairwiseSummarizationQualityResult
|
18534
|
+
include Google::Apis::Core::Hashable
|
18535
|
+
|
18536
|
+
# Output only. Confidence for summarization quality score.
|
18537
|
+
# Corresponds to the JSON property `confidence`
|
18538
|
+
# @return [Float]
|
18539
|
+
attr_accessor :confidence
|
18540
|
+
|
18541
|
+
# Output only. Explanation for summarization quality score.
|
18542
|
+
# Corresponds to the JSON property `explanation`
|
18543
|
+
# @return [String]
|
18544
|
+
attr_accessor :explanation
|
18545
|
+
|
18546
|
+
# Output only. Pairwise summarization prediction choice.
|
18547
|
+
# Corresponds to the JSON property `pairwiseChoice`
|
18548
|
+
# @return [String]
|
18549
|
+
attr_accessor :pairwise_choice
|
18550
|
+
|
18551
|
+
def initialize(**args)
|
18552
|
+
update!(**args)
|
18553
|
+
end
|
18554
|
+
|
18555
|
+
# Update properties of this object
|
18556
|
+
def update!(**args)
|
18557
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
18558
|
+
@explanation = args[:explanation] if args.key?(:explanation)
|
18559
|
+
@pairwise_choice = args[:pairwise_choice] if args.key?(:pairwise_choice)
|
18560
|
+
end
|
18561
|
+
end
|
18562
|
+
|
18563
|
+
# Spec for pairwise summarization quality score metric.
|
18564
|
+
class GoogleCloudAiplatformV1beta1PairwiseSummarizationQualitySpec
|
18565
|
+
include Google::Apis::Core::Hashable
|
18566
|
+
|
18567
|
+
# Optional. Whether to use instance.reference to compute pairwise summarization
|
18568
|
+
# quality.
|
18569
|
+
# Corresponds to the JSON property `useReference`
|
18570
|
+
# @return [Boolean]
|
18571
|
+
attr_accessor :use_reference
|
18572
|
+
alias_method :use_reference?, :use_reference
|
18573
|
+
|
18574
|
+
# Optional. Which version to use for evaluation.
|
18575
|
+
# Corresponds to the JSON property `version`
|
18576
|
+
# @return [Fixnum]
|
18577
|
+
attr_accessor :version
|
18578
|
+
|
18579
|
+
def initialize(**args)
|
18580
|
+
update!(**args)
|
18581
|
+
end
|
18582
|
+
|
18583
|
+
# Update properties of this object
|
18584
|
+
def update!(**args)
|
18585
|
+
@use_reference = args[:use_reference] if args.key?(:use_reference)
|
18586
|
+
@version = args[:version] if args.key?(:version)
|
18587
|
+
end
|
18588
|
+
end
|
18589
|
+
|
17132
18590
|
# A datatype containing media that is part of a multi-part `Content` message. A `
|
17133
18591
|
# Part` consists of data which has an associated datatype. A `Part` can only
|
17134
18592
|
# contain one of the accepted types in `Part.data`. A `Part` must have a fixed
|
@@ -17157,7 +18615,7 @@ module Google
|
|
17157
18615
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FunctionResponse]
|
17158
18616
|
attr_accessor :function_response
|
17159
18617
|
|
17160
|
-
#
|
18618
|
+
# Content blob. It's preferred to send as text directly rather than raw bytes.
|
17161
18619
|
# Corresponds to the JSON property `inlineData`
|
17162
18620
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Blob]
|
17163
18621
|
attr_accessor :inline_data
|
@@ -19157,17 +20615,6 @@ module Google
|
|
19157
20615
|
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Content>]
|
19158
20616
|
attr_accessor :contents
|
19159
20617
|
|
19160
|
-
# User provided query message.
|
19161
|
-
# Corresponds to the JSON property `query`
|
19162
|
-
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryRequestQuery]
|
19163
|
-
attr_accessor :query
|
19164
|
-
|
19165
|
-
# Optional. Experiment control on whether to use function call.
|
19166
|
-
# Corresponds to the JSON property `useFunctionCall`
|
19167
|
-
# @return [Boolean]
|
19168
|
-
attr_accessor :use_function_call
|
19169
|
-
alias_method :use_function_call?, :use_function_call
|
19170
|
-
|
19171
20618
|
def initialize(**args)
|
19172
20619
|
update!(**args)
|
19173
20620
|
end
|
@@ -19175,8 +20622,6 @@ module Google
|
|
19175
20622
|
# Update properties of this object
|
19176
20623
|
def update!(**args)
|
19177
20624
|
@contents = args[:contents] if args.key?(:contents)
|
19178
|
-
@query = args[:query] if args.key?(:query)
|
19179
|
-
@use_function_call = args[:use_function_call] if args.key?(:use_function_call)
|
19180
20625
|
end
|
19181
20626
|
end
|
19182
20627
|
|
@@ -19189,21 +20634,6 @@ module Google
|
|
19189
20634
|
# @return [String]
|
19190
20635
|
attr_accessor :failure_message
|
19191
20636
|
|
19192
|
-
# Metadata for response
|
19193
|
-
# Corresponds to the JSON property `metadata`
|
19194
|
-
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryResponseResponseMetadata]
|
19195
|
-
attr_accessor :metadata
|
19196
|
-
|
19197
|
-
#
|
19198
|
-
# Corresponds to the JSON property `queryResponseMetadata`
|
19199
|
-
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QueryResponseQueryResponseMetadata]
|
19200
|
-
attr_accessor :query_response_metadata
|
19201
|
-
|
19202
|
-
# Response to the user's query.
|
19203
|
-
# Corresponds to the JSON property `response`
|
19204
|
-
# @return [String]
|
19205
|
-
attr_accessor :response
|
19206
|
-
|
19207
20637
|
# Steps of extension or LLM interaction, can contain function call, function
|
19208
20638
|
# response, or text response. The last step contains the final response to the
|
19209
20639
|
# query.
|
@@ -19218,21 +20648,97 @@ module Google
|
|
19218
20648
|
# Update properties of this object
|
19219
20649
|
def update!(**args)
|
19220
20650
|
@failure_message = args[:failure_message] if args.key?(:failure_message)
|
19221
|
-
@metadata = args[:metadata] if args.key?(:metadata)
|
19222
|
-
@query_response_metadata = args[:query_response_metadata] if args.key?(:query_response_metadata)
|
19223
|
-
@response = args[:response] if args.key?(:response)
|
19224
20651
|
@steps = args[:steps] if args.key?(:steps)
|
19225
20652
|
end
|
19226
20653
|
end
|
19227
20654
|
|
19228
|
-
#
|
19229
|
-
class
|
20655
|
+
# Request message for ReasoningEngineExecutionService.Query.
|
20656
|
+
class GoogleCloudAiplatformV1beta1QueryReasoningEngineRequest
|
19230
20657
|
include Google::Apis::Core::Hashable
|
19231
20658
|
|
19232
|
-
#
|
19233
|
-
#
|
20659
|
+
# Optional. Input content provided by users in JSON object format. Examples
|
20660
|
+
# include text query, function calling parameters, media bytes, etc.
|
20661
|
+
# Corresponds to the JSON property `input`
|
20662
|
+
# @return [Hash<String,Object>]
|
20663
|
+
attr_accessor :input
|
20664
|
+
|
20665
|
+
def initialize(**args)
|
20666
|
+
update!(**args)
|
20667
|
+
end
|
20668
|
+
|
20669
|
+
# Update properties of this object
|
20670
|
+
def update!(**args)
|
20671
|
+
@input = args[:input] if args.key?(:input)
|
20672
|
+
end
|
20673
|
+
end
|
20674
|
+
|
20675
|
+
# Response message for ReasoningEngineExecutionService.Query
|
20676
|
+
class GoogleCloudAiplatformV1beta1QueryReasoningEngineResponse
|
20677
|
+
include Google::Apis::Core::Hashable
|
20678
|
+
|
20679
|
+
# Response provided by users in JSON object format.
|
20680
|
+
# Corresponds to the JSON property `output`
|
20681
|
+
# @return [Object]
|
20682
|
+
attr_accessor :output
|
20683
|
+
|
20684
|
+
def initialize(**args)
|
20685
|
+
update!(**args)
|
20686
|
+
end
|
20687
|
+
|
20688
|
+
# Update properties of this object
|
20689
|
+
def update!(**args)
|
20690
|
+
@output = args[:output] if args.key?(:output)
|
20691
|
+
end
|
20692
|
+
end
|
20693
|
+
|
20694
|
+
# Input for question answering correctness metric.
|
20695
|
+
class GoogleCloudAiplatformV1beta1QuestionAnsweringCorrectnessInput
|
20696
|
+
include Google::Apis::Core::Hashable
|
20697
|
+
|
20698
|
+
# Spec for question answering correctness instance.
|
20699
|
+
# Corresponds to the JSON property `instance`
|
20700
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QuestionAnsweringCorrectnessInstance]
|
20701
|
+
attr_accessor :instance
|
20702
|
+
|
20703
|
+
# Spec for question answering correctness metric.
|
20704
|
+
# Corresponds to the JSON property `metricSpec`
|
20705
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QuestionAnsweringCorrectnessSpec]
|
20706
|
+
attr_accessor :metric_spec
|
20707
|
+
|
20708
|
+
def initialize(**args)
|
20709
|
+
update!(**args)
|
20710
|
+
end
|
20711
|
+
|
20712
|
+
# Update properties of this object
|
20713
|
+
def update!(**args)
|
20714
|
+
@instance = args[:instance] if args.key?(:instance)
|
20715
|
+
@metric_spec = args[:metric_spec] if args.key?(:metric_spec)
|
20716
|
+
end
|
20717
|
+
end
|
20718
|
+
|
20719
|
+
# Spec for question answering correctness instance.
|
20720
|
+
class GoogleCloudAiplatformV1beta1QuestionAnsweringCorrectnessInstance
|
20721
|
+
include Google::Apis::Core::Hashable
|
20722
|
+
|
20723
|
+
# Optional. Text provided as context to answer the question.
|
20724
|
+
# Corresponds to the JSON property `context`
|
19234
20725
|
# @return [String]
|
19235
|
-
attr_accessor :
|
20726
|
+
attr_accessor :context
|
20727
|
+
|
20728
|
+
# Required. The question asked and other instruction in the inference prompt.
|
20729
|
+
# Corresponds to the JSON property `instruction`
|
20730
|
+
# @return [String]
|
20731
|
+
attr_accessor :instruction
|
20732
|
+
|
20733
|
+
# Required. Output of the evaluated model.
|
20734
|
+
# Corresponds to the JSON property `prediction`
|
20735
|
+
# @return [String]
|
20736
|
+
attr_accessor :prediction
|
20737
|
+
|
20738
|
+
# Optional. Ground truth used to compare against the prediction.
|
20739
|
+
# Corresponds to the JSON property `reference`
|
20740
|
+
# @return [String]
|
20741
|
+
attr_accessor :reference
|
19236
20742
|
|
19237
20743
|
def initialize(**args)
|
19238
20744
|
update!(**args)
|
@@ -19240,25 +20746,59 @@ module Google
|
|
19240
20746
|
|
19241
20747
|
# Update properties of this object
|
19242
20748
|
def update!(**args)
|
19243
|
-
@
|
20749
|
+
@context = args[:context] if args.key?(:context)
|
20750
|
+
@instruction = args[:instruction] if args.key?(:instruction)
|
20751
|
+
@prediction = args[:prediction] if args.key?(:prediction)
|
20752
|
+
@reference = args[:reference] if args.key?(:reference)
|
19244
20753
|
end
|
19245
20754
|
end
|
19246
20755
|
|
19247
|
-
#
|
19248
|
-
class
|
20756
|
+
# Spec for question answering correctness result.
|
20757
|
+
class GoogleCloudAiplatformV1beta1QuestionAnsweringCorrectnessResult
|
19249
20758
|
include Google::Apis::Core::Hashable
|
19250
20759
|
|
19251
|
-
#
|
19252
|
-
# Corresponds to the JSON property `
|
19253
|
-
# @return [
|
19254
|
-
attr_accessor :
|
20760
|
+
# Output only. Confidence for question answering correctness score.
|
20761
|
+
# Corresponds to the JSON property `confidence`
|
20762
|
+
# @return [Float]
|
20763
|
+
attr_accessor :confidence
|
20764
|
+
|
20765
|
+
# Output only. Explanation for question answering correctness score.
|
20766
|
+
# Corresponds to the JSON property `explanation`
|
20767
|
+
# @return [String]
|
20768
|
+
attr_accessor :explanation
|
20769
|
+
|
20770
|
+
# Output only. Question Answering Correctness score.
|
20771
|
+
# Corresponds to the JSON property `score`
|
20772
|
+
# @return [Float]
|
20773
|
+
attr_accessor :score
|
20774
|
+
|
20775
|
+
def initialize(**args)
|
20776
|
+
update!(**args)
|
20777
|
+
end
|
20778
|
+
|
20779
|
+
# Update properties of this object
|
20780
|
+
def update!(**args)
|
20781
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
20782
|
+
@explanation = args[:explanation] if args.key?(:explanation)
|
20783
|
+
@score = args[:score] if args.key?(:score)
|
20784
|
+
end
|
20785
|
+
end
|
20786
|
+
|
20787
|
+
# Spec for question answering correctness metric.
|
20788
|
+
class GoogleCloudAiplatformV1beta1QuestionAnsweringCorrectnessSpec
|
20789
|
+
include Google::Apis::Core::Hashable
|
19255
20790
|
|
19256
|
-
# Whether
|
19257
|
-
#
|
19258
|
-
# Corresponds to the JSON property `
|
20791
|
+
# Optional. Whether to use instance.reference to compute question answering
|
20792
|
+
# correctness.
|
20793
|
+
# Corresponds to the JSON property `useReference`
|
19259
20794
|
# @return [Boolean]
|
19260
|
-
attr_accessor :
|
19261
|
-
alias_method :
|
20795
|
+
attr_accessor :use_reference
|
20796
|
+
alias_method :use_reference?, :use_reference
|
20797
|
+
|
20798
|
+
# Optional. Which version to use for evaluation.
|
20799
|
+
# Corresponds to the JSON property `version`
|
20800
|
+
# @return [Fixnum]
|
20801
|
+
attr_accessor :version
|
19262
20802
|
|
19263
20803
|
def initialize(**args)
|
19264
20804
|
update!(**args)
|
@@ -19266,46 +20806,179 @@ module Google
|
|
19266
20806
|
|
19267
20807
|
# Update properties of this object
|
19268
20808
|
def update!(**args)
|
19269
|
-
@
|
19270
|
-
@
|
20809
|
+
@use_reference = args[:use_reference] if args.key?(:use_reference)
|
20810
|
+
@version = args[:version] if args.key?(:version)
|
19271
20811
|
end
|
19272
20812
|
end
|
19273
20813
|
|
19274
|
-
#
|
19275
|
-
class
|
20814
|
+
# Input for question answering helpfulness metric.
|
20815
|
+
class GoogleCloudAiplatformV1beta1QuestionAnsweringHelpfulnessInput
|
19276
20816
|
include Google::Apis::Core::Hashable
|
19277
20817
|
|
19278
|
-
#
|
19279
|
-
# Corresponds to the JSON property `
|
20818
|
+
# Spec for question answering helpfulness instance.
|
20819
|
+
# Corresponds to the JSON property `instance`
|
20820
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QuestionAnsweringHelpfulnessInstance]
|
20821
|
+
attr_accessor :instance
|
20822
|
+
|
20823
|
+
# Spec for question answering helpfulness metric.
|
20824
|
+
# Corresponds to the JSON property `metricSpec`
|
20825
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QuestionAnsweringHelpfulnessSpec]
|
20826
|
+
attr_accessor :metric_spec
|
20827
|
+
|
20828
|
+
def initialize(**args)
|
20829
|
+
update!(**args)
|
20830
|
+
end
|
20831
|
+
|
20832
|
+
# Update properties of this object
|
20833
|
+
def update!(**args)
|
20834
|
+
@instance = args[:instance] if args.key?(:instance)
|
20835
|
+
@metric_spec = args[:metric_spec] if args.key?(:metric_spec)
|
20836
|
+
end
|
20837
|
+
end
|
20838
|
+
|
20839
|
+
# Spec for question answering helpfulness instance.
|
20840
|
+
class GoogleCloudAiplatformV1beta1QuestionAnsweringHelpfulnessInstance
|
20841
|
+
include Google::Apis::Core::Hashable
|
20842
|
+
|
20843
|
+
# Optional. Text provided as context to answer the question.
|
20844
|
+
# Corresponds to the JSON property `context`
|
19280
20845
|
# @return [String]
|
19281
|
-
attr_accessor :
|
20846
|
+
attr_accessor :context
|
19282
20847
|
|
19283
|
-
#
|
19284
|
-
# Corresponds to the JSON property `
|
20848
|
+
# Required. The question asked and other instruction in the inference prompt.
|
20849
|
+
# Corresponds to the JSON property `instruction`
|
19285
20850
|
# @return [String]
|
19286
|
-
attr_accessor :
|
20851
|
+
attr_accessor :instruction
|
19287
20852
|
|
19288
|
-
#
|
19289
|
-
# Corresponds to the JSON property `
|
20853
|
+
# Required. Output of the evaluated model.
|
20854
|
+
# Corresponds to the JSON property `prediction`
|
19290
20855
|
# @return [String]
|
19291
|
-
attr_accessor :
|
20856
|
+
attr_accessor :prediction
|
19292
20857
|
|
19293
|
-
#
|
19294
|
-
# Corresponds to the JSON property `
|
20858
|
+
# Optional. Ground truth used to compare against the prediction.
|
20859
|
+
# Corresponds to the JSON property `reference`
|
19295
20860
|
# @return [String]
|
19296
|
-
attr_accessor :
|
20861
|
+
attr_accessor :reference
|
20862
|
+
|
20863
|
+
def initialize(**args)
|
20864
|
+
update!(**args)
|
20865
|
+
end
|
20866
|
+
|
20867
|
+
# Update properties of this object
|
20868
|
+
def update!(**args)
|
20869
|
+
@context = args[:context] if args.key?(:context)
|
20870
|
+
@instruction = args[:instruction] if args.key?(:instruction)
|
20871
|
+
@prediction = args[:prediction] if args.key?(:prediction)
|
20872
|
+
@reference = args[:reference] if args.key?(:reference)
|
20873
|
+
end
|
20874
|
+
end
|
20875
|
+
|
20876
|
+
# Spec for question answering helpfulness result.
|
20877
|
+
class GoogleCloudAiplatformV1beta1QuestionAnsweringHelpfulnessResult
|
20878
|
+
include Google::Apis::Core::Hashable
|
20879
|
+
|
20880
|
+
# Output only. Confidence for question answering helpfulness score.
|
20881
|
+
# Corresponds to the JSON property `confidence`
|
20882
|
+
# @return [Float]
|
20883
|
+
attr_accessor :confidence
|
20884
|
+
|
20885
|
+
# Output only. Explanation for question answering helpfulness score.
|
20886
|
+
# Corresponds to the JSON property `explanation`
|
20887
|
+
# @return [String]
|
20888
|
+
attr_accessor :explanation
|
20889
|
+
|
20890
|
+
# Output only. Question Answering Helpfulness score.
|
20891
|
+
# Corresponds to the JSON property `score`
|
20892
|
+
# @return [Float]
|
20893
|
+
attr_accessor :score
|
20894
|
+
|
20895
|
+
def initialize(**args)
|
20896
|
+
update!(**args)
|
20897
|
+
end
|
20898
|
+
|
20899
|
+
# Update properties of this object
|
20900
|
+
def update!(**args)
|
20901
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
20902
|
+
@explanation = args[:explanation] if args.key?(:explanation)
|
20903
|
+
@score = args[:score] if args.key?(:score)
|
20904
|
+
end
|
20905
|
+
end
|
19297
20906
|
|
19298
|
-
|
19299
|
-
|
19300
|
-
|
20907
|
+
# Spec for question answering helpfulness metric.
|
20908
|
+
class GoogleCloudAiplatformV1beta1QuestionAnsweringHelpfulnessSpec
|
20909
|
+
include Google::Apis::Core::Hashable
|
20910
|
+
|
20911
|
+
# Optional. Whether to use instance.reference to compute question answering
|
20912
|
+
# helpfulness.
|
20913
|
+
# Corresponds to the JSON property `useReference`
|
19301
20914
|
# @return [Boolean]
|
19302
|
-
attr_accessor :
|
19303
|
-
alias_method :
|
20915
|
+
attr_accessor :use_reference
|
20916
|
+
alias_method :use_reference?, :use_reference
|
20917
|
+
|
20918
|
+
# Optional. Which version to use for evaluation.
|
20919
|
+
# Corresponds to the JSON property `version`
|
20920
|
+
# @return [Fixnum]
|
20921
|
+
attr_accessor :version
|
20922
|
+
|
20923
|
+
def initialize(**args)
|
20924
|
+
update!(**args)
|
20925
|
+
end
|
20926
|
+
|
20927
|
+
# Update properties of this object
|
20928
|
+
def update!(**args)
|
20929
|
+
@use_reference = args[:use_reference] if args.key?(:use_reference)
|
20930
|
+
@version = args[:version] if args.key?(:version)
|
20931
|
+
end
|
20932
|
+
end
|
20933
|
+
|
20934
|
+
# Input for question answering quality metric.
|
20935
|
+
class GoogleCloudAiplatformV1beta1QuestionAnsweringQualityInput
|
20936
|
+
include Google::Apis::Core::Hashable
|
20937
|
+
|
20938
|
+
# Spec for question answering quality instance.
|
20939
|
+
# Corresponds to the JSON property `instance`
|
20940
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QuestionAnsweringQualityInstance]
|
20941
|
+
attr_accessor :instance
|
20942
|
+
|
20943
|
+
# Spec for question answering quality score metric.
|
20944
|
+
# Corresponds to the JSON property `metricSpec`
|
20945
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QuestionAnsweringQualitySpec]
|
20946
|
+
attr_accessor :metric_spec
|
19304
20947
|
|
19305
|
-
|
19306
|
-
|
20948
|
+
def initialize(**args)
|
20949
|
+
update!(**args)
|
20950
|
+
end
|
20951
|
+
|
20952
|
+
# Update properties of this object
|
20953
|
+
def update!(**args)
|
20954
|
+
@instance = args[:instance] if args.key?(:instance)
|
20955
|
+
@metric_spec = args[:metric_spec] if args.key?(:metric_spec)
|
20956
|
+
end
|
20957
|
+
end
|
20958
|
+
|
20959
|
+
# Spec for question answering quality instance.
|
20960
|
+
class GoogleCloudAiplatformV1beta1QuestionAnsweringQualityInstance
|
20961
|
+
include Google::Apis::Core::Hashable
|
20962
|
+
|
20963
|
+
# Optional. Text to answer the question.
|
20964
|
+
# Corresponds to the JSON property `context`
|
20965
|
+
# @return [String]
|
20966
|
+
attr_accessor :context
|
20967
|
+
|
20968
|
+
# Required. Question Answering prompt for LLM.
|
20969
|
+
# Corresponds to the JSON property `instruction`
|
19307
20970
|
# @return [String]
|
19308
|
-
attr_accessor :
|
20971
|
+
attr_accessor :instruction
|
20972
|
+
|
20973
|
+
# Required. Output of the evaluated model.
|
20974
|
+
# Corresponds to the JSON property `prediction`
|
20975
|
+
# @return [String]
|
20976
|
+
attr_accessor :prediction
|
20977
|
+
|
20978
|
+
# Optional. Ground truth used to compare against the prediction.
|
20979
|
+
# Corresponds to the JSON property `reference`
|
20980
|
+
# @return [String]
|
20981
|
+
attr_accessor :reference
|
19309
20982
|
|
19310
20983
|
def initialize(**args)
|
19311
20984
|
update!(**args)
|
@@ -19313,34 +20986,299 @@ module Google
|
|
19313
20986
|
|
19314
20987
|
# Update properties of this object
|
19315
20988
|
def update!(**args)
|
19316
|
-
@
|
19317
|
-
@
|
19318
|
-
@
|
19319
|
-
@
|
19320
|
-
@success = args[:success] if args.key?(:success)
|
19321
|
-
@thought = args[:thought] if args.key?(:thought)
|
20989
|
+
@context = args[:context] if args.key?(:context)
|
20990
|
+
@instruction = args[:instruction] if args.key?(:instruction)
|
20991
|
+
@prediction = args[:prediction] if args.key?(:prediction)
|
20992
|
+
@reference = args[:reference] if args.key?(:reference)
|
19322
20993
|
end
|
19323
20994
|
end
|
19324
20995
|
|
19325
|
-
#
|
19326
|
-
class
|
20996
|
+
# Spec for question answering quality result.
|
20997
|
+
class GoogleCloudAiplatformV1beta1QuestionAnsweringQualityResult
|
19327
20998
|
include Google::Apis::Core::Hashable
|
19328
20999
|
|
19329
|
-
#
|
19330
|
-
#
|
19331
|
-
#
|
19332
|
-
|
19333
|
-
attr_accessor :checkpoint
|
21000
|
+
# Output only. Confidence for question answering quality score.
|
21001
|
+
# Corresponds to the JSON property `confidence`
|
21002
|
+
# @return [Float]
|
21003
|
+
attr_accessor :confidence
|
19334
21004
|
|
19335
|
-
#
|
19336
|
-
# Corresponds to the JSON property `
|
19337
|
-
# @return [
|
19338
|
-
attr_accessor :
|
21005
|
+
# Output only. Explanation for question answering quality score.
|
21006
|
+
# Corresponds to the JSON property `explanation`
|
21007
|
+
# @return [String]
|
21008
|
+
attr_accessor :explanation
|
19339
21009
|
|
19340
|
-
#
|
19341
|
-
# Corresponds to the JSON property `
|
19342
|
-
# @return [
|
19343
|
-
attr_accessor :
|
21010
|
+
# Output only. Question Answering Quality score.
|
21011
|
+
# Corresponds to the JSON property `score`
|
21012
|
+
# @return [Float]
|
21013
|
+
attr_accessor :score
|
21014
|
+
|
21015
|
+
def initialize(**args)
|
21016
|
+
update!(**args)
|
21017
|
+
end
|
21018
|
+
|
21019
|
+
# Update properties of this object
|
21020
|
+
def update!(**args)
|
21021
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
21022
|
+
@explanation = args[:explanation] if args.key?(:explanation)
|
21023
|
+
@score = args[:score] if args.key?(:score)
|
21024
|
+
end
|
21025
|
+
end
|
21026
|
+
|
21027
|
+
# Spec for question answering quality score metric.
|
21028
|
+
class GoogleCloudAiplatformV1beta1QuestionAnsweringQualitySpec
|
21029
|
+
include Google::Apis::Core::Hashable
|
21030
|
+
|
21031
|
+
# Optional. Whether to use instance.reference to compute question answering
|
21032
|
+
# quality.
|
21033
|
+
# Corresponds to the JSON property `useReference`
|
21034
|
+
# @return [Boolean]
|
21035
|
+
attr_accessor :use_reference
|
21036
|
+
alias_method :use_reference?, :use_reference
|
21037
|
+
|
21038
|
+
# Optional. Which version to use for evaluation.
|
21039
|
+
# Corresponds to the JSON property `version`
|
21040
|
+
# @return [Fixnum]
|
21041
|
+
attr_accessor :version
|
21042
|
+
|
21043
|
+
def initialize(**args)
|
21044
|
+
update!(**args)
|
21045
|
+
end
|
21046
|
+
|
21047
|
+
# Update properties of this object
|
21048
|
+
def update!(**args)
|
21049
|
+
@use_reference = args[:use_reference] if args.key?(:use_reference)
|
21050
|
+
@version = args[:version] if args.key?(:version)
|
21051
|
+
end
|
21052
|
+
end
|
21053
|
+
|
21054
|
+
# Input for question answering relevance metric.
|
21055
|
+
class GoogleCloudAiplatformV1beta1QuestionAnsweringRelevanceInput
|
21056
|
+
include Google::Apis::Core::Hashable
|
21057
|
+
|
21058
|
+
# Spec for question answering relevance instance.
|
21059
|
+
# Corresponds to the JSON property `instance`
|
21060
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QuestionAnsweringRelevanceInstance]
|
21061
|
+
attr_accessor :instance
|
21062
|
+
|
21063
|
+
# Spec for question answering relevance metric.
|
21064
|
+
# Corresponds to the JSON property `metricSpec`
|
21065
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1QuestionAnsweringRelevanceSpec]
|
21066
|
+
attr_accessor :metric_spec
|
21067
|
+
|
21068
|
+
def initialize(**args)
|
21069
|
+
update!(**args)
|
21070
|
+
end
|
21071
|
+
|
21072
|
+
# Update properties of this object
|
21073
|
+
def update!(**args)
|
21074
|
+
@instance = args[:instance] if args.key?(:instance)
|
21075
|
+
@metric_spec = args[:metric_spec] if args.key?(:metric_spec)
|
21076
|
+
end
|
21077
|
+
end
|
21078
|
+
|
21079
|
+
# Spec for question answering relevance instance.
|
21080
|
+
class GoogleCloudAiplatformV1beta1QuestionAnsweringRelevanceInstance
|
21081
|
+
include Google::Apis::Core::Hashable
|
21082
|
+
|
21083
|
+
# Optional. Text provided as context to answer the question.
|
21084
|
+
# Corresponds to the JSON property `context`
|
21085
|
+
# @return [String]
|
21086
|
+
attr_accessor :context
|
21087
|
+
|
21088
|
+
# Required. The question asked and other instruction in the inference prompt.
|
21089
|
+
# Corresponds to the JSON property `instruction`
|
21090
|
+
# @return [String]
|
21091
|
+
attr_accessor :instruction
|
21092
|
+
|
21093
|
+
# Required. Output of the evaluated model.
|
21094
|
+
# Corresponds to the JSON property `prediction`
|
21095
|
+
# @return [String]
|
21096
|
+
attr_accessor :prediction
|
21097
|
+
|
21098
|
+
# Optional. Ground truth used to compare against the prediction.
|
21099
|
+
# Corresponds to the JSON property `reference`
|
21100
|
+
# @return [String]
|
21101
|
+
attr_accessor :reference
|
21102
|
+
|
21103
|
+
def initialize(**args)
|
21104
|
+
update!(**args)
|
21105
|
+
end
|
21106
|
+
|
21107
|
+
# Update properties of this object
|
21108
|
+
def update!(**args)
|
21109
|
+
@context = args[:context] if args.key?(:context)
|
21110
|
+
@instruction = args[:instruction] if args.key?(:instruction)
|
21111
|
+
@prediction = args[:prediction] if args.key?(:prediction)
|
21112
|
+
@reference = args[:reference] if args.key?(:reference)
|
21113
|
+
end
|
21114
|
+
end
|
21115
|
+
|
21116
|
+
# Spec for question answering relevance result.
|
21117
|
+
class GoogleCloudAiplatformV1beta1QuestionAnsweringRelevanceResult
|
21118
|
+
include Google::Apis::Core::Hashable
|
21119
|
+
|
21120
|
+
# Output only. Confidence for question answering relevance score.
|
21121
|
+
# Corresponds to the JSON property `confidence`
|
21122
|
+
# @return [Float]
|
21123
|
+
attr_accessor :confidence
|
21124
|
+
|
21125
|
+
# Output only. Explanation for question answering relevance score.
|
21126
|
+
# Corresponds to the JSON property `explanation`
|
21127
|
+
# @return [String]
|
21128
|
+
attr_accessor :explanation
|
21129
|
+
|
21130
|
+
# Output only. Question Answering Relevance score.
|
21131
|
+
# Corresponds to the JSON property `score`
|
21132
|
+
# @return [Float]
|
21133
|
+
attr_accessor :score
|
21134
|
+
|
21135
|
+
def initialize(**args)
|
21136
|
+
update!(**args)
|
21137
|
+
end
|
21138
|
+
|
21139
|
+
# Update properties of this object
|
21140
|
+
def update!(**args)
|
21141
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
21142
|
+
@explanation = args[:explanation] if args.key?(:explanation)
|
21143
|
+
@score = args[:score] if args.key?(:score)
|
21144
|
+
end
|
21145
|
+
end
|
21146
|
+
|
21147
|
+
# Spec for question answering relevance metric.
|
21148
|
+
class GoogleCloudAiplatformV1beta1QuestionAnsweringRelevanceSpec
|
21149
|
+
include Google::Apis::Core::Hashable
|
21150
|
+
|
21151
|
+
# Optional. Whether to use instance.reference to compute question answering
|
21152
|
+
# relevance.
|
21153
|
+
# Corresponds to the JSON property `useReference`
|
21154
|
+
# @return [Boolean]
|
21155
|
+
attr_accessor :use_reference
|
21156
|
+
alias_method :use_reference?, :use_reference
|
21157
|
+
|
21158
|
+
# Optional. Which version to use for evaluation.
|
21159
|
+
# Corresponds to the JSON property `version`
|
21160
|
+
# @return [Fixnum]
|
21161
|
+
attr_accessor :version
|
21162
|
+
|
21163
|
+
def initialize(**args)
|
21164
|
+
update!(**args)
|
21165
|
+
end
|
21166
|
+
|
21167
|
+
# Update properties of this object
|
21168
|
+
def update!(**args)
|
21169
|
+
@use_reference = args[:use_reference] if args.key?(:use_reference)
|
21170
|
+
@version = args[:version] if args.key?(:version)
|
21171
|
+
end
|
21172
|
+
end
|
21173
|
+
|
21174
|
+
# Input for rag context recall metric.
|
21175
|
+
class GoogleCloudAiplatformV1beta1RagContextRecallInput
|
21176
|
+
include Google::Apis::Core::Hashable
|
21177
|
+
|
21178
|
+
# Spec for rag context recall instance.
|
21179
|
+
# Corresponds to the JSON property `instance`
|
21180
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagContextRecallInstance]
|
21181
|
+
attr_accessor :instance
|
21182
|
+
|
21183
|
+
# Spec for rag context recall metric.
|
21184
|
+
# Corresponds to the JSON property `metricSpec`
|
21185
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagContextRecallSpec]
|
21186
|
+
attr_accessor :metric_spec
|
21187
|
+
|
21188
|
+
def initialize(**args)
|
21189
|
+
update!(**args)
|
21190
|
+
end
|
21191
|
+
|
21192
|
+
# Update properties of this object
|
21193
|
+
def update!(**args)
|
21194
|
+
@instance = args[:instance] if args.key?(:instance)
|
21195
|
+
@metric_spec = args[:metric_spec] if args.key?(:metric_spec)
|
21196
|
+
end
|
21197
|
+
end
|
21198
|
+
|
21199
|
+
# Spec for rag context recall instance.
|
21200
|
+
class GoogleCloudAiplatformV1beta1RagContextRecallInstance
|
21201
|
+
include Google::Apis::Core::Hashable
|
21202
|
+
|
21203
|
+
# Required. Retrieved facts from RAG pipeline as context to be evaluated.
|
21204
|
+
# Corresponds to the JSON property `context`
|
21205
|
+
# @return [String]
|
21206
|
+
attr_accessor :context
|
21207
|
+
|
21208
|
+
# Required. Ground truth used to compare against the context.
|
21209
|
+
# Corresponds to the JSON property `reference`
|
21210
|
+
# @return [String]
|
21211
|
+
attr_accessor :reference
|
21212
|
+
|
21213
|
+
def initialize(**args)
|
21214
|
+
update!(**args)
|
21215
|
+
end
|
21216
|
+
|
21217
|
+
# Update properties of this object
|
21218
|
+
def update!(**args)
|
21219
|
+
@context = args[:context] if args.key?(:context)
|
21220
|
+
@reference = args[:reference] if args.key?(:reference)
|
21221
|
+
end
|
21222
|
+
end
|
21223
|
+
|
21224
|
+
# Spec for rag context recall result.
|
21225
|
+
class GoogleCloudAiplatformV1beta1RagContextRecallResult
|
21226
|
+
include Google::Apis::Core::Hashable
|
21227
|
+
|
21228
|
+
# Output only. Confidence for rag context recall score.
|
21229
|
+
# Corresponds to the JSON property `confidence`
|
21230
|
+
# @return [Float]
|
21231
|
+
attr_accessor :confidence
|
21232
|
+
|
21233
|
+
# Output only. Explanation for rag context recall score.
|
21234
|
+
# Corresponds to the JSON property `explanation`
|
21235
|
+
# @return [String]
|
21236
|
+
attr_accessor :explanation
|
21237
|
+
|
21238
|
+
# Output only. RagContextRecall score.
|
21239
|
+
# Corresponds to the JSON property `score`
|
21240
|
+
# @return [Float]
|
21241
|
+
attr_accessor :score
|
21242
|
+
|
21243
|
+
def initialize(**args)
|
21244
|
+
update!(**args)
|
21245
|
+
end
|
21246
|
+
|
21247
|
+
# Update properties of this object
|
21248
|
+
def update!(**args)
|
21249
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
21250
|
+
@explanation = args[:explanation] if args.key?(:explanation)
|
21251
|
+
@score = args[:score] if args.key?(:score)
|
21252
|
+
end
|
21253
|
+
end
|
21254
|
+
|
21255
|
+
# Spec for rag context recall metric.
|
21256
|
+
class GoogleCloudAiplatformV1beta1RagContextRecallSpec
|
21257
|
+
include Google::Apis::Core::Hashable
|
21258
|
+
|
21259
|
+
# Optional. Which version to use for evaluation.
|
21260
|
+
# Corresponds to the JSON property `version`
|
21261
|
+
# @return [Fixnum]
|
21262
|
+
attr_accessor :version
|
21263
|
+
|
21264
|
+
def initialize(**args)
|
21265
|
+
update!(**args)
|
21266
|
+
end
|
21267
|
+
|
21268
|
+
# Update properties of this object
|
21269
|
+
def update!(**args)
|
21270
|
+
@version = args[:version] if args.key?(:version)
|
21271
|
+
end
|
21272
|
+
end
|
21273
|
+
|
21274
|
+
# Relevant contexts for one query.
|
21275
|
+
class GoogleCloudAiplatformV1beta1RagContexts
|
21276
|
+
include Google::Apis::Core::Hashable
|
21277
|
+
|
21278
|
+
# All its contexts.
|
21279
|
+
# Corresponds to the JSON property `contexts`
|
21280
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagContextsContext>]
|
21281
|
+
attr_accessor :contexts
|
19344
21282
|
|
19345
21283
|
def initialize(**args)
|
19346
21284
|
update!(**args)
|
@@ -19348,9 +21286,208 @@ module Google
|
|
19348
21286
|
|
19349
21287
|
# Update properties of this object
|
19350
21288
|
def update!(**args)
|
19351
|
-
@
|
19352
|
-
|
19353
|
-
|
21289
|
+
@contexts = args[:contexts] if args.key?(:contexts)
|
21290
|
+
end
|
21291
|
+
end
|
21292
|
+
|
21293
|
+
# A context of the query.
|
21294
|
+
class GoogleCloudAiplatformV1beta1RagContextsContext
|
21295
|
+
include Google::Apis::Core::Hashable
|
21296
|
+
|
21297
|
+
# The distance between the query vector and the context text vector.
|
21298
|
+
# Corresponds to the JSON property `distance`
|
21299
|
+
# @return [Float]
|
21300
|
+
attr_accessor :distance
|
21301
|
+
|
21302
|
+
# For vertex RagStore, if the file is imported from Cloud Storage or Google
|
21303
|
+
# Drive, source_uri will be original file URI in Cloud Storage or Google Drive;
|
21304
|
+
# if file is uploaded, source_uri will be file display name.
|
21305
|
+
# Corresponds to the JSON property `sourceUri`
|
21306
|
+
# @return [String]
|
21307
|
+
attr_accessor :source_uri
|
21308
|
+
|
21309
|
+
# The text chunk.
|
21310
|
+
# Corresponds to the JSON property `text`
|
21311
|
+
# @return [String]
|
21312
|
+
attr_accessor :text
|
21313
|
+
|
21314
|
+
def initialize(**args)
|
21315
|
+
update!(**args)
|
21316
|
+
end
|
21317
|
+
|
21318
|
+
# Update properties of this object
|
21319
|
+
def update!(**args)
|
21320
|
+
@distance = args[:distance] if args.key?(:distance)
|
21321
|
+
@source_uri = args[:source_uri] if args.key?(:source_uri)
|
21322
|
+
@text = args[:text] if args.key?(:text)
|
21323
|
+
end
|
21324
|
+
end
|
21325
|
+
|
21326
|
+
# A RagCorpus is a RagFile container and a project can have multiple RagCorpora.
|
21327
|
+
class GoogleCloudAiplatformV1beta1RagCorpus
|
21328
|
+
include Google::Apis::Core::Hashable
|
21329
|
+
|
21330
|
+
# Output only. Timestamp when this RagCorpus was created.
|
21331
|
+
# Corresponds to the JSON property `createTime`
|
21332
|
+
# @return [String]
|
21333
|
+
attr_accessor :create_time
|
21334
|
+
|
21335
|
+
# Optional. The description of the RagCorpus.
|
21336
|
+
# Corresponds to the JSON property `description`
|
21337
|
+
# @return [String]
|
21338
|
+
attr_accessor :description
|
21339
|
+
|
21340
|
+
# Required. The display name of the RagCorpus. The name can be up to 128
|
21341
|
+
# characters long and can consist of any UTF-8 characters.
|
21342
|
+
# Corresponds to the JSON property `displayName`
|
21343
|
+
# @return [String]
|
21344
|
+
attr_accessor :display_name
|
21345
|
+
|
21346
|
+
# Output only. The resource name of the RagCorpus.
|
21347
|
+
# Corresponds to the JSON property `name`
|
21348
|
+
# @return [String]
|
21349
|
+
attr_accessor :name
|
21350
|
+
|
21351
|
+
# Output only. Timestamp when this RagCorpus was last updated.
|
21352
|
+
# Corresponds to the JSON property `updateTime`
|
21353
|
+
# @return [String]
|
21354
|
+
attr_accessor :update_time
|
21355
|
+
|
21356
|
+
def initialize(**args)
|
21357
|
+
update!(**args)
|
21358
|
+
end
|
21359
|
+
|
21360
|
+
# Update properties of this object
|
21361
|
+
def update!(**args)
|
21362
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
21363
|
+
@description = args[:description] if args.key?(:description)
|
21364
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
21365
|
+
@name = args[:name] if args.key?(:name)
|
21366
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
21367
|
+
end
|
21368
|
+
end
|
21369
|
+
|
21370
|
+
# A RagFile contains user data for chunking, embedding and indexing.
|
21371
|
+
class GoogleCloudAiplatformV1beta1RagFile
|
21372
|
+
include Google::Apis::Core::Hashable
|
21373
|
+
|
21374
|
+
# Output only. Timestamp when this RagFile was created.
|
21375
|
+
# Corresponds to the JSON property `createTime`
|
21376
|
+
# @return [String]
|
21377
|
+
attr_accessor :create_time
|
21378
|
+
|
21379
|
+
# Optional. The description of the RagFile.
|
21380
|
+
# Corresponds to the JSON property `description`
|
21381
|
+
# @return [String]
|
21382
|
+
attr_accessor :description
|
21383
|
+
|
21384
|
+
# The input content is encapsulated and uploaded in the request.
|
21385
|
+
# Corresponds to the JSON property `directUploadSource`
|
21386
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DirectUploadSource]
|
21387
|
+
attr_accessor :direct_upload_source
|
21388
|
+
|
21389
|
+
# Required. The display name of the RagFile. The name can be up to 128
|
21390
|
+
# characters long and can consist of any UTF-8 characters.
|
21391
|
+
# Corresponds to the JSON property `displayName`
|
21392
|
+
# @return [String]
|
21393
|
+
attr_accessor :display_name
|
21394
|
+
|
21395
|
+
# The Google Cloud Storage location for the input content.
|
21396
|
+
# Corresponds to the JSON property `gcsSource`
|
21397
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GcsSource]
|
21398
|
+
attr_accessor :gcs_source
|
21399
|
+
|
21400
|
+
# The Google Drive location for the input content.
|
21401
|
+
# Corresponds to the JSON property `googleDriveSource`
|
21402
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GoogleDriveSource]
|
21403
|
+
attr_accessor :google_drive_source
|
21404
|
+
|
21405
|
+
# Output only. The resource name of the RagFile.
|
21406
|
+
# Corresponds to the JSON property `name`
|
21407
|
+
# @return [String]
|
21408
|
+
attr_accessor :name
|
21409
|
+
|
21410
|
+
# Output only. The type of the RagFile.
|
21411
|
+
# Corresponds to the JSON property `ragFileType`
|
21412
|
+
# @return [String]
|
21413
|
+
attr_accessor :rag_file_type
|
21414
|
+
|
21415
|
+
# Output only. The size of the RagFile in bytes.
|
21416
|
+
# Corresponds to the JSON property `sizeBytes`
|
21417
|
+
# @return [Fixnum]
|
21418
|
+
attr_accessor :size_bytes
|
21419
|
+
|
21420
|
+
# Output only. Timestamp when this RagFile was last updated.
|
21421
|
+
# Corresponds to the JSON property `updateTime`
|
21422
|
+
# @return [String]
|
21423
|
+
attr_accessor :update_time
|
21424
|
+
|
21425
|
+
def initialize(**args)
|
21426
|
+
update!(**args)
|
21427
|
+
end
|
21428
|
+
|
21429
|
+
# Update properties of this object
|
21430
|
+
def update!(**args)
|
21431
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
21432
|
+
@description = args[:description] if args.key?(:description)
|
21433
|
+
@direct_upload_source = args[:direct_upload_source] if args.key?(:direct_upload_source)
|
21434
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
21435
|
+
@gcs_source = args[:gcs_source] if args.key?(:gcs_source)
|
21436
|
+
@google_drive_source = args[:google_drive_source] if args.key?(:google_drive_source)
|
21437
|
+
@name = args[:name] if args.key?(:name)
|
21438
|
+
@rag_file_type = args[:rag_file_type] if args.key?(:rag_file_type)
|
21439
|
+
@size_bytes = args[:size_bytes] if args.key?(:size_bytes)
|
21440
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
21441
|
+
end
|
21442
|
+
end
|
21443
|
+
|
21444
|
+
# Specifies the size and overlap of chunks for RagFiles.
|
21445
|
+
class GoogleCloudAiplatformV1beta1RagFileChunkingConfig
|
21446
|
+
include Google::Apis::Core::Hashable
|
21447
|
+
|
21448
|
+
# The overlap between chunks.
|
21449
|
+
# Corresponds to the JSON property `chunkOverlap`
|
21450
|
+
# @return [Fixnum]
|
21451
|
+
attr_accessor :chunk_overlap
|
21452
|
+
|
21453
|
+
# The size of the chunks.
|
21454
|
+
# Corresponds to the JSON property `chunkSize`
|
21455
|
+
# @return [Fixnum]
|
21456
|
+
attr_accessor :chunk_size
|
21457
|
+
|
21458
|
+
def initialize(**args)
|
21459
|
+
update!(**args)
|
21460
|
+
end
|
21461
|
+
|
21462
|
+
# Update properties of this object
|
21463
|
+
def update!(**args)
|
21464
|
+
@chunk_overlap = args[:chunk_overlap] if args.key?(:chunk_overlap)
|
21465
|
+
@chunk_size = args[:chunk_size] if args.key?(:chunk_size)
|
21466
|
+
end
|
21467
|
+
end
|
21468
|
+
|
21469
|
+
# A query to retrieve relevant contexts.
|
21470
|
+
class GoogleCloudAiplatformV1beta1RagQuery
|
21471
|
+
include Google::Apis::Core::Hashable
|
21472
|
+
|
21473
|
+
# Optional. The number of contexts to retrieve.
|
21474
|
+
# Corresponds to the JSON property `similarityTopK`
|
21475
|
+
# @return [Fixnum]
|
21476
|
+
attr_accessor :similarity_top_k
|
21477
|
+
|
21478
|
+
# Optional. The query in text format to get relevant contexts.
|
21479
|
+
# Corresponds to the JSON property `text`
|
21480
|
+
# @return [String]
|
21481
|
+
attr_accessor :text
|
21482
|
+
|
21483
|
+
def initialize(**args)
|
21484
|
+
update!(**args)
|
21485
|
+
end
|
21486
|
+
|
21487
|
+
# Update properties of this object
|
21488
|
+
def update!(**args)
|
21489
|
+
@similarity_top_k = args[:similarity_top_k] if args.key?(:similarity_top_k)
|
21490
|
+
@text = args[:text] if args.key?(:text)
|
19354
21491
|
end
|
19355
21492
|
end
|
19356
21493
|
|
@@ -19776,6 +21913,126 @@ module Google
|
|
19776
21913
|
end
|
19777
21914
|
end
|
19778
21915
|
|
21916
|
+
# ReasoningEngine provides a customizable runtime for models to determine which
|
21917
|
+
# actions to take and in which order.
|
21918
|
+
class GoogleCloudAiplatformV1beta1ReasoningEngine
|
21919
|
+
include Google::Apis::Core::Hashable
|
21920
|
+
|
21921
|
+
# Output only. Timestamp when this ReasoningEngine was created.
|
21922
|
+
# Corresponds to the JSON property `createTime`
|
21923
|
+
# @return [String]
|
21924
|
+
attr_accessor :create_time
|
21925
|
+
|
21926
|
+
# Optional. The description of the ReasoningEngine.
|
21927
|
+
# Corresponds to the JSON property `description`
|
21928
|
+
# @return [String]
|
21929
|
+
attr_accessor :description
|
21930
|
+
|
21931
|
+
# Required. The display name of the ReasoningEngine.
|
21932
|
+
# Corresponds to the JSON property `displayName`
|
21933
|
+
# @return [String]
|
21934
|
+
attr_accessor :display_name
|
21935
|
+
|
21936
|
+
# Optional. Used to perform consistent read-modify-write updates. If not set, a
|
21937
|
+
# blind "overwrite" update happens.
|
21938
|
+
# Corresponds to the JSON property `etag`
|
21939
|
+
# @return [String]
|
21940
|
+
attr_accessor :etag
|
21941
|
+
|
21942
|
+
# Identifier. The resource name of the ReasoningEngine.
|
21943
|
+
# Corresponds to the JSON property `name`
|
21944
|
+
# @return [String]
|
21945
|
+
attr_accessor :name
|
21946
|
+
|
21947
|
+
# ReasoningEngine configurations
|
21948
|
+
# Corresponds to the JSON property `spec`
|
21949
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngineSpec]
|
21950
|
+
attr_accessor :spec
|
21951
|
+
|
21952
|
+
# Output only. Timestamp when this ReasoningEngine was most recently updated.
|
21953
|
+
# Corresponds to the JSON property `updateTime`
|
21954
|
+
# @return [String]
|
21955
|
+
attr_accessor :update_time
|
21956
|
+
|
21957
|
+
def initialize(**args)
|
21958
|
+
update!(**args)
|
21959
|
+
end
|
21960
|
+
|
21961
|
+
# Update properties of this object
|
21962
|
+
def update!(**args)
|
21963
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
21964
|
+
@description = args[:description] if args.key?(:description)
|
21965
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
21966
|
+
@etag = args[:etag] if args.key?(:etag)
|
21967
|
+
@name = args[:name] if args.key?(:name)
|
21968
|
+
@spec = args[:spec] if args.key?(:spec)
|
21969
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
21970
|
+
end
|
21971
|
+
end
|
21972
|
+
|
21973
|
+
# ReasoningEngine configurations
|
21974
|
+
class GoogleCloudAiplatformV1beta1ReasoningEngineSpec
|
21975
|
+
include Google::Apis::Core::Hashable
|
21976
|
+
|
21977
|
+
# Optional. Declarations for object class methods.
|
21978
|
+
# Corresponds to the JSON property `classMethods`
|
21979
|
+
# @return [Array<Hash<String,Object>>]
|
21980
|
+
attr_accessor :class_methods
|
21981
|
+
|
21982
|
+
# User provided package spec like pickled object and package requirements.
|
21983
|
+
# Corresponds to the JSON property `packageSpec`
|
21984
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReasoningEngineSpecPackageSpec]
|
21985
|
+
attr_accessor :package_spec
|
21986
|
+
|
21987
|
+
def initialize(**args)
|
21988
|
+
update!(**args)
|
21989
|
+
end
|
21990
|
+
|
21991
|
+
# Update properties of this object
|
21992
|
+
def update!(**args)
|
21993
|
+
@class_methods = args[:class_methods] if args.key?(:class_methods)
|
21994
|
+
@package_spec = args[:package_spec] if args.key?(:package_spec)
|
21995
|
+
end
|
21996
|
+
end
|
21997
|
+
|
21998
|
+
# User provided package spec like pickled object and package requirements.
|
21999
|
+
class GoogleCloudAiplatformV1beta1ReasoningEngineSpecPackageSpec
|
22000
|
+
include Google::Apis::Core::Hashable
|
22001
|
+
|
22002
|
+
# Optional. The Cloud Storage URI of the dependency files in tar.gz format.
|
22003
|
+
# Corresponds to the JSON property `dependencyFilesGcsUri`
|
22004
|
+
# @return [String]
|
22005
|
+
attr_accessor :dependency_files_gcs_uri
|
22006
|
+
|
22007
|
+
# Optional. The Cloud Storage URI of the pickled python object.
|
22008
|
+
# Corresponds to the JSON property `pickleObjectGcsUri`
|
22009
|
+
# @return [String]
|
22010
|
+
attr_accessor :pickle_object_gcs_uri
|
22011
|
+
|
22012
|
+
# Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11. If not
|
22013
|
+
# specified, default value is 3.10.
|
22014
|
+
# Corresponds to the JSON property `pythonVersion`
|
22015
|
+
# @return [String]
|
22016
|
+
attr_accessor :python_version
|
22017
|
+
|
22018
|
+
# Optional. The Cloud Storage URI of the `requirements.txt` file
|
22019
|
+
# Corresponds to the JSON property `requirementsGcsUri`
|
22020
|
+
# @return [String]
|
22021
|
+
attr_accessor :requirements_gcs_uri
|
22022
|
+
|
22023
|
+
def initialize(**args)
|
22024
|
+
update!(**args)
|
22025
|
+
end
|
22026
|
+
|
22027
|
+
# Update properties of this object
|
22028
|
+
def update!(**args)
|
22029
|
+
@dependency_files_gcs_uri = args[:dependency_files_gcs_uri] if args.key?(:dependency_files_gcs_uri)
|
22030
|
+
@pickle_object_gcs_uri = args[:pickle_object_gcs_uri] if args.key?(:pickle_object_gcs_uri)
|
22031
|
+
@python_version = args[:python_version] if args.key?(:python_version)
|
22032
|
+
@requirements_gcs_uri = args[:requirements_gcs_uri] if args.key?(:requirements_gcs_uri)
|
22033
|
+
end
|
22034
|
+
end
|
22035
|
+
|
19779
22036
|
# Details of operations that perform reboot PersistentResource.
|
19780
22037
|
class GoogleCloudAiplatformV1beta1RebootPersistentResourceOperationMetadata
|
19781
22038
|
include Google::Apis::Core::Hashable
|
@@ -20152,6 +22409,106 @@ module Google
|
|
20152
22409
|
end
|
20153
22410
|
end
|
20154
22411
|
|
22412
|
+
# Input for response recall metric.
|
22413
|
+
class GoogleCloudAiplatformV1beta1ResponseRecallInput
|
22414
|
+
include Google::Apis::Core::Hashable
|
22415
|
+
|
22416
|
+
# Spec for response recall instance.
|
22417
|
+
# Corresponds to the JSON property `instance`
|
22418
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ResponseRecallInstance]
|
22419
|
+
attr_accessor :instance
|
22420
|
+
|
22421
|
+
# Spec for response recall metric.
|
22422
|
+
# Corresponds to the JSON property `metricSpec`
|
22423
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ResponseRecallSpec]
|
22424
|
+
attr_accessor :metric_spec
|
22425
|
+
|
22426
|
+
def initialize(**args)
|
22427
|
+
update!(**args)
|
22428
|
+
end
|
22429
|
+
|
22430
|
+
# Update properties of this object
|
22431
|
+
def update!(**args)
|
22432
|
+
@instance = args[:instance] if args.key?(:instance)
|
22433
|
+
@metric_spec = args[:metric_spec] if args.key?(:metric_spec)
|
22434
|
+
end
|
22435
|
+
end
|
22436
|
+
|
22437
|
+
# Spec for response recall instance.
|
22438
|
+
class GoogleCloudAiplatformV1beta1ResponseRecallInstance
|
22439
|
+
include Google::Apis::Core::Hashable
|
22440
|
+
|
22441
|
+
# Required. Output of the evaluated model.
|
22442
|
+
# Corresponds to the JSON property `prediction`
|
22443
|
+
# @return [String]
|
22444
|
+
attr_accessor :prediction
|
22445
|
+
|
22446
|
+
# Required. Ground truth used to compare against the prediction.
|
22447
|
+
# Corresponds to the JSON property `reference`
|
22448
|
+
# @return [String]
|
22449
|
+
attr_accessor :reference
|
22450
|
+
|
22451
|
+
def initialize(**args)
|
22452
|
+
update!(**args)
|
22453
|
+
end
|
22454
|
+
|
22455
|
+
# Update properties of this object
|
22456
|
+
def update!(**args)
|
22457
|
+
@prediction = args[:prediction] if args.key?(:prediction)
|
22458
|
+
@reference = args[:reference] if args.key?(:reference)
|
22459
|
+
end
|
22460
|
+
end
|
22461
|
+
|
22462
|
+
# Spec for response recall result.
|
22463
|
+
class GoogleCloudAiplatformV1beta1ResponseRecallResult
|
22464
|
+
include Google::Apis::Core::Hashable
|
22465
|
+
|
22466
|
+
# Output only. Confidence for fulfillment score.
|
22467
|
+
# Corresponds to the JSON property `confidence`
|
22468
|
+
# @return [Float]
|
22469
|
+
attr_accessor :confidence
|
22470
|
+
|
22471
|
+
# Output only. Explanation for response recall score.
|
22472
|
+
# Corresponds to the JSON property `explanation`
|
22473
|
+
# @return [String]
|
22474
|
+
attr_accessor :explanation
|
22475
|
+
|
22476
|
+
# Output only. ResponseRecall score.
|
22477
|
+
# Corresponds to the JSON property `score`
|
22478
|
+
# @return [Float]
|
22479
|
+
attr_accessor :score
|
22480
|
+
|
22481
|
+
def initialize(**args)
|
22482
|
+
update!(**args)
|
22483
|
+
end
|
22484
|
+
|
22485
|
+
# Update properties of this object
|
22486
|
+
def update!(**args)
|
22487
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
22488
|
+
@explanation = args[:explanation] if args.key?(:explanation)
|
22489
|
+
@score = args[:score] if args.key?(:score)
|
22490
|
+
end
|
22491
|
+
end
|
22492
|
+
|
22493
|
+
# Spec for response recall metric.
|
22494
|
+
class GoogleCloudAiplatformV1beta1ResponseRecallSpec
|
22495
|
+
include Google::Apis::Core::Hashable
|
22496
|
+
|
22497
|
+
# Optional. Which version to use for evaluation.
|
22498
|
+
# Corresponds to the JSON property `version`
|
22499
|
+
# @return [Fixnum]
|
22500
|
+
attr_accessor :version
|
22501
|
+
|
22502
|
+
def initialize(**args)
|
22503
|
+
update!(**args)
|
22504
|
+
end
|
22505
|
+
|
22506
|
+
# Update properties of this object
|
22507
|
+
def update!(**args)
|
22508
|
+
@version = args[:version] if args.key?(:version)
|
22509
|
+
end
|
22510
|
+
end
|
22511
|
+
|
20155
22512
|
# Runtime operation information for DatasetService.RestoreDatasetVersion.
|
20156
22513
|
class GoogleCloudAiplatformV1beta1RestoreDatasetVersionOperationMetadata
|
20157
22514
|
include Google::Apis::Core::Hashable
|
@@ -20225,6 +22582,11 @@ module Google
|
|
20225
22582
|
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1VertexAiSearch]
|
20226
22583
|
attr_accessor :vertex_ai_search
|
20227
22584
|
|
22585
|
+
# Retrieve from Vertex RAG Store for grounding.
|
22586
|
+
# Corresponds to the JSON property `vertexRagStore`
|
22587
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1VertexRagStore]
|
22588
|
+
attr_accessor :vertex_rag_store
|
22589
|
+
|
20228
22590
|
def initialize(**args)
|
20229
22591
|
update!(**args)
|
20230
22592
|
end
|
@@ -20233,6 +22595,240 @@ module Google
|
|
20233
22595
|
def update!(**args)
|
20234
22596
|
@disable_attribution = args[:disable_attribution] if args.key?(:disable_attribution)
|
20235
22597
|
@vertex_ai_search = args[:vertex_ai_search] if args.key?(:vertex_ai_search)
|
22598
|
+
@vertex_rag_store = args[:vertex_rag_store] if args.key?(:vertex_rag_store)
|
22599
|
+
end
|
22600
|
+
end
|
22601
|
+
|
22602
|
+
# Request message for VertexRagService.RetrieveContexts.
|
22603
|
+
class GoogleCloudAiplatformV1beta1RetrieveContextsRequest
|
22604
|
+
include Google::Apis::Core::Hashable
|
22605
|
+
|
22606
|
+
# A query to retrieve relevant contexts.
|
22607
|
+
# Corresponds to the JSON property `query`
|
22608
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagQuery]
|
22609
|
+
attr_accessor :query
|
22610
|
+
|
22611
|
+
# The data source for Vertex RagStore.
|
22612
|
+
# Corresponds to the JSON property `vertexRagStore`
|
22613
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RetrieveContextsRequestVertexRagStore]
|
22614
|
+
attr_accessor :vertex_rag_store
|
22615
|
+
|
22616
|
+
def initialize(**args)
|
22617
|
+
update!(**args)
|
22618
|
+
end
|
22619
|
+
|
22620
|
+
# Update properties of this object
|
22621
|
+
def update!(**args)
|
22622
|
+
@query = args[:query] if args.key?(:query)
|
22623
|
+
@vertex_rag_store = args[:vertex_rag_store] if args.key?(:vertex_rag_store)
|
22624
|
+
end
|
22625
|
+
end
|
22626
|
+
|
22627
|
+
# The data source for Vertex RagStore.
|
22628
|
+
class GoogleCloudAiplatformV1beta1RetrieveContextsRequestVertexRagStore
|
22629
|
+
include Google::Apis::Core::Hashable
|
22630
|
+
|
22631
|
+
# Required. RagCorpora resource name. Format: `projects/`project`/locations/`
|
22632
|
+
# location`/ragCorpora/`rag_corpus`` Currently only one corpus is allowed. In
|
22633
|
+
# the future we may open up multiple corpora support. However, they should be
|
22634
|
+
# from the same project and location.
|
22635
|
+
# Corresponds to the JSON property `ragCorpora`
|
22636
|
+
# @return [Array<String>]
|
22637
|
+
attr_accessor :rag_corpora
|
22638
|
+
|
22639
|
+
def initialize(**args)
|
22640
|
+
update!(**args)
|
22641
|
+
end
|
22642
|
+
|
22643
|
+
# Update properties of this object
|
22644
|
+
def update!(**args)
|
22645
|
+
@rag_corpora = args[:rag_corpora] if args.key?(:rag_corpora)
|
22646
|
+
end
|
22647
|
+
end
|
22648
|
+
|
22649
|
+
# Response message for VertexRagService.RetrieveContexts.
|
22650
|
+
class GoogleCloudAiplatformV1beta1RetrieveContextsResponse
|
22651
|
+
include Google::Apis::Core::Hashable
|
22652
|
+
|
22653
|
+
# Relevant contexts for one query.
|
22654
|
+
# Corresponds to the JSON property `contexts`
|
22655
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagContexts]
|
22656
|
+
attr_accessor :contexts
|
22657
|
+
|
22658
|
+
def initialize(**args)
|
22659
|
+
update!(**args)
|
22660
|
+
end
|
22661
|
+
|
22662
|
+
# Update properties of this object
|
22663
|
+
def update!(**args)
|
22664
|
+
@contexts = args[:contexts] if args.key?(:contexts)
|
22665
|
+
end
|
22666
|
+
end
|
22667
|
+
|
22668
|
+
# Input for rouge metric.
|
22669
|
+
class GoogleCloudAiplatformV1beta1RougeInput
|
22670
|
+
include Google::Apis::Core::Hashable
|
22671
|
+
|
22672
|
+
# Required. Repeated rouge instances.
|
22673
|
+
# Corresponds to the JSON property `instances`
|
22674
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RougeInstance>]
|
22675
|
+
attr_accessor :instances
|
22676
|
+
|
22677
|
+
# Spec for rouge score metric - calculates the recall of n-grams in prediction
|
22678
|
+
# as compared to reference - returns a score ranging between 0 and 1.
|
22679
|
+
# Corresponds to the JSON property `metricSpec`
|
22680
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RougeSpec]
|
22681
|
+
attr_accessor :metric_spec
|
22682
|
+
|
22683
|
+
def initialize(**args)
|
22684
|
+
update!(**args)
|
22685
|
+
end
|
22686
|
+
|
22687
|
+
# Update properties of this object
|
22688
|
+
def update!(**args)
|
22689
|
+
@instances = args[:instances] if args.key?(:instances)
|
22690
|
+
@metric_spec = args[:metric_spec] if args.key?(:metric_spec)
|
22691
|
+
end
|
22692
|
+
end
|
22693
|
+
|
22694
|
+
# Spec for rouge instance.
|
22695
|
+
class GoogleCloudAiplatformV1beta1RougeInstance
|
22696
|
+
include Google::Apis::Core::Hashable
|
22697
|
+
|
22698
|
+
# Required. Output of the evaluated model.
|
22699
|
+
# Corresponds to the JSON property `prediction`
|
22700
|
+
# @return [String]
|
22701
|
+
attr_accessor :prediction
|
22702
|
+
|
22703
|
+
# Required. Ground truth used to compare against the prediction.
|
22704
|
+
# Corresponds to the JSON property `reference`
|
22705
|
+
# @return [String]
|
22706
|
+
attr_accessor :reference
|
22707
|
+
|
22708
|
+
def initialize(**args)
|
22709
|
+
update!(**args)
|
22710
|
+
end
|
22711
|
+
|
22712
|
+
# Update properties of this object
|
22713
|
+
def update!(**args)
|
22714
|
+
@prediction = args[:prediction] if args.key?(:prediction)
|
22715
|
+
@reference = args[:reference] if args.key?(:reference)
|
22716
|
+
end
|
22717
|
+
end
|
22718
|
+
|
22719
|
+
# Rouge metric value for an instance.
|
22720
|
+
class GoogleCloudAiplatformV1beta1RougeMetricValue
|
22721
|
+
include Google::Apis::Core::Hashable
|
22722
|
+
|
22723
|
+
# Output only. Rouge score.
|
22724
|
+
# Corresponds to the JSON property `score`
|
22725
|
+
# @return [Float]
|
22726
|
+
attr_accessor :score
|
22727
|
+
|
22728
|
+
def initialize(**args)
|
22729
|
+
update!(**args)
|
22730
|
+
end
|
22731
|
+
|
22732
|
+
# Update properties of this object
|
22733
|
+
def update!(**args)
|
22734
|
+
@score = args[:score] if args.key?(:score)
|
22735
|
+
end
|
22736
|
+
end
|
22737
|
+
|
22738
|
+
# Results for rouge metric.
|
22739
|
+
class GoogleCloudAiplatformV1beta1RougeResults
|
22740
|
+
include Google::Apis::Core::Hashable
|
22741
|
+
|
22742
|
+
# Output only. Rouge metric values.
|
22743
|
+
# Corresponds to the JSON property `rougeMetricValues`
|
22744
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RougeMetricValue>]
|
22745
|
+
attr_accessor :rouge_metric_values
|
22746
|
+
|
22747
|
+
def initialize(**args)
|
22748
|
+
update!(**args)
|
22749
|
+
end
|
22750
|
+
|
22751
|
+
# Update properties of this object
|
22752
|
+
def update!(**args)
|
22753
|
+
@rouge_metric_values = args[:rouge_metric_values] if args.key?(:rouge_metric_values)
|
22754
|
+
end
|
22755
|
+
end
|
22756
|
+
|
22757
|
+
# Spec for rouge score metric - calculates the recall of n-grams in prediction
|
22758
|
+
# as compared to reference - returns a score ranging between 0 and 1.
|
22759
|
+
class GoogleCloudAiplatformV1beta1RougeSpec
|
22760
|
+
include Google::Apis::Core::Hashable
|
22761
|
+
|
22762
|
+
# Optional. Supported rouge types are rougen[1-9], rougeL and rougeLsum.
|
22763
|
+
# Corresponds to the JSON property `rougeType`
|
22764
|
+
# @return [String]
|
22765
|
+
attr_accessor :rouge_type
|
22766
|
+
|
22767
|
+
# Optional. Whether to split summaries while using rougeLsum.
|
22768
|
+
# Corresponds to the JSON property `splitSummaries`
|
22769
|
+
# @return [Boolean]
|
22770
|
+
attr_accessor :split_summaries
|
22771
|
+
alias_method :split_summaries?, :split_summaries
|
22772
|
+
|
22773
|
+
# Optional. Whether to use stemmer to compute rouge score.
|
22774
|
+
# Corresponds to the JSON property `useStemmer`
|
22775
|
+
# @return [Boolean]
|
22776
|
+
attr_accessor :use_stemmer
|
22777
|
+
alias_method :use_stemmer?, :use_stemmer
|
22778
|
+
|
22779
|
+
def initialize(**args)
|
22780
|
+
update!(**args)
|
22781
|
+
end
|
22782
|
+
|
22783
|
+
# Update properties of this object
|
22784
|
+
def update!(**args)
|
22785
|
+
@rouge_type = args[:rouge_type] if args.key?(:rouge_type)
|
22786
|
+
@split_summaries = args[:split_summaries] if args.key?(:split_summaries)
|
22787
|
+
@use_stemmer = args[:use_stemmer] if args.key?(:use_stemmer)
|
22788
|
+
end
|
22789
|
+
end
|
22790
|
+
|
22791
|
+
# Input for safety metric.
|
22792
|
+
class GoogleCloudAiplatformV1beta1SafetyInput
|
22793
|
+
include Google::Apis::Core::Hashable
|
22794
|
+
|
22795
|
+
# Spec for safety instance.
|
22796
|
+
# Corresponds to the JSON property `instance`
|
22797
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SafetyInstance]
|
22798
|
+
attr_accessor :instance
|
22799
|
+
|
22800
|
+
# Spec for safety metric.
|
22801
|
+
# Corresponds to the JSON property `metricSpec`
|
22802
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SafetySpec]
|
22803
|
+
attr_accessor :metric_spec
|
22804
|
+
|
22805
|
+
def initialize(**args)
|
22806
|
+
update!(**args)
|
22807
|
+
end
|
22808
|
+
|
22809
|
+
# Update properties of this object
|
22810
|
+
def update!(**args)
|
22811
|
+
@instance = args[:instance] if args.key?(:instance)
|
22812
|
+
@metric_spec = args[:metric_spec] if args.key?(:metric_spec)
|
22813
|
+
end
|
22814
|
+
end
|
22815
|
+
|
22816
|
+
# Spec for safety instance.
|
22817
|
+
class GoogleCloudAiplatformV1beta1SafetyInstance
|
22818
|
+
include Google::Apis::Core::Hashable
|
22819
|
+
|
22820
|
+
# Required. Output of the evaluated model.
|
22821
|
+
# Corresponds to the JSON property `prediction`
|
22822
|
+
# @return [String]
|
22823
|
+
attr_accessor :prediction
|
22824
|
+
|
22825
|
+
def initialize(**args)
|
22826
|
+
update!(**args)
|
22827
|
+
end
|
22828
|
+
|
22829
|
+
# Update properties of this object
|
22830
|
+
def update!(**args)
|
22831
|
+
@prediction = args[:prediction] if args.key?(:prediction)
|
20236
22832
|
end
|
20237
22833
|
end
|
20238
22834
|
|
@@ -20287,6 +22883,37 @@ module Google
|
|
20287
22883
|
end
|
20288
22884
|
end
|
20289
22885
|
|
22886
|
+
# Spec for safety result.
|
22887
|
+
class GoogleCloudAiplatformV1beta1SafetyResult
|
22888
|
+
include Google::Apis::Core::Hashable
|
22889
|
+
|
22890
|
+
# Output only. Confidence for safety score.
|
22891
|
+
# Corresponds to the JSON property `confidence`
|
22892
|
+
# @return [Float]
|
22893
|
+
attr_accessor :confidence
|
22894
|
+
|
22895
|
+
# Output only. Explanation for safety score.
|
22896
|
+
# Corresponds to the JSON property `explanation`
|
22897
|
+
# @return [String]
|
22898
|
+
attr_accessor :explanation
|
22899
|
+
|
22900
|
+
# Output only. Safety score.
|
22901
|
+
# Corresponds to the JSON property `score`
|
22902
|
+
# @return [Float]
|
22903
|
+
attr_accessor :score
|
22904
|
+
|
22905
|
+
def initialize(**args)
|
22906
|
+
update!(**args)
|
22907
|
+
end
|
22908
|
+
|
22909
|
+
# Update properties of this object
|
22910
|
+
def update!(**args)
|
22911
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
22912
|
+
@explanation = args[:explanation] if args.key?(:explanation)
|
22913
|
+
@score = args[:score] if args.key?(:score)
|
22914
|
+
end
|
22915
|
+
end
|
22916
|
+
|
20290
22917
|
# Safety settings.
|
20291
22918
|
class GoogleCloudAiplatformV1beta1SafetySetting
|
20292
22919
|
include Google::Apis::Core::Hashable
|
@@ -20319,6 +22946,25 @@ module Google
|
|
20319
22946
|
end
|
20320
22947
|
end
|
20321
22948
|
|
22949
|
+
# Spec for safety metric.
|
22950
|
+
class GoogleCloudAiplatformV1beta1SafetySpec
|
22951
|
+
include Google::Apis::Core::Hashable
|
22952
|
+
|
22953
|
+
# Optional. Which version to use for evaluation.
|
22954
|
+
# Corresponds to the JSON property `version`
|
22955
|
+
# @return [Fixnum]
|
22956
|
+
attr_accessor :version
|
22957
|
+
|
22958
|
+
def initialize(**args)
|
22959
|
+
update!(**args)
|
22960
|
+
end
|
22961
|
+
|
22962
|
+
# Update properties of this object
|
22963
|
+
def update!(**args)
|
22964
|
+
@version = args[:version] if args.key?(:version)
|
22965
|
+
end
|
22966
|
+
end
|
22967
|
+
|
20322
22968
|
# Active learning data sampling config. For every active learning labeling
|
20323
22969
|
# iteration, it will select a batch of data based on the sampling strategy.
|
20324
22970
|
class GoogleCloudAiplatformV1beta1SampleConfig
|
@@ -28418,6 +31064,364 @@ module Google
|
|
28418
31064
|
end
|
28419
31065
|
end
|
28420
31066
|
|
31067
|
+
# Input for summarization helpfulness metric.
|
31068
|
+
class GoogleCloudAiplatformV1beta1SummarizationHelpfulnessInput
|
31069
|
+
include Google::Apis::Core::Hashable
|
31070
|
+
|
31071
|
+
# Spec for summarization helpfulness instance.
|
31072
|
+
# Corresponds to the JSON property `instance`
|
31073
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SummarizationHelpfulnessInstance]
|
31074
|
+
attr_accessor :instance
|
31075
|
+
|
31076
|
+
# Spec for summarization helpfulness score metric.
|
31077
|
+
# Corresponds to the JSON property `metricSpec`
|
31078
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SummarizationHelpfulnessSpec]
|
31079
|
+
attr_accessor :metric_spec
|
31080
|
+
|
31081
|
+
def initialize(**args)
|
31082
|
+
update!(**args)
|
31083
|
+
end
|
31084
|
+
|
31085
|
+
# Update properties of this object
|
31086
|
+
def update!(**args)
|
31087
|
+
@instance = args[:instance] if args.key?(:instance)
|
31088
|
+
@metric_spec = args[:metric_spec] if args.key?(:metric_spec)
|
31089
|
+
end
|
31090
|
+
end
|
31091
|
+
|
31092
|
+
# Spec for summarization helpfulness instance.
|
31093
|
+
class GoogleCloudAiplatformV1beta1SummarizationHelpfulnessInstance
|
31094
|
+
include Google::Apis::Core::Hashable
|
31095
|
+
|
31096
|
+
# Required. Text to be summarized.
|
31097
|
+
# Corresponds to the JSON property `context`
|
31098
|
+
# @return [String]
|
31099
|
+
attr_accessor :context
|
31100
|
+
|
31101
|
+
# Optional. Summarization prompt for LLM.
|
31102
|
+
# Corresponds to the JSON property `instruction`
|
31103
|
+
# @return [String]
|
31104
|
+
attr_accessor :instruction
|
31105
|
+
|
31106
|
+
# Required. Output of the evaluated model.
|
31107
|
+
# Corresponds to the JSON property `prediction`
|
31108
|
+
# @return [String]
|
31109
|
+
attr_accessor :prediction
|
31110
|
+
|
31111
|
+
# Optional. Ground truth used to compare against the prediction.
|
31112
|
+
# Corresponds to the JSON property `reference`
|
31113
|
+
# @return [String]
|
31114
|
+
attr_accessor :reference
|
31115
|
+
|
31116
|
+
def initialize(**args)
|
31117
|
+
update!(**args)
|
31118
|
+
end
|
31119
|
+
|
31120
|
+
# Update properties of this object
|
31121
|
+
def update!(**args)
|
31122
|
+
@context = args[:context] if args.key?(:context)
|
31123
|
+
@instruction = args[:instruction] if args.key?(:instruction)
|
31124
|
+
@prediction = args[:prediction] if args.key?(:prediction)
|
31125
|
+
@reference = args[:reference] if args.key?(:reference)
|
31126
|
+
end
|
31127
|
+
end
|
31128
|
+
|
31129
|
+
# Spec for summarization helpfulness result.
|
31130
|
+
class GoogleCloudAiplatformV1beta1SummarizationHelpfulnessResult
|
31131
|
+
include Google::Apis::Core::Hashable
|
31132
|
+
|
31133
|
+
# Output only. Confidence for summarization helpfulness score.
|
31134
|
+
# Corresponds to the JSON property `confidence`
|
31135
|
+
# @return [Float]
|
31136
|
+
attr_accessor :confidence
|
31137
|
+
|
31138
|
+
# Output only. Explanation for summarization helpfulness score.
|
31139
|
+
# Corresponds to the JSON property `explanation`
|
31140
|
+
# @return [String]
|
31141
|
+
attr_accessor :explanation
|
31142
|
+
|
31143
|
+
# Output only. Summarization Helpfulness score.
|
31144
|
+
# Corresponds to the JSON property `score`
|
31145
|
+
# @return [Float]
|
31146
|
+
attr_accessor :score
|
31147
|
+
|
31148
|
+
def initialize(**args)
|
31149
|
+
update!(**args)
|
31150
|
+
end
|
31151
|
+
|
31152
|
+
# Update properties of this object
|
31153
|
+
def update!(**args)
|
31154
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
31155
|
+
@explanation = args[:explanation] if args.key?(:explanation)
|
31156
|
+
@score = args[:score] if args.key?(:score)
|
31157
|
+
end
|
31158
|
+
end
|
31159
|
+
|
31160
|
+
# Spec for summarization helpfulness score metric.
|
31161
|
+
class GoogleCloudAiplatformV1beta1SummarizationHelpfulnessSpec
|
31162
|
+
include Google::Apis::Core::Hashable
|
31163
|
+
|
31164
|
+
# Optional. Whether to use instance.reference to compute summarization
|
31165
|
+
# helpfulness.
|
31166
|
+
# Corresponds to the JSON property `useReference`
|
31167
|
+
# @return [Boolean]
|
31168
|
+
attr_accessor :use_reference
|
31169
|
+
alias_method :use_reference?, :use_reference
|
31170
|
+
|
31171
|
+
# Optional. Which version to use for evaluation.
|
31172
|
+
# Corresponds to the JSON property `version`
|
31173
|
+
# @return [Fixnum]
|
31174
|
+
attr_accessor :version
|
31175
|
+
|
31176
|
+
def initialize(**args)
|
31177
|
+
update!(**args)
|
31178
|
+
end
|
31179
|
+
|
31180
|
+
# Update properties of this object
|
31181
|
+
def update!(**args)
|
31182
|
+
@use_reference = args[:use_reference] if args.key?(:use_reference)
|
31183
|
+
@version = args[:version] if args.key?(:version)
|
31184
|
+
end
|
31185
|
+
end
|
31186
|
+
|
31187
|
+
# Input for summarization quality metric.
|
31188
|
+
class GoogleCloudAiplatformV1beta1SummarizationQualityInput
|
31189
|
+
include Google::Apis::Core::Hashable
|
31190
|
+
|
31191
|
+
# Spec for summarization quality instance.
|
31192
|
+
# Corresponds to the JSON property `instance`
|
31193
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SummarizationQualityInstance]
|
31194
|
+
attr_accessor :instance
|
31195
|
+
|
31196
|
+
# Spec for summarization quality score metric.
|
31197
|
+
# Corresponds to the JSON property `metricSpec`
|
31198
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SummarizationQualitySpec]
|
31199
|
+
attr_accessor :metric_spec
|
31200
|
+
|
31201
|
+
def initialize(**args)
|
31202
|
+
update!(**args)
|
31203
|
+
end
|
31204
|
+
|
31205
|
+
# Update properties of this object
|
31206
|
+
def update!(**args)
|
31207
|
+
@instance = args[:instance] if args.key?(:instance)
|
31208
|
+
@metric_spec = args[:metric_spec] if args.key?(:metric_spec)
|
31209
|
+
end
|
31210
|
+
end
|
31211
|
+
|
31212
|
+
# Spec for summarization quality instance.
|
31213
|
+
class GoogleCloudAiplatformV1beta1SummarizationQualityInstance
|
31214
|
+
include Google::Apis::Core::Hashable
|
31215
|
+
|
31216
|
+
# Required. Text to be summarized.
|
31217
|
+
# Corresponds to the JSON property `context`
|
31218
|
+
# @return [String]
|
31219
|
+
attr_accessor :context
|
31220
|
+
|
31221
|
+
# Required. Summarization prompt for LLM.
|
31222
|
+
# Corresponds to the JSON property `instruction`
|
31223
|
+
# @return [String]
|
31224
|
+
attr_accessor :instruction
|
31225
|
+
|
31226
|
+
# Required. Output of the evaluated model.
|
31227
|
+
# Corresponds to the JSON property `prediction`
|
31228
|
+
# @return [String]
|
31229
|
+
attr_accessor :prediction
|
31230
|
+
|
31231
|
+
# Optional. Ground truth used to compare against the prediction.
|
31232
|
+
# Corresponds to the JSON property `reference`
|
31233
|
+
# @return [String]
|
31234
|
+
attr_accessor :reference
|
31235
|
+
|
31236
|
+
def initialize(**args)
|
31237
|
+
update!(**args)
|
31238
|
+
end
|
31239
|
+
|
31240
|
+
# Update properties of this object
|
31241
|
+
def update!(**args)
|
31242
|
+
@context = args[:context] if args.key?(:context)
|
31243
|
+
@instruction = args[:instruction] if args.key?(:instruction)
|
31244
|
+
@prediction = args[:prediction] if args.key?(:prediction)
|
31245
|
+
@reference = args[:reference] if args.key?(:reference)
|
31246
|
+
end
|
31247
|
+
end
|
31248
|
+
|
31249
|
+
# Spec for summarization quality result.
|
31250
|
+
class GoogleCloudAiplatformV1beta1SummarizationQualityResult
|
31251
|
+
include Google::Apis::Core::Hashable
|
31252
|
+
|
31253
|
+
# Output only. Confidence for summarization quality score.
|
31254
|
+
# Corresponds to the JSON property `confidence`
|
31255
|
+
# @return [Float]
|
31256
|
+
attr_accessor :confidence
|
31257
|
+
|
31258
|
+
# Output only. Explanation for summarization quality score.
|
31259
|
+
# Corresponds to the JSON property `explanation`
|
31260
|
+
# @return [String]
|
31261
|
+
attr_accessor :explanation
|
31262
|
+
|
31263
|
+
# Output only. Summarization Quality score.
|
31264
|
+
# Corresponds to the JSON property `score`
|
31265
|
+
# @return [Float]
|
31266
|
+
attr_accessor :score
|
31267
|
+
|
31268
|
+
def initialize(**args)
|
31269
|
+
update!(**args)
|
31270
|
+
end
|
31271
|
+
|
31272
|
+
# Update properties of this object
|
31273
|
+
def update!(**args)
|
31274
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
31275
|
+
@explanation = args[:explanation] if args.key?(:explanation)
|
31276
|
+
@score = args[:score] if args.key?(:score)
|
31277
|
+
end
|
31278
|
+
end
|
31279
|
+
|
31280
|
+
# Spec for summarization quality score metric.
|
31281
|
+
class GoogleCloudAiplatformV1beta1SummarizationQualitySpec
|
31282
|
+
include Google::Apis::Core::Hashable
|
31283
|
+
|
31284
|
+
# Optional. Whether to use instance.reference to compute summarization quality.
|
31285
|
+
# Corresponds to the JSON property `useReference`
|
31286
|
+
# @return [Boolean]
|
31287
|
+
attr_accessor :use_reference
|
31288
|
+
alias_method :use_reference?, :use_reference
|
31289
|
+
|
31290
|
+
# Optional. Which version to use for evaluation.
|
31291
|
+
# Corresponds to the JSON property `version`
|
31292
|
+
# @return [Fixnum]
|
31293
|
+
attr_accessor :version
|
31294
|
+
|
31295
|
+
def initialize(**args)
|
31296
|
+
update!(**args)
|
31297
|
+
end
|
31298
|
+
|
31299
|
+
# Update properties of this object
|
31300
|
+
def update!(**args)
|
31301
|
+
@use_reference = args[:use_reference] if args.key?(:use_reference)
|
31302
|
+
@version = args[:version] if args.key?(:version)
|
31303
|
+
end
|
31304
|
+
end
|
31305
|
+
|
31306
|
+
# Input for summarization verbosity metric.
|
31307
|
+
class GoogleCloudAiplatformV1beta1SummarizationVerbosityInput
|
31308
|
+
include Google::Apis::Core::Hashable
|
31309
|
+
|
31310
|
+
# Spec for summarization verbosity instance.
|
31311
|
+
# Corresponds to the JSON property `instance`
|
31312
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SummarizationVerbosityInstance]
|
31313
|
+
attr_accessor :instance
|
31314
|
+
|
31315
|
+
# Spec for summarization verbosity score metric.
|
31316
|
+
# Corresponds to the JSON property `metricSpec`
|
31317
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SummarizationVerbositySpec]
|
31318
|
+
attr_accessor :metric_spec
|
31319
|
+
|
31320
|
+
def initialize(**args)
|
31321
|
+
update!(**args)
|
31322
|
+
end
|
31323
|
+
|
31324
|
+
# Update properties of this object
|
31325
|
+
def update!(**args)
|
31326
|
+
@instance = args[:instance] if args.key?(:instance)
|
31327
|
+
@metric_spec = args[:metric_spec] if args.key?(:metric_spec)
|
31328
|
+
end
|
31329
|
+
end
|
31330
|
+
|
31331
|
+
# Spec for summarization verbosity instance.
|
31332
|
+
class GoogleCloudAiplatformV1beta1SummarizationVerbosityInstance
|
31333
|
+
include Google::Apis::Core::Hashable
|
31334
|
+
|
31335
|
+
# Required. Text to be summarized.
|
31336
|
+
# Corresponds to the JSON property `context`
|
31337
|
+
# @return [String]
|
31338
|
+
attr_accessor :context
|
31339
|
+
|
31340
|
+
# Optional. Summarization prompt for LLM.
|
31341
|
+
# Corresponds to the JSON property `instruction`
|
31342
|
+
# @return [String]
|
31343
|
+
attr_accessor :instruction
|
31344
|
+
|
31345
|
+
# Required. Output of the evaluated model.
|
31346
|
+
# Corresponds to the JSON property `prediction`
|
31347
|
+
# @return [String]
|
31348
|
+
attr_accessor :prediction
|
31349
|
+
|
31350
|
+
# Optional. Ground truth used to compare against the prediction.
|
31351
|
+
# Corresponds to the JSON property `reference`
|
31352
|
+
# @return [String]
|
31353
|
+
attr_accessor :reference
|
31354
|
+
|
31355
|
+
def initialize(**args)
|
31356
|
+
update!(**args)
|
31357
|
+
end
|
31358
|
+
|
31359
|
+
# Update properties of this object
|
31360
|
+
def update!(**args)
|
31361
|
+
@context = args[:context] if args.key?(:context)
|
31362
|
+
@instruction = args[:instruction] if args.key?(:instruction)
|
31363
|
+
@prediction = args[:prediction] if args.key?(:prediction)
|
31364
|
+
@reference = args[:reference] if args.key?(:reference)
|
31365
|
+
end
|
31366
|
+
end
|
31367
|
+
|
31368
|
+
# Spec for summarization verbosity result.
|
31369
|
+
class GoogleCloudAiplatformV1beta1SummarizationVerbosityResult
|
31370
|
+
include Google::Apis::Core::Hashable
|
31371
|
+
|
31372
|
+
# Output only. Confidence for summarization verbosity score.
|
31373
|
+
# Corresponds to the JSON property `confidence`
|
31374
|
+
# @return [Float]
|
31375
|
+
attr_accessor :confidence
|
31376
|
+
|
31377
|
+
# Output only. Explanation for summarization verbosity score.
|
31378
|
+
# Corresponds to the JSON property `explanation`
|
31379
|
+
# @return [String]
|
31380
|
+
attr_accessor :explanation
|
31381
|
+
|
31382
|
+
# Output only. Summarization Verbosity score.
|
31383
|
+
# Corresponds to the JSON property `score`
|
31384
|
+
# @return [Float]
|
31385
|
+
attr_accessor :score
|
31386
|
+
|
31387
|
+
def initialize(**args)
|
31388
|
+
update!(**args)
|
31389
|
+
end
|
31390
|
+
|
31391
|
+
# Update properties of this object
|
31392
|
+
def update!(**args)
|
31393
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
31394
|
+
@explanation = args[:explanation] if args.key?(:explanation)
|
31395
|
+
@score = args[:score] if args.key?(:score)
|
31396
|
+
end
|
31397
|
+
end
|
31398
|
+
|
31399
|
+
# Spec for summarization verbosity score metric.
|
31400
|
+
class GoogleCloudAiplatformV1beta1SummarizationVerbositySpec
|
31401
|
+
include Google::Apis::Core::Hashable
|
31402
|
+
|
31403
|
+
# Optional. Whether to use instance.reference to compute summarization verbosity.
|
31404
|
+
# Corresponds to the JSON property `useReference`
|
31405
|
+
# @return [Boolean]
|
31406
|
+
attr_accessor :use_reference
|
31407
|
+
alias_method :use_reference?, :use_reference
|
31408
|
+
|
31409
|
+
# Optional. Which version to use for evaluation.
|
31410
|
+
# Corresponds to the JSON property `version`
|
31411
|
+
# @return [Fixnum]
|
31412
|
+
attr_accessor :version
|
31413
|
+
|
31414
|
+
def initialize(**args)
|
31415
|
+
update!(**args)
|
31416
|
+
end
|
31417
|
+
|
31418
|
+
# Update properties of this object
|
31419
|
+
def update!(**args)
|
31420
|
+
@use_reference = args[:use_reference] if args.key?(:use_reference)
|
31421
|
+
@version = args[:version] if args.key?(:version)
|
31422
|
+
end
|
31423
|
+
end
|
31424
|
+
|
28421
31425
|
# Request message for FeatureOnlineStoreAdminService.SyncFeatureView.
|
28422
31426
|
class GoogleCloudAiplatformV1beta1SyncFeatureViewRequest
|
28423
31427
|
include Google::Apis::Core::Hashable
|
@@ -29207,6 +32211,436 @@ module Google
|
|
29207
32211
|
end
|
29208
32212
|
end
|
29209
32213
|
|
32214
|
+
# Input for tool call valid metric.
|
32215
|
+
class GoogleCloudAiplatformV1beta1ToolCallValidInput
|
32216
|
+
include Google::Apis::Core::Hashable
|
32217
|
+
|
32218
|
+
# Required. Repeated tool call valid instances.
|
32219
|
+
# Corresponds to the JSON property `instances`
|
32220
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ToolCallValidInstance>]
|
32221
|
+
attr_accessor :instances
|
32222
|
+
|
32223
|
+
# Spec for tool call valid metric.
|
32224
|
+
# Corresponds to the JSON property `metricSpec`
|
32225
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ToolCallValidSpec]
|
32226
|
+
attr_accessor :metric_spec
|
32227
|
+
|
32228
|
+
def initialize(**args)
|
32229
|
+
update!(**args)
|
32230
|
+
end
|
32231
|
+
|
32232
|
+
# Update properties of this object
|
32233
|
+
def update!(**args)
|
32234
|
+
@instances = args[:instances] if args.key?(:instances)
|
32235
|
+
@metric_spec = args[:metric_spec] if args.key?(:metric_spec)
|
32236
|
+
end
|
32237
|
+
end
|
32238
|
+
|
32239
|
+
# Spec for tool call valid instance.
|
32240
|
+
class GoogleCloudAiplatformV1beta1ToolCallValidInstance
|
32241
|
+
include Google::Apis::Core::Hashable
|
32242
|
+
|
32243
|
+
# Required. Output of the evaluated model.
|
32244
|
+
# Corresponds to the JSON property `prediction`
|
32245
|
+
# @return [String]
|
32246
|
+
attr_accessor :prediction
|
32247
|
+
|
32248
|
+
# Required. Ground truth used to compare against the prediction.
|
32249
|
+
# Corresponds to the JSON property `reference`
|
32250
|
+
# @return [String]
|
32251
|
+
attr_accessor :reference
|
32252
|
+
|
32253
|
+
def initialize(**args)
|
32254
|
+
update!(**args)
|
32255
|
+
end
|
32256
|
+
|
32257
|
+
# Update properties of this object
|
32258
|
+
def update!(**args)
|
32259
|
+
@prediction = args[:prediction] if args.key?(:prediction)
|
32260
|
+
@reference = args[:reference] if args.key?(:reference)
|
32261
|
+
end
|
32262
|
+
end
|
32263
|
+
|
32264
|
+
# Tool call valid metric value for an instance.
|
32265
|
+
class GoogleCloudAiplatformV1beta1ToolCallValidMetricValue
|
32266
|
+
include Google::Apis::Core::Hashable
|
32267
|
+
|
32268
|
+
# Output only. Tool call valid score.
|
32269
|
+
# Corresponds to the JSON property `score`
|
32270
|
+
# @return [Float]
|
32271
|
+
attr_accessor :score
|
32272
|
+
|
32273
|
+
def initialize(**args)
|
32274
|
+
update!(**args)
|
32275
|
+
end
|
32276
|
+
|
32277
|
+
# Update properties of this object
|
32278
|
+
def update!(**args)
|
32279
|
+
@score = args[:score] if args.key?(:score)
|
32280
|
+
end
|
32281
|
+
end
|
32282
|
+
|
32283
|
+
# Results for tool call valid metric.
|
32284
|
+
class GoogleCloudAiplatformV1beta1ToolCallValidResults
|
32285
|
+
include Google::Apis::Core::Hashable
|
32286
|
+
|
32287
|
+
# Output only. Tool call valid metric values.
|
32288
|
+
# Corresponds to the JSON property `toolCallValidMetricValues`
|
32289
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ToolCallValidMetricValue>]
|
32290
|
+
attr_accessor :tool_call_valid_metric_values
|
32291
|
+
|
32292
|
+
def initialize(**args)
|
32293
|
+
update!(**args)
|
32294
|
+
end
|
32295
|
+
|
32296
|
+
# Update properties of this object
|
32297
|
+
def update!(**args)
|
32298
|
+
@tool_call_valid_metric_values = args[:tool_call_valid_metric_values] if args.key?(:tool_call_valid_metric_values)
|
32299
|
+
end
|
32300
|
+
end
|
32301
|
+
|
32302
|
+
# Spec for tool call valid metric.
|
32303
|
+
class GoogleCloudAiplatformV1beta1ToolCallValidSpec
|
32304
|
+
include Google::Apis::Core::Hashable
|
32305
|
+
|
32306
|
+
def initialize(**args)
|
32307
|
+
update!(**args)
|
32308
|
+
end
|
32309
|
+
|
32310
|
+
# Update properties of this object
|
32311
|
+
def update!(**args)
|
32312
|
+
end
|
32313
|
+
end
|
32314
|
+
|
32315
|
+
# Tool config. This config is shared for all tools provided in the request.
|
32316
|
+
class GoogleCloudAiplatformV1beta1ToolConfig
|
32317
|
+
include Google::Apis::Core::Hashable
|
32318
|
+
|
32319
|
+
# Function calling config.
|
32320
|
+
# Corresponds to the JSON property `functionCallingConfig`
|
32321
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FunctionCallingConfig]
|
32322
|
+
attr_accessor :function_calling_config
|
32323
|
+
|
32324
|
+
def initialize(**args)
|
32325
|
+
update!(**args)
|
32326
|
+
end
|
32327
|
+
|
32328
|
+
# Update properties of this object
|
32329
|
+
def update!(**args)
|
32330
|
+
@function_calling_config = args[:function_calling_config] if args.key?(:function_calling_config)
|
32331
|
+
end
|
32332
|
+
end
|
32333
|
+
|
32334
|
+
# Input for tool name match metric.
|
32335
|
+
class GoogleCloudAiplatformV1beta1ToolNameMatchInput
|
32336
|
+
include Google::Apis::Core::Hashable
|
32337
|
+
|
32338
|
+
# Required. Repeated tool name match instances.
|
32339
|
+
# Corresponds to the JSON property `instances`
|
32340
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ToolNameMatchInstance>]
|
32341
|
+
attr_accessor :instances
|
32342
|
+
|
32343
|
+
# Spec for tool name match metric.
|
32344
|
+
# Corresponds to the JSON property `metricSpec`
|
32345
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ToolNameMatchSpec]
|
32346
|
+
attr_accessor :metric_spec
|
32347
|
+
|
32348
|
+
def initialize(**args)
|
32349
|
+
update!(**args)
|
32350
|
+
end
|
32351
|
+
|
32352
|
+
# Update properties of this object
|
32353
|
+
def update!(**args)
|
32354
|
+
@instances = args[:instances] if args.key?(:instances)
|
32355
|
+
@metric_spec = args[:metric_spec] if args.key?(:metric_spec)
|
32356
|
+
end
|
32357
|
+
end
|
32358
|
+
|
32359
|
+
# Spec for tool name match instance.
|
32360
|
+
class GoogleCloudAiplatformV1beta1ToolNameMatchInstance
|
32361
|
+
include Google::Apis::Core::Hashable
|
32362
|
+
|
32363
|
+
# Required. Output of the evaluated model.
|
32364
|
+
# Corresponds to the JSON property `prediction`
|
32365
|
+
# @return [String]
|
32366
|
+
attr_accessor :prediction
|
32367
|
+
|
32368
|
+
# Required. Ground truth used to compare against the prediction.
|
32369
|
+
# Corresponds to the JSON property `reference`
|
32370
|
+
# @return [String]
|
32371
|
+
attr_accessor :reference
|
32372
|
+
|
32373
|
+
def initialize(**args)
|
32374
|
+
update!(**args)
|
32375
|
+
end
|
32376
|
+
|
32377
|
+
# Update properties of this object
|
32378
|
+
def update!(**args)
|
32379
|
+
@prediction = args[:prediction] if args.key?(:prediction)
|
32380
|
+
@reference = args[:reference] if args.key?(:reference)
|
32381
|
+
end
|
32382
|
+
end
|
32383
|
+
|
32384
|
+
# Tool name match metric value for an instance.
|
32385
|
+
class GoogleCloudAiplatformV1beta1ToolNameMatchMetricValue
|
32386
|
+
include Google::Apis::Core::Hashable
|
32387
|
+
|
32388
|
+
# Output only. Tool name match score.
|
32389
|
+
# Corresponds to the JSON property `score`
|
32390
|
+
# @return [Float]
|
32391
|
+
attr_accessor :score
|
32392
|
+
|
32393
|
+
def initialize(**args)
|
32394
|
+
update!(**args)
|
32395
|
+
end
|
32396
|
+
|
32397
|
+
# Update properties of this object
|
32398
|
+
def update!(**args)
|
32399
|
+
@score = args[:score] if args.key?(:score)
|
32400
|
+
end
|
32401
|
+
end
|
32402
|
+
|
32403
|
+
# Results for tool name match metric.
|
32404
|
+
class GoogleCloudAiplatformV1beta1ToolNameMatchResults
|
32405
|
+
include Google::Apis::Core::Hashable
|
32406
|
+
|
32407
|
+
# Output only. Tool name match metric values.
|
32408
|
+
# Corresponds to the JSON property `toolNameMatchMetricValues`
|
32409
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ToolNameMatchMetricValue>]
|
32410
|
+
attr_accessor :tool_name_match_metric_values
|
32411
|
+
|
32412
|
+
def initialize(**args)
|
32413
|
+
update!(**args)
|
32414
|
+
end
|
32415
|
+
|
32416
|
+
# Update properties of this object
|
32417
|
+
def update!(**args)
|
32418
|
+
@tool_name_match_metric_values = args[:tool_name_match_metric_values] if args.key?(:tool_name_match_metric_values)
|
32419
|
+
end
|
32420
|
+
end
|
32421
|
+
|
32422
|
+
# Spec for tool name match metric.
|
32423
|
+
class GoogleCloudAiplatformV1beta1ToolNameMatchSpec
|
32424
|
+
include Google::Apis::Core::Hashable
|
32425
|
+
|
32426
|
+
def initialize(**args)
|
32427
|
+
update!(**args)
|
32428
|
+
end
|
32429
|
+
|
32430
|
+
# Update properties of this object
|
32431
|
+
def update!(**args)
|
32432
|
+
end
|
32433
|
+
end
|
32434
|
+
|
32435
|
+
# Input for tool parameter key value match metric.
|
32436
|
+
class GoogleCloudAiplatformV1beta1ToolParameterKvMatchInput
|
32437
|
+
include Google::Apis::Core::Hashable
|
32438
|
+
|
32439
|
+
# Required. Repeated tool parameter key value match instances.
|
32440
|
+
# Corresponds to the JSON property `instances`
|
32441
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ToolParameterKvMatchInstance>]
|
32442
|
+
attr_accessor :instances
|
32443
|
+
|
32444
|
+
# Spec for tool parameter key value match metric.
|
32445
|
+
# Corresponds to the JSON property `metricSpec`
|
32446
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ToolParameterKvMatchSpec]
|
32447
|
+
attr_accessor :metric_spec
|
32448
|
+
|
32449
|
+
def initialize(**args)
|
32450
|
+
update!(**args)
|
32451
|
+
end
|
32452
|
+
|
32453
|
+
# Update properties of this object
|
32454
|
+
def update!(**args)
|
32455
|
+
@instances = args[:instances] if args.key?(:instances)
|
32456
|
+
@metric_spec = args[:metric_spec] if args.key?(:metric_spec)
|
32457
|
+
end
|
32458
|
+
end
|
32459
|
+
|
32460
|
+
# Spec for tool parameter key value match instance.
|
32461
|
+
class GoogleCloudAiplatformV1beta1ToolParameterKvMatchInstance
|
32462
|
+
include Google::Apis::Core::Hashable
|
32463
|
+
|
32464
|
+
# Required. Output of the evaluated model.
|
32465
|
+
# Corresponds to the JSON property `prediction`
|
32466
|
+
# @return [String]
|
32467
|
+
attr_accessor :prediction
|
32468
|
+
|
32469
|
+
# Required. Ground truth used to compare against the prediction.
|
32470
|
+
# Corresponds to the JSON property `reference`
|
32471
|
+
# @return [String]
|
32472
|
+
attr_accessor :reference
|
32473
|
+
|
32474
|
+
def initialize(**args)
|
32475
|
+
update!(**args)
|
32476
|
+
end
|
32477
|
+
|
32478
|
+
# Update properties of this object
|
32479
|
+
def update!(**args)
|
32480
|
+
@prediction = args[:prediction] if args.key?(:prediction)
|
32481
|
+
@reference = args[:reference] if args.key?(:reference)
|
32482
|
+
end
|
32483
|
+
end
|
32484
|
+
|
32485
|
+
# Tool parameter key value match metric value for an instance.
|
32486
|
+
class GoogleCloudAiplatformV1beta1ToolParameterKvMatchMetricValue
|
32487
|
+
include Google::Apis::Core::Hashable
|
32488
|
+
|
32489
|
+
# Output only. Tool parameter key value match score.
|
32490
|
+
# Corresponds to the JSON property `score`
|
32491
|
+
# @return [Float]
|
32492
|
+
attr_accessor :score
|
32493
|
+
|
32494
|
+
def initialize(**args)
|
32495
|
+
update!(**args)
|
32496
|
+
end
|
32497
|
+
|
32498
|
+
# Update properties of this object
|
32499
|
+
def update!(**args)
|
32500
|
+
@score = args[:score] if args.key?(:score)
|
32501
|
+
end
|
32502
|
+
end
|
32503
|
+
|
32504
|
+
# Results for tool parameter key value match metric.
|
32505
|
+
class GoogleCloudAiplatformV1beta1ToolParameterKvMatchResults
|
32506
|
+
include Google::Apis::Core::Hashable
|
32507
|
+
|
32508
|
+
# Output only. Tool parameter key value match metric values.
|
32509
|
+
# Corresponds to the JSON property `toolParameterKvMatchMetricValues`
|
32510
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ToolParameterKvMatchMetricValue>]
|
32511
|
+
attr_accessor :tool_parameter_kv_match_metric_values
|
32512
|
+
|
32513
|
+
def initialize(**args)
|
32514
|
+
update!(**args)
|
32515
|
+
end
|
32516
|
+
|
32517
|
+
# Update properties of this object
|
32518
|
+
def update!(**args)
|
32519
|
+
@tool_parameter_kv_match_metric_values = args[:tool_parameter_kv_match_metric_values] if args.key?(:tool_parameter_kv_match_metric_values)
|
32520
|
+
end
|
32521
|
+
end
|
32522
|
+
|
32523
|
+
# Spec for tool parameter key value match metric.
|
32524
|
+
class GoogleCloudAiplatformV1beta1ToolParameterKvMatchSpec
|
32525
|
+
include Google::Apis::Core::Hashable
|
32526
|
+
|
32527
|
+
# Optional. Whether to use STRCIT string match on parameter values.
|
32528
|
+
# Corresponds to the JSON property `useStrictStringMatch`
|
32529
|
+
# @return [Boolean]
|
32530
|
+
attr_accessor :use_strict_string_match
|
32531
|
+
alias_method :use_strict_string_match?, :use_strict_string_match
|
32532
|
+
|
32533
|
+
def initialize(**args)
|
32534
|
+
update!(**args)
|
32535
|
+
end
|
32536
|
+
|
32537
|
+
# Update properties of this object
|
32538
|
+
def update!(**args)
|
32539
|
+
@use_strict_string_match = args[:use_strict_string_match] if args.key?(:use_strict_string_match)
|
32540
|
+
end
|
32541
|
+
end
|
32542
|
+
|
32543
|
+
# Input for tool parameter key match metric.
|
32544
|
+
class GoogleCloudAiplatformV1beta1ToolParameterKeyMatchInput
|
32545
|
+
include Google::Apis::Core::Hashable
|
32546
|
+
|
32547
|
+
# Required. Repeated tool parameter key match instances.
|
32548
|
+
# Corresponds to the JSON property `instances`
|
32549
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ToolParameterKeyMatchInstance>]
|
32550
|
+
attr_accessor :instances
|
32551
|
+
|
32552
|
+
# Spec for tool parameter key match metric.
|
32553
|
+
# Corresponds to the JSON property `metricSpec`
|
32554
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ToolParameterKeyMatchSpec]
|
32555
|
+
attr_accessor :metric_spec
|
32556
|
+
|
32557
|
+
def initialize(**args)
|
32558
|
+
update!(**args)
|
32559
|
+
end
|
32560
|
+
|
32561
|
+
# Update properties of this object
|
32562
|
+
def update!(**args)
|
32563
|
+
@instances = args[:instances] if args.key?(:instances)
|
32564
|
+
@metric_spec = args[:metric_spec] if args.key?(:metric_spec)
|
32565
|
+
end
|
32566
|
+
end
|
32567
|
+
|
32568
|
+
# Spec for tool parameter key match instance.
|
32569
|
+
class GoogleCloudAiplatformV1beta1ToolParameterKeyMatchInstance
|
32570
|
+
include Google::Apis::Core::Hashable
|
32571
|
+
|
32572
|
+
# Required. Output of the evaluated model.
|
32573
|
+
# Corresponds to the JSON property `prediction`
|
32574
|
+
# @return [String]
|
32575
|
+
attr_accessor :prediction
|
32576
|
+
|
32577
|
+
# Required. Ground truth used to compare against the prediction.
|
32578
|
+
# Corresponds to the JSON property `reference`
|
32579
|
+
# @return [String]
|
32580
|
+
attr_accessor :reference
|
32581
|
+
|
32582
|
+
def initialize(**args)
|
32583
|
+
update!(**args)
|
32584
|
+
end
|
32585
|
+
|
32586
|
+
# Update properties of this object
|
32587
|
+
def update!(**args)
|
32588
|
+
@prediction = args[:prediction] if args.key?(:prediction)
|
32589
|
+
@reference = args[:reference] if args.key?(:reference)
|
32590
|
+
end
|
32591
|
+
end
|
32592
|
+
|
32593
|
+
# Tool parameter key match metric value for an instance.
|
32594
|
+
class GoogleCloudAiplatformV1beta1ToolParameterKeyMatchMetricValue
|
32595
|
+
include Google::Apis::Core::Hashable
|
32596
|
+
|
32597
|
+
# Output only. Tool parameter key match score.
|
32598
|
+
# Corresponds to the JSON property `score`
|
32599
|
+
# @return [Float]
|
32600
|
+
attr_accessor :score
|
32601
|
+
|
32602
|
+
def initialize(**args)
|
32603
|
+
update!(**args)
|
32604
|
+
end
|
32605
|
+
|
32606
|
+
# Update properties of this object
|
32607
|
+
def update!(**args)
|
32608
|
+
@score = args[:score] if args.key?(:score)
|
32609
|
+
end
|
32610
|
+
end
|
32611
|
+
|
32612
|
+
# Results for tool parameter key match metric.
|
32613
|
+
class GoogleCloudAiplatformV1beta1ToolParameterKeyMatchResults
|
32614
|
+
include Google::Apis::Core::Hashable
|
32615
|
+
|
32616
|
+
# Output only. Tool parameter key match metric values.
|
32617
|
+
# Corresponds to the JSON property `toolParameterKeyMatchMetricValues`
|
32618
|
+
# @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ToolParameterKeyMatchMetricValue>]
|
32619
|
+
attr_accessor :tool_parameter_key_match_metric_values
|
32620
|
+
|
32621
|
+
def initialize(**args)
|
32622
|
+
update!(**args)
|
32623
|
+
end
|
32624
|
+
|
32625
|
+
# Update properties of this object
|
32626
|
+
def update!(**args)
|
32627
|
+
@tool_parameter_key_match_metric_values = args[:tool_parameter_key_match_metric_values] if args.key?(:tool_parameter_key_match_metric_values)
|
32628
|
+
end
|
32629
|
+
end
|
32630
|
+
|
32631
|
+
# Spec for tool parameter key match metric.
|
32632
|
+
class GoogleCloudAiplatformV1beta1ToolParameterKeyMatchSpec
|
32633
|
+
include Google::Apis::Core::Hashable
|
32634
|
+
|
32635
|
+
def initialize(**args)
|
32636
|
+
update!(**args)
|
32637
|
+
end
|
32638
|
+
|
32639
|
+
# Update properties of this object
|
32640
|
+
def update!(**args)
|
32641
|
+
end
|
32642
|
+
end
|
32643
|
+
|
29210
32644
|
# A single example of the tool usage.
|
29211
32645
|
class GoogleCloudAiplatformV1beta1ToolUseExample
|
29212
32646
|
include Google::Apis::Core::Hashable
|
@@ -30205,6 +33639,80 @@ module Google
|
|
30205
33639
|
end
|
30206
33640
|
end
|
30207
33641
|
|
33642
|
+
# Config for uploading RagFile.
|
33643
|
+
class GoogleCloudAiplatformV1beta1UploadRagFileConfig
|
33644
|
+
include Google::Apis::Core::Hashable
|
33645
|
+
|
33646
|
+
# Specifies the size and overlap of chunks for RagFiles.
|
33647
|
+
# Corresponds to the JSON property `ragFileChunkingConfig`
|
33648
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFileChunkingConfig]
|
33649
|
+
attr_accessor :rag_file_chunking_config
|
33650
|
+
|
33651
|
+
def initialize(**args)
|
33652
|
+
update!(**args)
|
33653
|
+
end
|
33654
|
+
|
33655
|
+
# Update properties of this object
|
33656
|
+
def update!(**args)
|
33657
|
+
@rag_file_chunking_config = args[:rag_file_chunking_config] if args.key?(:rag_file_chunking_config)
|
33658
|
+
end
|
33659
|
+
end
|
33660
|
+
|
33661
|
+
# Request message for VertexRagDataService.UploadRagFile.
|
33662
|
+
class GoogleCloudAiplatformV1beta1UploadRagFileRequest
|
33663
|
+
include Google::Apis::Core::Hashable
|
33664
|
+
|
33665
|
+
# A RagFile contains user data for chunking, embedding and indexing.
|
33666
|
+
# Corresponds to the JSON property `ragFile`
|
33667
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFile]
|
33668
|
+
attr_accessor :rag_file
|
33669
|
+
|
33670
|
+
# Config for uploading RagFile.
|
33671
|
+
# Corresponds to the JSON property `uploadRagFileConfig`
|
33672
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1UploadRagFileConfig]
|
33673
|
+
attr_accessor :upload_rag_file_config
|
33674
|
+
|
33675
|
+
def initialize(**args)
|
33676
|
+
update!(**args)
|
33677
|
+
end
|
33678
|
+
|
33679
|
+
# Update properties of this object
|
33680
|
+
def update!(**args)
|
33681
|
+
@rag_file = args[:rag_file] if args.key?(:rag_file)
|
33682
|
+
@upload_rag_file_config = args[:upload_rag_file_config] if args.key?(:upload_rag_file_config)
|
33683
|
+
end
|
33684
|
+
end
|
33685
|
+
|
33686
|
+
# Response message for VertexRagDataService.UploadRagFile.
|
33687
|
+
class GoogleCloudAiplatformV1beta1UploadRagFileResponse
|
33688
|
+
include Google::Apis::Core::Hashable
|
33689
|
+
|
33690
|
+
# The `Status` type defines a logical error model that is suitable for different
|
33691
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
33692
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
33693
|
+
# data: error code, error message, and error details. You can find out more
|
33694
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
33695
|
+
# //cloud.google.com/apis/design/errors).
|
33696
|
+
# Corresponds to the JSON property `error`
|
33697
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleRpcStatus]
|
33698
|
+
attr_accessor :error
|
33699
|
+
|
33700
|
+
# A RagFile contains user data for chunking, embedding and indexing.
|
33701
|
+
# Corresponds to the JSON property `ragFile`
|
33702
|
+
# @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFile]
|
33703
|
+
attr_accessor :rag_file
|
33704
|
+
|
33705
|
+
def initialize(**args)
|
33706
|
+
update!(**args)
|
33707
|
+
end
|
33708
|
+
|
33709
|
+
# Update properties of this object
|
33710
|
+
def update!(**args)
|
33711
|
+
@error = args[:error] if args.key?(:error)
|
33712
|
+
@rag_file = args[:rag_file] if args.key?(:rag_file)
|
33713
|
+
end
|
33714
|
+
end
|
33715
|
+
|
30208
33716
|
# Request message for IndexService.UpsertDatapoints
|
30209
33717
|
class GoogleCloudAiplatformV1beta1UpsertDatapointsRequest
|
30210
33718
|
include Google::Apis::Core::Hashable
|
@@ -30336,6 +33844,34 @@ module Google
|
|
30336
33844
|
end
|
30337
33845
|
end
|
30338
33846
|
|
33847
|
+
# Retrieve from Vertex RAG Store for grounding.
|
33848
|
+
class GoogleCloudAiplatformV1beta1VertexRagStore
|
33849
|
+
include Google::Apis::Core::Hashable
|
33850
|
+
|
33851
|
+
# Required. Vertex RAG Store corpus resource name: projects/`project`/locations/`
|
33852
|
+
# location`/ragCorpora/`ragCorpus` Currently only one corpus is allowed. In the
|
33853
|
+
# future we may open up multiple corpora support. However, they should be from
|
33854
|
+
# the same project and location.
|
33855
|
+
# Corresponds to the JSON property `ragCorpora`
|
33856
|
+
# @return [Array<String>]
|
33857
|
+
attr_accessor :rag_corpora
|
33858
|
+
|
33859
|
+
# Optional. Number of top k results to return from the selected corpora.
|
33860
|
+
# Corresponds to the JSON property `similarityTopK`
|
33861
|
+
# @return [Fixnum]
|
33862
|
+
attr_accessor :similarity_top_k
|
33863
|
+
|
33864
|
+
def initialize(**args)
|
33865
|
+
update!(**args)
|
33866
|
+
end
|
33867
|
+
|
33868
|
+
# Update properties of this object
|
33869
|
+
def update!(**args)
|
33870
|
+
@rag_corpora = args[:rag_corpora] if args.key?(:rag_corpora)
|
33871
|
+
@similarity_top_k = args[:similarity_top_k] if args.key?(:similarity_top_k)
|
33872
|
+
end
|
33873
|
+
end
|
33874
|
+
|
30339
33875
|
# Metadata describes the input video content.
|
30340
33876
|
class GoogleCloudAiplatformV1beta1VideoMetadata
|
30341
33877
|
include Google::Apis::Core::Hashable
|
@@ -32638,6 +36174,12 @@ module Google
|
|
32638
36174
|
# @return [Google::Apis::AiplatformV1beta1::LearningGenaiRootHarmGrailTextHarmType]
|
32639
36175
|
attr_accessor :grail_text_harm_type
|
32640
36176
|
|
36177
|
+
#
|
36178
|
+
# Corresponds to the JSON property `imageChild`
|
36179
|
+
# @return [Boolean]
|
36180
|
+
attr_accessor :image_child
|
36181
|
+
alias_method :image_child?, :image_child
|
36182
|
+
|
32641
36183
|
#
|
32642
36184
|
# Corresponds to the JSON property `imageCsam`
|
32643
36185
|
# @return [Boolean]
|
@@ -32685,6 +36227,12 @@ module Google
|
|
32685
36227
|
# @return [Float]
|
32686
36228
|
attr_accessor :threshold
|
32687
36229
|
|
36230
|
+
#
|
36231
|
+
# Corresponds to the JSON property `videoFrameChild`
|
36232
|
+
# @return [Boolean]
|
36233
|
+
attr_accessor :video_frame_child
|
36234
|
+
alias_method :video_frame_child?, :video_frame_child
|
36235
|
+
|
32688
36236
|
#
|
32689
36237
|
# Corresponds to the JSON property `videoFrameCsam`
|
32690
36238
|
# @return [Boolean]
|
@@ -32720,6 +36268,7 @@ module Google
|
|
32720
36268
|
@fringe = args[:fringe] if args.key?(:fringe)
|
32721
36269
|
@grail_image_harm_type = args[:grail_image_harm_type] if args.key?(:grail_image_harm_type)
|
32722
36270
|
@grail_text_harm_type = args[:grail_text_harm_type] if args.key?(:grail_text_harm_type)
|
36271
|
+
@image_child = args[:image_child] if args.key?(:image_child)
|
32723
36272
|
@image_csam = args[:image_csam] if args.key?(:image_csam)
|
32724
36273
|
@image_pedo = args[:image_pedo] if args.key?(:image_pedo)
|
32725
36274
|
@image_porn = args[:image_porn] if args.key?(:image_porn)
|
@@ -32728,6 +36277,7 @@ module Google
|
|
32728
36277
|
@safetycat = args[:safetycat] if args.key?(:safetycat)
|
32729
36278
|
@spii = args[:spii] if args.key?(:spii)
|
32730
36279
|
@threshold = args[:threshold] if args.key?(:threshold)
|
36280
|
+
@video_frame_child = args[:video_frame_child] if args.key?(:video_frame_child)
|
32731
36281
|
@video_frame_csam = args[:video_frame_csam] if args.key?(:video_frame_csam)
|
32732
36282
|
@video_frame_pedo = args[:video_frame_pedo] if args.key?(:video_frame_pedo)
|
32733
36283
|
@video_frame_porn = args[:video_frame_porn] if args.key?(:video_frame_porn)
|
@@ -33145,6 +36695,18 @@ module Google
|
|
33145
36695
|
# @return [String]
|
33146
36696
|
attr_accessor :model_id
|
33147
36697
|
|
36698
|
+
# If true, the model was selected as a fallback, since no model met requirements.
|
36699
|
+
# Corresponds to the JSON property `pickedAsFallback`
|
36700
|
+
# @return [Boolean]
|
36701
|
+
attr_accessor :picked_as_fallback
|
36702
|
+
alias_method :picked_as_fallback?, :picked_as_fallback
|
36703
|
+
|
36704
|
+
# If true, the model was selected since it met the requriements.
|
36705
|
+
# Corresponds to the JSON property `selected`
|
36706
|
+
# @return [Boolean]
|
36707
|
+
attr_accessor :selected
|
36708
|
+
alias_method :selected?, :selected
|
36709
|
+
|
33148
36710
|
def initialize(**args)
|
33149
36711
|
update!(**args)
|
33150
36712
|
end
|
@@ -33153,6 +36715,8 @@ module Google
|
|
33153
36715
|
def update!(**args)
|
33154
36716
|
@computed_input_token_length = args[:computed_input_token_length] if args.key?(:computed_input_token_length)
|
33155
36717
|
@model_id = args[:model_id] if args.key?(:model_id)
|
36718
|
+
@picked_as_fallback = args[:picked_as_fallback] if args.key?(:picked_as_fallback)
|
36719
|
+
@selected = args[:selected] if args.key?(:selected)
|
33156
36720
|
end
|
33157
36721
|
end
|
33158
36722
|
|