Class: Google::Cloud::DiscoveryEngine::V1beta::CheckGroundingResponse
- Inherits:
-
Object
- Object
- Google::Cloud::DiscoveryEngine::V1beta::CheckGroundingResponse
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/discoveryengine/v1beta/grounded_generation_service.rb
Overview
Response message for the GroundedGenerationService.CheckGrounding method.
Defined Under Namespace
Classes: Claim
Instance Attribute Summary collapse
-
#cited_chunks ⇒ ::Array<::Google::Cloud::DiscoveryEngine::V1beta::FactChunk>
List of facts cited across all claims in the answer candidate.
-
#claims ⇒ ::Array<::Google::Cloud::DiscoveryEngine::V1beta::CheckGroundingResponse::Claim>
Claim texts and citation info across all claims in the answer candidate.
-
#support_score ⇒ ::Float
The support score for the input answer candidate.
Instance Attribute Details
#cited_chunks ⇒ ::Array<::Google::Cloud::DiscoveryEngine::V1beta::FactChunk>
Returns List of facts cited across all claims in the answer candidate. These are derived from the facts supplied in the request.
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
# File 'proto_docs/google/cloud/discoveryengine/v1beta/grounded_generation_service.rb', line 74 class CheckGroundingResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Text and citation info for a claim in the answer candidate. # @!attribute [rw] start_pos # @return [::Integer] # Position indicating the start of the claim in the answer candidate, # measured in bytes. # @!attribute [rw] end_pos # @return [::Integer] # Position indicating the end of the claim in the answer candidate, # exclusive. # @!attribute [rw] claim_text # @return [::String] # Text for the claim in the answer candidate. Always provided regardless of # whether citations or anti-citations are found. # @!attribute [rw] citation_indices # @return [::Array<::Integer>] # 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. class Claim include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#claims ⇒ ::Array<::Google::Cloud::DiscoveryEngine::V1beta::CheckGroundingResponse::Claim>
Returns Claim texts and citation info across all claims in the answer candidate.
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
# File 'proto_docs/google/cloud/discoveryengine/v1beta/grounded_generation_service.rb', line 74 class CheckGroundingResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Text and citation info for a claim in the answer candidate. # @!attribute [rw] start_pos # @return [::Integer] # Position indicating the start of the claim in the answer candidate, # measured in bytes. # @!attribute [rw] end_pos # @return [::Integer] # Position indicating the end of the claim in the answer candidate, # exclusive. # @!attribute [rw] claim_text # @return [::String] # Text for the claim in the answer candidate. Always provided regardless of # whether citations or anti-citations are found. # @!attribute [rw] citation_indices # @return [::Array<::Integer>] # 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. class Claim include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#support_score ⇒ ::Float
Returns The support score for the input answer candidate. Higher the score, higher is the fraction of claims that are supported by the provided facts. This is always set when a response is returned.
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
# File 'proto_docs/google/cloud/discoveryengine/v1beta/grounded_generation_service.rb', line 74 class CheckGroundingResponse include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Text and citation info for a claim in the answer candidate. # @!attribute [rw] start_pos # @return [::Integer] # Position indicating the start of the claim in the answer candidate, # measured in bytes. # @!attribute [rw] end_pos # @return [::Integer] # Position indicating the end of the claim in the answer candidate, # exclusive. # @!attribute [rw] claim_text # @return [::String] # Text for the claim in the answer candidate. Always provided regardless of # whether citations or anti-citations are found. # @!attribute [rw] citation_indices # @return [::Array<::Integer>] # 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. class Claim include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |