Class: Google::Apis::AiplatformV1beta1::LearningGenaiRootGroundingMetadataCitation
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::LearningGenaiRootGroundingMetadataCitation
- 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
Instance Attribute Summary collapse
-
#end_index ⇒ Fixnum
Index in the prediction output where the citation ends (exclusive).
-
#fact_index ⇒ Fixnum
Index of the fact supporting this claim.
-
#score ⇒ Float
Confidence score of this entailment.
-
#start_index ⇒ Fixnum
Index in the prediction output where the citation starts (inclusive).
Instance Method Summary collapse
-
#initialize(**args) ⇒ LearningGenaiRootGroundingMetadataCitation
constructor
A new instance of LearningGenaiRootGroundingMetadataCitation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LearningGenaiRootGroundingMetadataCitation
Returns a new instance of LearningGenaiRootGroundingMetadataCitation.
32596 32597 32598 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 32596 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end_index ⇒ Fixnum
Index in the prediction output where the citation ends (exclusive). Must be >
start_index and <= len(output).
Corresponds to the JSON property endIndex
32576 32577 32578 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 32576 def end_index @end_index end |
#fact_index ⇒ Fixnum
Index of the fact supporting this claim. Should be within the range of the
world_facts in the GenerateResponse.
Corresponds to the JSON property factIndex
32582 32583 32584 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 32582 def fact_index @fact_index end |
#score ⇒ Float
Confidence score of this entailment. Value is [0,1] with 1 is the most
confidence.
Corresponds to the JSON property score
32588 32589 32590 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 32588 def score @score end |
#start_index ⇒ Fixnum
Index in the prediction output where the citation starts (inclusive). Must be >
= 0 and < end_index.
Corresponds to the JSON property startIndex
32594 32595 32596 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 32594 def start_index @start_index end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
32601 32602 32603 32604 32605 32606 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 32601 def update!(**args) @end_index = args[:end_index] if args.key?(:end_index) @fact_index = args[:fact_index] if args.key?(:fact_index) @score = args[:score] if args.key?(:score) @start_index = args[:start_index] if args.key?(:start_index) end |