Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GroundingAttribution

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

Grounding attribution.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1GroundingAttribution

Returns a new instance of GoogleCloudAiplatformV1GroundingAttribution.



9750
9751
9752
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 9750

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#confidence_scoreFloat

Optional. Output only. Confidence score of the attribution. Ranges from 0 to 1. 1 is the most confident. Corresponds to the JSON property confidenceScore

Returns:

  • (Float)


9738
9739
9740
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 9738

def confidence_score
  @confidence_score
end

#segmentGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1Segment

Segment of the content. Corresponds to the JSON property segment



9743
9744
9745
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 9743

def segment
  @segment
end

#webGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1GroundingAttributionWeb

Attribution from the web. Corresponds to the JSON property web



9748
9749
9750
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 9748

def web
  @web
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9755
9756
9757
9758
9759
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 9755

def update!(**args)
  @confidence_score = args[:confidence_score] if args.key?(:confidence_score)
  @segment = args[:segment] if args.key?(:segment)
  @web = args[:web] if args.key?(:web)
end