public sealed class CheckGroundingResponse.Types.Claim : IMessage<CheckGroundingResponse.Types.Claim>, IEquatable<CheckGroundingResponse.Types.Claim>, IDeepCloneable<CheckGroundingResponse.Types.Claim>, IBufferMessage, IMessage
Reference documentation and code samples for the Discovery Engine v1 API class CheckGroundingResponse.Types.Claim.
Text and citation info for a claim in the answer candidate.
Implements
IMessageCheckGroundingResponseTypesClaim, IEquatableCheckGroundingResponseTypesClaim, IDeepCloneableCheckGroundingResponseTypesClaim, IBufferMessage, IMessageNamespace
Google.Cloud.DiscoveryEngine.V1Assembly
Google.Cloud.DiscoveryEngine.V1.dll
Constructors
Claim()
public Claim()
Claim(Claim)
public Claim(CheckGroundingResponse.Types.Claim other)
Parameter | |
---|---|
Name | Description |
other |
CheckGroundingResponseTypesClaim |
Properties
CitationIndices
public RepeatedField<int> CitationIndices { get; }
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.
Property Value | |
---|---|
Type | Description |
RepeatedFieldint |
ClaimText
public string ClaimText { get; set; }
Text for the claim in the answer candidate. Always provided regardless of whether citations or anti-citations are found.
Property Value | |
---|---|
Type | Description |
string |
EndPos
public int EndPos { get; set; }
Position indicating the end of the claim in the answer candidate, exclusive.
Property Value | |
---|---|
Type | Description |
int |
GroundingCheckRequired
public bool GroundingCheckRequired { get; set; }
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][google.cloud.discoveryengine.v1.CheckGroundingResponse.Claim.citation_indices], [anti_citation_indices][google.cloud.discoveryengine.v1.CheckGroundingResponse.Claim.anti_citation_indices], and [score][google.cloud.discoveryengine.v1.CheckGroundingResponse.Claim.score] should not be returned.
Property Value | |
---|---|
Type | Description |
bool |
HasEndPos
public bool HasEndPos { get; }
Gets whether the "end_pos" field is set
Property Value | |
---|---|
Type | Description |
bool |
HasGroundingCheckRequired
public bool HasGroundingCheckRequired { get; }
Gets whether the "grounding_check_required" field is set
Property Value | |
---|---|
Type | Description |
bool |
HasStartPos
public bool HasStartPos { get; }
Gets whether the "start_pos" field is set
Property Value | |
---|---|
Type | Description |
bool |
StartPos
public int StartPos { get; set; }
Position indicating the start of the claim in the answer candidate, measured in bytes.
Property Value | |
---|---|
Type | Description |
int |