Class: Google::Cloud::DiscoveryEngine::V1::Answer::GroundingSupport

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/discoveryengine/v1/answer.rb

Overview

Grounding support for a claim in answer_text.

Instance Attribute Summary collapse

Instance Attribute Details

#end_index::Integer

Returns Required. End of the claim, exclusive.

Returns:

  • (::Integer)

    Required. End of the claim, exclusive.



126
127
128
129
# File 'proto_docs/google/cloud/discoveryengine/v1/answer.rb', line 126

class GroundingSupport
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#grounding_check_required::Boolean

Indicates that this claim required grounding check. When the system decided this claim didn't require attribution/grounding check, this field is set to false. In that case, no grounding check was done for the claim and therefore grounding_score, sources is not returned.

Returns:

  • (::Boolean)

    Indicates that this claim required grounding check. When the system decided this claim didn't require attribution/grounding check, this field is set to false. In that case, no grounding check was done for the claim and therefore grounding_score, sources is not returned.



126
127
128
129
# File 'proto_docs/google/cloud/discoveryengine/v1/answer.rb', line 126

class GroundingSupport
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#grounding_score::Float

Returns A score in the range of [0, 1] describing how grounded is a specific claim by the references. Higher value means that the claim is better supported by the reference chunks.

Returns:

  • (::Float)

    A score in the range of [0, 1] describing how grounded is a specific claim by the references. Higher value means that the claim is better supported by the reference chunks.



126
127
128
129
# File 'proto_docs/google/cloud/discoveryengine/v1/answer.rb', line 126

class GroundingSupport
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#sources::Array<::Google::Cloud::DiscoveryEngine::V1::Answer::CitationSource>

Returns Optional. Citation sources for the claim.

Returns:



126
127
128
129
# File 'proto_docs/google/cloud/discoveryengine/v1/answer.rb', line 126

class GroundingSupport
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#start_index::Integer

Returns Required. Index indicates the start of the claim, measured in bytes (UTF-8 unicode).

Returns:

  • (::Integer)

    Required. Index indicates the start of the claim, measured in bytes (UTF-8 unicode).



126
127
128
129
# File 'proto_docs/google/cloud/discoveryengine/v1/answer.rb', line 126

class GroundingSupport
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end