Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GroundingSupport
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GroundingSupport
- 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 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::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Segment
Segment of the content.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1GroundingSupport
constructor
A new instance of GoogleCloudAiplatformV1beta1GroundingSupport.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1GroundingSupport
Returns a new instance of GoogleCloudAiplatformV1beta1GroundingSupport.
11622 11623 11624 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 11622 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
11607 11608 11609 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 11607 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
11615 11616 11617 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 11615 def grounding_chunk_indices @grounding_chunk_indices end |
#segment ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Segment
Segment of the content.
Corresponds to the JSON property segment
11620 11621 11622 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 11620 def segment @segment end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11627 11628 11629 11630 11631 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 11627 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 |