Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class GroundingSpec.
Grounding specification.
Generated from protobuf message google.cloud.discoveryengine.v1.AnswerQueryRequest.GroundingSpec
Namespace
Google \ Cloud \ DiscoveryEngine \ V1 \ AnswerQueryRequestMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ include_grounding_supports |
bool
Optional. Specifies whether to include grounding_supports in the answer. The default value is |
↳ filtering_level |
int
Optional. Specifies whether to enable the filtering based on grounding score and at what level. |
getIncludeGroundingSupports
Optional. Specifies whether to include grounding_supports in the answer.
The default value is false.
When this field is set to true, returned answer will have
grounding_score and will contain GroundingSupports for each claim.
| Returns | |
|---|---|
| Type | Description |
bool |
|
setIncludeGroundingSupports
Optional. Specifies whether to include grounding_supports in the answer.
The default value is false.
When this field is set to true, returned answer will have
grounding_score and will contain GroundingSupports for each claim.
| Parameter | |
|---|---|
| Name | Description |
var |
bool
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getFilteringLevel
Optional. Specifies whether to enable the filtering based on grounding score and at what level.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type FilteringLevel. |
setFilteringLevel
Optional. Specifies whether to enable the filtering based on grounding score and at what level.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type FilteringLevel. |
| Returns | |
|---|---|
| Type | Description |
$this |
|