View Source GoogleApi.AIPlatform.V1.Model.LearningGenaiRootGroundingMetadataCitation (google_api_ai_platform v0.2.0)

Attributes

  • endIndex (type: integer(), default: nil) - Index in the prediction output where the citation ends (exclusive). Must be > start_index and < len(output).
  • factIndex (type: integer(), default: nil) - Index of the fact supporting this claim. Should be within the range of the world_facts in the GenerateResponse.
  • score (type: float(), default: nil) - Confidence score of this entailment. Value is [0,1] with 1 is the most confidence.
  • startIndex (type: integer(), default: nil) - Index in the prediction output where the citation starts (inclusive). Must be >= 0 and < end_index.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.AIPlatform.V1.Model.LearningGenaiRootGroundingMetadataCitation{
    endIndex: integer() | nil,
    factIndex: integer() | nil,
    score: float() | nil,
    startIndex: integer() | nil
  }

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.