Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagContextRecallInstance
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagContextRecallInstance
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb
Overview
Spec for rag context recall instance.
Instance Attribute Summary collapse
-
#context ⇒ String
Required.
-
#reference ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1RagContextRecallInstance
constructor
A new instance of GoogleCloudAiplatformV1beta1RagContextRecallInstance.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1RagContextRecallInstance
Returns a new instance of GoogleCloudAiplatformV1beta1RagContextRecallInstance.
21213 21214 21215 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 21213 def initialize(**args) update!(**args) end |
Instance Attribute Details
#context ⇒ String
Required. Retrieved facts from RAG pipeline as context to be evaluated.
Corresponds to the JSON property context
21206 21207 21208 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 21206 def context @context end |
#reference ⇒ String
Required. Ground truth used to compare against the context.
Corresponds to the JSON property reference
21211 21212 21213 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 21211 def reference @reference end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
21218 21219 21220 21221 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 21218 def update!(**args) @context = args[:context] if args.key?(:context) @reference = args[:reference] if args.key?(:reference) end |