Discovery Engine V1BETA API - Class Google::Cloud::DiscoveryEngine::V1beta::GenerateGroundedContentResponse::Candidate::GroundingMetadata::GroundingSupport (v0.16.0)

Reference documentation and code samples for the Discovery Engine V1BETA API class Google::Cloud::DiscoveryEngine::V1beta::GenerateGroundedContentResponse::Candidate::GroundingMetadata::GroundingSupport.

Grounding info for a claim in the candidate and its support.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#claim_text

def claim_text() -> ::String
Returns
  • (::String) — Text for the claim in the candidate. Always provided when a support is found.

#claim_text=

def claim_text=(value) -> ::String
Parameter
  • value (::String) — Text for the claim in the candidate. Always provided when a support is found.
Returns
  • (::String) — Text for the claim in the candidate. Always provided when a support is found.

#support_chunk_indices

def support_chunk_indices() -> ::Array<::Integer>
Returns
  • (::Array<::Integer>) — A list of indices (into 'support_chunks') specifying the citations associated with the claim. For instance [1,3,4] means that support_chunks[1], support_chunks[3], support_chunks[4] are the chunks attributed to the claim.

#support_chunk_indices=

def support_chunk_indices=(value) -> ::Array<::Integer>
Parameter
  • value (::Array<::Integer>) — A list of indices (into 'support_chunks') specifying the citations associated with the claim. For instance [1,3,4] means that support_chunks[1], support_chunks[3], support_chunks[4] are the chunks attributed to the claim.
Returns
  • (::Array<::Integer>) — A list of indices (into 'support_chunks') specifying the citations associated with the claim. For instance [1,3,4] means that support_chunks[1], support_chunks[3], support_chunks[4] are the chunks attributed to the claim.

#support_score

def support_score() -> ::Float
Returns
  • (::Float) — A score in the range of [0, 1] describing how grounded is a specific claim in the support chunks indicated. Higher value means that the claim is better supported by the chunks.

#support_score=

def support_score=(value) -> ::Float
Parameter
  • value (::Float) — A score in the range of [0, 1] describing how grounded is a specific claim in the support chunks indicated. Higher value means that the claim is better supported by the chunks.
Returns
  • (::Float) — A score in the range of [0, 1] describing how grounded is a specific claim in the support chunks indicated. Higher value means that the claim is better supported by the chunks.