Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GroundingAttribution
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GroundingAttribution
- 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
-
#confidence_score ⇒ Float
Optional.
-
#retrieved_context ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GroundingAttributionRetrievedContext
Attribution from context retrieved by the retrieval tools.
-
#segment ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Segment
Segment of the content.
-
#web ⇒ Google::Apis::AiplatformV1beta1::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.
11914 11915 11916 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 11914 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
11897 11898 11899 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 11897 def confidence_score @confidence_score end |
#retrieved_context ⇒ Google::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 |
#segment ⇒ Google::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 |
#web ⇒ Google::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 |