Class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingAttribution

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/firebaseml_v2beta/classes.rb,
lib/google/apis/firebaseml_v2beta/representations.rb,
lib/google/apis/firebaseml_v2beta/representations.rb

Overview

Grounding attribution.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1GroundingAttribution

Returns a new instance of GoogleCloudAiplatformV1beta1GroundingAttribution.



753
754
755
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 753

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)


736
737
738
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 736

def confidence_score
  @confidence_score
end

#retrieved_contextGoogle::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingAttributionRetrievedContext

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



741
742
743
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 741

def retrieved_context
  @retrieved_context
end

#segmentGoogle::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Segment

Segment of the content. Corresponds to the JSON property segment



746
747
748
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 746

def segment
  @segment
end

#webGoogle::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingAttributionWeb

Attribution from the web. Corresponds to the JSON property web



751
752
753
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 751

def web
  @web
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



758
759
760
761
762
763
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 758

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