public sealed class GenerativeQuestionConfig : IMessage<GenerativeQuestionConfig>, IEquatable<GenerativeQuestionConfig>, IDeepCloneable<GenerativeQuestionConfig>, IBufferMessage, IMessageReference documentation and code samples for the Retail v2 API class GenerativeQuestionConfig.
Configuration for a single generated question.
Implements
IMessageGenerativeQuestionConfig, IEquatableGenerativeQuestionConfig, IDeepCloneableGenerativeQuestionConfig, IBufferMessage, IMessageNamespace
Google.Cloud.Retail.V2Assembly
Google.Cloud.Retail.V2.dll
Constructors
GenerativeQuestionConfig()
public GenerativeQuestionConfig()GenerativeQuestionConfig(GenerativeQuestionConfig)
public GenerativeQuestionConfig(GenerativeQuestionConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
GenerativeQuestionConfig |
Properties
AllowedInConversation
public bool AllowedInConversation { get; set; }Optional. Whether the question is asked at serving time.
| Property Value | |
|---|---|
| Type | Description |
bool |
|
Catalog
public string Catalog { get; set; }Required. Resource name of the catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}
| Property Value | |
|---|---|
| Type | Description |
string |
|
ExampleValues
public RepeatedField<string> ExampleValues { get; }Output only. Values that can be used to answer the question.
| Property Value | |
|---|---|
| Type | Description |
RepeatedFieldstring |
|
Facet
public string Facet { get; set; }Required. The facet to which the question is associated.
| Property Value | |
|---|---|
| Type | Description |
string |
|
FinalQuestion
public string FinalQuestion { get; set; }Optional. The question that will be used at serving time. Question can have a max length of 300 bytes. When not populated, generated_question should be used.
| Property Value | |
|---|---|
| Type | Description |
string |
|
Frequency
public float Frequency { get; set; }Output only. The ratio of how often a question was asked.
| Property Value | |
|---|---|
| Type | Description |
float |
|
GeneratedQuestion
public string GeneratedQuestion { get; set; }Output only. The LLM generated question.
| Property Value | |
|---|---|
| Type | Description |
string |
|