GenerativeAnswerConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)Describes configuration for generative answer.
Attributes |
|
|---|---|
| Name | Description |
result_count |
int
The number of top results to generate the answer from. Up to 10. |
model_version |
str
The model version used to generate the answer. |
model_prompt_preamble |
str
Text at the beginning of the prompt that instructs the model that generates the answer. |
max_rephrase_steps |
int
Max rephrase steps. The max number is 5 steps. If not set or set to < 1,="" it="" will="" be="" set="" to="" 1="" by="" default.=""> |
language_code |
str
Language code for Summary. Use language tags defined by BCP47 __.
Note: This is an experimental feature.
|
disable_related_questions |
bool
Whether generated answer contains suggested related questions. |
ignore_non_answer_seeking_query |
bool
Optional. Specifies whether to filter out queries that are not answer-seeking. The default value is false.
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.
|
ignore_adversarial_query |
bool
Optional. Specifies whether to filter out queries that are adversarial. |
ignore_low_relevant_content |
bool
Optional. Specifies whether to filter out queries that are not relevant to the content. |
image_source |
google.cloud.discoveryengine_v1.types.WidgetConfig.UiSettings.GenerativeAnswerConfig.ImageSource
Optional. Source of image returned in the answer. |
Classes
ImageSource
ImageSource(value)Source of image returned in the answer.