View Source GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpec (google_api_discovery_engine v0.15.0)
Answer generation specification.
Attributes
-
answerLanguageCode
(type:String.t
, default:nil
) - Language code for Answer. Use language tags defined by BCP47. Note: This is an experimental feature. -
ignoreAdversarialQuery
(type:boolean()
, default:nil
) - Specifies whether to filter out adversarial queries. The default value isfalse
. Google employs search-query classification to detect adversarial queries. No answer is returned if the search query is classified as an adversarial query. For example, a user might ask a question regarding negative comments about the company or submit a query designed to generate unsafe, policy-violating output. If this field is set totrue
, we skip generating answers for adversarial queries and return fallback messages instead. -
ignoreLowRelevantContent
(type:boolean()
, default:nil
) - Specifies whether to filter out queries that have low relevance. If this field is set tofalse
, all search results are used regardless of relevance to generate answers. If set totrue
or unset, the behavior will be determined automatically by the service. -
ignoreNonAnswerSeekingQuery
(type:boolean()
, default:nil
) - Specifies whether to filter out queries that are not answer-seeking. The default value isfalse
. Google employs search-query classification to detect answer-seeking queries. No answer is returned if the search query is classified as a non-answer seeking query. If this field is set totrue
, we skip generating answers for non-answer seeking queries and return fallback messages instead. -
includeCitations
(type:boolean()
, default:nil
) - Specifies whether to include citation metadata in the answer. The default value isfalse
. -
modelSpec
(type:GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpecModelSpec.t
, default:nil
) - Answer generation model specification. -
promptSpec
(type:GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpecPromptSpec.t
, default:nil
) - Answer generation prompt specification.
Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Types
@type t() :: %GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpec{ answerLanguageCode: String.t() | nil, ignoreAdversarialQuery: boolean() | nil, ignoreLowRelevantContent: boolean() | nil, ignoreNonAnswerSeekingQuery: boolean() | nil, includeCitations: boolean() | nil, modelSpec: GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpecModelSpec.t() | nil, promptSpec: GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpecPromptSpec.t() | nil }
Functions
Unwrap a decoded JSON object into its complex fields.