Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationRequest
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/representations.rb
Overview
Single evaluation request.
Instance Attribute Summary collapse
-
#candidate_responses ⇒ Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CandidateResponse>
Optional.
-
#golden_response ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CandidateResponse
Responses from model or agent.
-
#prompt ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationPrompt
Prompt to be evaluated.
-
#rubrics ⇒ Hash<String,Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RubricGroup>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1EvaluationRequest
constructor
A new instance of GoogleCloudAiplatformV1EvaluationRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1EvaluationRequest
Returns a new instance of GoogleCloudAiplatformV1EvaluationRequest.
9365 9366 9367 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 9365 def initialize(**args) update!(**args) end |
Instance Attribute Details
#candidate_responses ⇒ Array<Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CandidateResponse>
Optional. Responses from model under test and other baseline models for
comparison.
Corresponds to the JSON property candidateResponses
9347 9348 9349 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 9347 def candidate_responses @candidate_responses end |
#golden_response ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1CandidateResponse
Responses from model or agent.
Corresponds to the JSON property goldenResponse
9352 9353 9354 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 9352 def golden_response @golden_response end |
#prompt ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1EvaluationPrompt
Prompt to be evaluated.
Corresponds to the JSON property prompt
9357 9358 9359 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 9357 def prompt @prompt end |
#rubrics ⇒ Hash<String,Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RubricGroup>
Optional. Named groups of rubrics associated with this prompt. The key is a
user-defined name for the rubric group.
Corresponds to the JSON property rubrics
9363 9364 9365 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 9363 def rubrics @rubrics end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9370 9371 9372 9373 9374 9375 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 9370 def update!(**args) @candidate_responses = args[:candidate_responses] if args.key?(:candidate_responses) @golden_response = args[:golden_response] if args.key?(:golden_response) @prompt = args[:prompt] if args.key?(:prompt) @rubrics = args[:rubrics] if args.key?(:rubrics) end |