public sealed class Answer.Types.GroundingSupport : IMessage<Answer.Types.GroundingSupport>, IEquatable<Answer.Types.GroundingSupport>, IDeepCloneable<Answer.Types.GroundingSupport>, IBufferMessage, IMessage
Reference documentation and code samples for the Discovery Engine v1 API class Answer.Types.GroundingSupport.
Grounding support for a claim in answer_text
.
Implements
IMessageAnswerTypesGroundingSupport, IEquatableAnswerTypesGroundingSupport, IDeepCloneableAnswerTypesGroundingSupport, IBufferMessage, IMessageNamespace
Google.Cloud.DiscoveryEngine.V1Assembly
Google.Cloud.DiscoveryEngine.V1.dll
Constructors
GroundingSupport()
public GroundingSupport()
GroundingSupport(GroundingSupport)
public GroundingSupport(Answer.Types.GroundingSupport other)
Parameter | |
---|---|
Name | Description |
other |
AnswerTypesGroundingSupport |
Properties
EndIndex
public long EndIndex { get; set; }
Required. End of the claim, exclusive.
Property Value | |
---|---|
Type | Description |
long |
GroundingCheckRequired
public bool GroundingCheckRequired { get; set; }
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.
Property Value | |
---|---|
Type | Description |
bool |
GroundingScore
public double GroundingScore { get; set; }
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.
Property Value | |
---|---|
Type | Description |
double |
HasGroundingCheckRequired
public bool HasGroundingCheckRequired { get; }
Gets whether the "grounding_check_required" field is set
Property Value | |
---|---|
Type | Description |
bool |
HasGroundingScore
public bool HasGroundingScore { get; }
Gets whether the "grounding_score" field is set
Property Value | |
---|---|
Type | Description |
bool |
Sources
public RepeatedField<Answer.Types.CitationSource> Sources { get; }
Optional. Citation sources for the claim.
Property Value | |
---|---|
Type | Description |
RepeatedFieldAnswerTypesCitationSource |
StartIndex
public long StartIndex { get; set; }
Required. Index indicates the start of the claim, measured in bytes (UTF-8 unicode).
Property Value | |
---|---|
Type | Description |
long |