Google Cloud Ai Platform V1 Client - Class QuestionAnsweringRelevanceInput (1.39.0)

Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class QuestionAnsweringRelevanceInput.

Input for question answering relevance metric.

Generated from protobuf message google.cloud.aiplatform.v1.QuestionAnsweringRelevanceInput

Namespace

Google \ Cloud \ AIPlatform \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ metric_spec QuestionAnsweringRelevanceSpec

Required. Spec for question answering relevance score metric.

↳ instance QuestionAnsweringRelevanceInstance

Required. Question answering relevance instance.

getMetricSpec

Required. Spec for question answering relevance score metric.

Returns
Type Description
QuestionAnsweringRelevanceSpec|null

hasMetricSpec

clearMetricSpec

setMetricSpec

Required. Spec for question answering relevance score metric.

Parameter
Name Description
var QuestionAnsweringRelevanceSpec
Returns
Type Description
$this

getInstance

Required. Question answering relevance instance.

Returns
Type Description
QuestionAnsweringRelevanceInstance|null

hasInstance

clearInstance

setInstance

Required. Question answering relevance instance.

Parameter
Name Description
var QuestionAnsweringRelevanceInstance
Returns
Type Description
$this

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年12月13日 UTC.