public sealed class CheckGroundingSpec : IMessage<CheckGroundingSpec>, IEquatable<CheckGroundingSpec>, IDeepCloneable<CheckGroundingSpec>, IBufferMessage, IMessageReference documentation and code samples for the Discovery Engine v1 API class CheckGroundingSpec.
Specification for the grounding check.
Implements
IMessageCheckGroundingSpec, IEquatableCheckGroundingSpec, IDeepCloneableCheckGroundingSpec, IBufferMessage, IMessageNamespace
Google.Cloud.DiscoveryEngine.V1Assembly
Google.Cloud.DiscoveryEngine.V1.dll
Constructors
CheckGroundingSpec()
public CheckGroundingSpec()CheckGroundingSpec(CheckGroundingSpec)
public CheckGroundingSpec(CheckGroundingSpec other)| Parameter | |
|---|---|
| Name | Description |
other |
CheckGroundingSpec |
Properties
CitationThreshold
public double CitationThreshold { get; set; }The threshold (in [0,1]) used for determining whether a fact must be cited for a claim in the answer candidate. Choosing a higher threshold will lead to fewer but very strong citations, while choosing a lower threshold may lead to more but somewhat weaker citations. If unset, the threshold will default to 0.6.
| Property Value | |
|---|---|
| Type | Description |
double |
|
EnableClaimLevelScore
public bool EnableClaimLevelScore { get; set; }The control flag that enables claim-level grounding score in the response.
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasCitationThreshold
public bool HasCitationThreshold { get; }Gets whether the "citation_threshold" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasEnableClaimLevelScore
public bool HasEnableClaimLevelScore { get; }Gets whether the "enable_claim_level_score" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|