Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GroundingSupport
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GroundingSupport
- 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 support.
Instance Attribute Summary collapse
-
#confidence_scores ⇒ Array<Float>
Confidence score of the support references.
-
#grounding_chunk_indices ⇒ Array<Fixnum>
A list of indices (into 'grounding_chunk') specifying the citations associated with the claim.
-
#segment ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Segment
Segment of the content.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1GroundingSupport
constructor
A new instance of GoogleCloudAiplatformV1GroundingSupport.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1GroundingSupport
Returns a new instance of GoogleCloudAiplatformV1GroundingSupport.
11248 11249 11250 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 11248 def initialize(**args) update!(**args) end |
Instance Attribute Details
#confidence_scores ⇒ Array<Float>
Confidence score of the support references. Ranges from 0 to 1. 1 is the most
confident. This list must have the same size as the grounding_chunk_indices.
Corresponds to the JSON property confidenceScores
11233 11234 11235 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 11233 def confidence_scores @confidence_scores end |
#grounding_chunk_indices ⇒ Array<Fixnum>
A list of indices (into 'grounding_chunk') specifying the citations associated
with the claim. For instance [1,3,4] means that grounding_chunk[1],
grounding_chunk[3], grounding_chunk[4] are the retrieved content attributed to
the claim.
Corresponds to the JSON property groundingChunkIndices
11241 11242 11243 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 11241 def grounding_chunk_indices @grounding_chunk_indices end |
#segment ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1Segment
Segment of the content.
Corresponds to the JSON property segment
11246 11247 11248 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 11246 def segment @segment end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11253 11254 11255 11256 11257 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 11253 def update!(**args) @confidence_scores = args[:confidence_scores] if args.key?(:confidence_scores) @grounding_chunk_indices = args[:grounding_chunk_indices] if args.key?(:grounding_chunk_indices) @segment = args[:segment] if args.key?(:segment) end |