Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagContextRecallInstance

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#contextString

Required. Retrieved facts from RAG pipeline as context to be evaluated. Corresponds to the JSON property context

Returns:

  • (String)


21206
21207
21208
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 21206

def context
  @context
end

#referenceString

Required. Ground truth used to compare against the context. Corresponds to the JSON property reference

Returns:

  • (String)


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