Google Cloud Discovery Engine V1 Client - Class GroundingSpec (1.5.0)

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 \ AnswerQueryRequest

Methods

__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 false. When this field is set to true, returned answer will have grounding_score and will contain GroundingSupports for each claim.

↳ 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

setFilteringLevel

Optional. Specifies whether to enable the filtering based on grounding score and at what level.

Parameter
Name Description
var int
Returns
Type Description
$this