Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidateGroundingMetadata

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/discoveryengine_v1/classes.rb,
lib/google/apis/discoveryengine_v1/representations.rb,
lib/google/apis/discoveryengine_v1/representations.rb

Overview

Citation for the generated content.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidateGroundingMetadata

Returns a new instance of GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidateGroundingMetadata.



5726
5727
5728
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5726

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

Instance Attribute Details

#grounding_supportArray<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidateGroundingMetadataGroundingSupport>

GroundingSupport across all claims in the answer candidate. An support to a fact indicates that the claim is supported by the fact. Corresponds to the JSON property groundingSupport



5700
5701
5702
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5700

def grounding_support
  @grounding_support
end

#retrieval_metadataArray<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidateGroundingMetadataRetrievalMetadata>

Retrieval metadata to provide an understanding in the retrieval steps performed by the model. There can be multiple such messages which can correspond to different parts of the retrieval. This is a mechanism used to ensure transparency to our users. Corresponds to the JSON property retrievalMetadata



5708
5709
5710
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5708

def 
  @retrieval_metadata
end

#search_entry_pointGoogle::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GenerateGroundedContentResponseCandidateGroundingMetadataSearchEntryPoint

Google search entry point. Corresponds to the JSON property searchEntryPoint



5713
5714
5715
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5713

def search_entry_point
  @search_entry_point
end

#support_chunksArray<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1FactChunk>

List of chunks to be attributed across all claims in the candidate. These are derived from the grounding sources supplied in the request. Corresponds to the JSON property supportChunks



5719
5720
5721
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5719

def support_chunks
  @support_chunks
end

#web_search_queriesArray<String>

Web search queries for the following-up web search. Corresponds to the JSON property webSearchQueries

Returns:

  • (Array<String>)


5724
5725
5726
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5724

def web_search_queries
  @web_search_queries
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5731
5732
5733
5734
5735
5736
5737
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5731

def update!(**args)
  @grounding_support = args[:grounding_support] if args.key?(:grounding_support)
  @retrieval_metadata = args[:retrieval_metadata] if args.key?(:retrieval_metadata)
  @search_entry_point = args[:search_entry_point] if args.key?(:search_entry_point)
  @support_chunks = args[:support_chunks] if args.key?(:support_chunks)
  @web_search_queries = args[:web_search_queries] if args.key?(:web_search_queries)
end