Class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingAttribution
- Inherits:
-
Object
- Object
- Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingAttribution
- 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
-
#confidence_score ⇒ Float
Optional.
-
#retrieved_context ⇒ Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingAttributionRetrievedContext
Attribution from context retrieved by the retrieval tools.
-
#segment ⇒ Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Segment
Segment of the content.
-
#web ⇒ Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingAttributionWeb
Attribution from the web.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1GroundingAttribution
constructor
A new instance of GoogleCloudAiplatformV1beta1GroundingAttribution.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_score ⇒ Float
Optional. Output only. Confidence score of the attribution. Ranges from 0 to 1.
1 is the most confident.
Corresponds to the JSON property confidenceScore
736 737 738 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 736 def confidence_score @confidence_score end |
#retrieved_context ⇒ Google::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 |
#segment ⇒ Google::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 |
#web ⇒ Google::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 |