Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GroundingAttribution

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

Grounding attribution.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1GroundingAttribution

Returns a new instance of GoogleCloudAiplatformV1beta1GroundingAttribution.



11914
11915
11916
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 11914

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)


11897
11898
11899
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 11897

def confidence_score
  @confidence_score
end

#retrieved_contextGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GroundingAttributionRetrievedContext

Attribution from context retrieved by the retrieval tools. Corresponds to the JSON property retrievedContext



11902
11903
11904
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 11902

def retrieved_context
  @retrieved_context
end

#segmentGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Segment

Segment of the content. Corresponds to the JSON property segment



11907
11908
11909
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 11907

def segment
  @segment
end

#webGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GroundingAttributionWeb

Attribution from the web. Corresponds to the JSON property web



11912
11913
11914
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 11912

def web
  @web
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11919
11920
11921
11922
11923
11924
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 11919

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