View Source GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1CheckGroundingResponseClaim (google_api_discovery_engine v0.27.0)

Text and citation info for a claim in the answer candidate.

Attributes

  • citationIndices (type: list(integer()), default: nil) - A list of indices (into 'cited_chunks') specifying the citations associated with the claim. For instance [1,3,4] means that cited_chunks[1], cited_chunks[3], cited_chunks[4] are the facts cited supporting for the claim. A citation to a fact indicates that the claim is supported by the fact.
  • claimText (type: String.t, default: nil) - Text for the claim in the answer candidate. Always provided regardless of whether citations or anti-citations are found.
  • endPos (type: integer(), default: nil) - Position indicating the end of the claim in the answer candidate, exclusive.
  • groundingCheckRequired (type: boolean(), default: nil) - Indicates that this claim required grounding check. When the system decided this claim doesn't require attribution/grounding check, this field will be set to false. In that case, no grounding check was done for the claim and therefore citation_indices should not be returned.
  • startPos (type: integer(), default: nil) - Position indicating the start of the claim in the answer candidate, measured in bytes.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() ::
  %GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1CheckGroundingResponseClaim{
    citationIndices: [integer()] | nil,
    claimText: String.t() | nil,
    endPos: integer() | nil,
    groundingCheckRequired: boolean() | nil,
    startPos: integer() | nil
  }

Functions

decode(value, options)

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

Unwrap a decoded JSON object into its complex fields.