Class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1GroundingSupport

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 support.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1GroundingSupport

Returns a new instance of GoogleCloudAiplatformV1beta1GroundingSupport.



887
888
889
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 887

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#confidence_scoresArray<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

Returns:

  • (Array<Float>)


872
873
874
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 872

def confidence_scores
  @confidence_scores
end

#grounding_chunk_indicesArray<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

Returns:

  • (Array<Fixnum>)


880
881
882
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 880

def grounding_chunk_indices
  @grounding_chunk_indices
end

#segmentGoogle::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1Segment

Segment of the content. Corresponds to the JSON property segment



885
886
887
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 885

def segment
  @segment
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



892
893
894
895
896
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 892

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