public sealed class WidgetConfig.Types.UiSettings.Types.GenerativeAnswerConfig : IMessage<WidgetConfig.Types.UiSettings.Types.GenerativeAnswerConfig>, IEquatable<WidgetConfig.Types.UiSettings.Types.GenerativeAnswerConfig>, IDeepCloneable<WidgetConfig.Types.UiSettings.Types.GenerativeAnswerConfig>, IBufferMessage, IMessageReference documentation and code samples for the Discovery Engine v1 API class WidgetConfig.Types.UiSettings.Types.GenerativeAnswerConfig.
Describes configuration for generative answer.
Implements
IMessageWidgetConfigTypesUiSettingsTypesGenerativeAnswerConfig, IEquatableWidgetConfigTypesUiSettingsTypesGenerativeAnswerConfig, IDeepCloneableWidgetConfigTypesUiSettingsTypesGenerativeAnswerConfig, IBufferMessage, IMessageNamespace
Google.Cloud.DiscoveryEngine.V1Assembly
Google.Cloud.DiscoveryEngine.V1.dll
Constructors
GenerativeAnswerConfig()
public GenerativeAnswerConfig()GenerativeAnswerConfig(GenerativeAnswerConfig)
public GenerativeAnswerConfig(WidgetConfig.Types.UiSettings.Types.GenerativeAnswerConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
WidgetConfigTypesUiSettingsTypesGenerativeAnswerConfig |
Properties
DisableRelatedQuestions
public bool DisableRelatedQuestions { get; set; }Whether generated answer contains suggested related questions.
| Property Value | |
|---|---|
| Type | Description |
bool |
|
IgnoreAdversarialQuery
public bool IgnoreAdversarialQuery { get; set; }Optional. Specifies whether to filter out queries that are adversarial.
| Property Value | |
|---|---|
| Type | Description |
bool |
|
IgnoreLowRelevantContent
public bool IgnoreLowRelevantContent { get; set; }Optional. Specifies whether to filter out queries that are not relevant to the content.
| Property Value | |
|---|---|
| Type | Description |
bool |
|
IgnoreNonAnswerSeekingQuery
public bool IgnoreNonAnswerSeekingQuery { get; set; }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.
| Property Value | |
|---|---|
| Type | Description |
bool |
|
ImageSource
public WidgetConfig.Types.UiSettings.Types.GenerativeAnswerConfig.Types.ImageSource ImageSource { get; set; }Optional. Source of image returned in the answer.
| Property Value | |
|---|---|
| Type | Description |
WidgetConfigTypesUiSettingsTypesGenerativeAnswerConfigTypesImageSource |
|
LanguageCode
public string LanguageCode { get; set; }Language code for Summary. Use language tags defined by BCP47. Note: This is an experimental feature.
| Property Value | |
|---|---|
| Type | Description |
string |
|
MaxRephraseSteps
public int MaxRephraseSteps { get; set; }Max rephrase steps. The max number is 5 steps. If not set or set to < 1, it will be set to 1 by default.
| Property Value | |
|---|---|
| Type | Description |
int |
|
ModelPromptPreamble
public string ModelPromptPreamble { get; set; }Text at the beginning of the prompt that instructs the model that generates the answer.
| Property Value | |
|---|---|
| Type | Description |
string |
|
ModelVersion
public string ModelVersion { get; set; }The model version used to generate the answer.
| Property Value | |
|---|---|
| Type | Description |
string |
|
ResultCount
public int ResultCount { get; set; }The number of top results to generate the answer from. Up to 10.
| Property Value | |
|---|---|
| Type | Description |
int |
|