Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class GroundingSupport.
Grounding support for a claim in answer_text
.
Generated from protobuf message google.cloud.discoveryengine.v1.Answer.GroundingSupport
Namespace
Google \ Cloud \ DiscoveryEngine \ V1 \ AnswerMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ start_index
int|string
Required. Index indicates the start of the claim, measured in bytes (UTF-8 unicode).
↳ end_index
int|string
Required. End of the claim, exclusive.
↳ grounding_score
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.
↳ grounding_check_required
bool
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.
↳ sources
getStartIndex
Required. Index indicates the start of the claim, measured in bytes (UTF-8 unicode).
int|string
setStartIndex
Required. Index indicates the start of the claim, measured in bytes (UTF-8 unicode).
var
int|string
$this
getEndIndex
Required. End of the claim, exclusive.
int|string
setEndIndex
Required. End of the claim, exclusive.
var
int|string
$this
getGroundingScore
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.
float
hasGroundingScore
clearGroundingScore
setGroundingScore
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.
var
float
$this
getGroundingCheckRequired
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.
bool
hasGroundingCheckRequired
clearGroundingCheckRequired
setGroundingCheckRequired
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.
var
bool
$this
getSources
Optional. Citation sources for the claim.
setSources
Optional. Citation sources for the claim.
$this