Retail v2 API - Class GenerativeQuestionConfig (2.12.0)

public sealed class GenerativeQuestionConfig : IMessage<GenerativeQuestionConfig>, IEquatable<GenerativeQuestionConfig>, IDeepCloneable<GenerativeQuestionConfig>, IBufferMessage, IMessage

Reference documentation and code samples for the Retail v2 API class GenerativeQuestionConfig.

Configuration for a single generated question.

Inheritance

object > GenerativeQuestionConfig

Namespace

Google.Cloud.Retail.V2

Assembly

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