AnswerGenerationSpec(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Answer generation specification.
Attributes |
|
---|---|
Name | Description |
model_spec |
google.cloud.discoveryengine_v1beta.types.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec
Answer generation model specification. |
prompt_spec |
google.cloud.discoveryengine_v1beta.types.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec
Answer generation prompt specification. |
include_citations |
bool
Specifies whether to include citation metadata in the answer. The default value is false .
|
answer_language_code |
str
Language code for Answer. Use language tags defined by BCP47 __.
Note: This is an experimental feature.
|
ignore_adversarial_query |
bool
Specifies whether to filter out adversarial queries. The default value is false .
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 to true ,
we skip generating answers for adversarial queries and
return fallback messages instead.
|
ignore_non_answer_seeking_query |
bool
Specifies whether to filter out queries that are not answer-seeking. The default value is false .
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 to true , we skip generating answers for
non-answer seeking queries and return fallback messages
instead.
|
Classes
ModelSpec
ModelSpec(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Answer Generation Model specification.
PromptSpec
PromptSpec(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Answer generation prompt specification.