Reference documentation and code samples for the Retail V2 API class Google::Cloud::Retail::V2::GenerativeQuestionConfig.
Configuration for a single generated question.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#allowed_in_conversation
def allowed_in_conversation() -> ::Boolean
Returns
- (::Boolean) — Optional. Whether the question is asked at serving time.
#allowed_in_conversation=
def allowed_in_conversation=(value) -> ::Boolean
Parameter
- value (::Boolean) — Optional. Whether the question is asked at serving time.
Returns
- (::Boolean) — Optional. Whether the question is asked at serving time.
#catalog
def catalog() -> ::String
Returns
- (::String) — Required. Resource name of the catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}
#catalog=
def catalog=(value) -> ::String
Parameter
- value (::String) — Required. Resource name of the catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}
Returns
- (::String) — Required. Resource name of the catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}
#example_values
def example_values() -> ::Array<::String>
Returns
- (::Array<::String>) — Output only. Values that can be used to answer the question.
#facet
def facet() -> ::String
Returns
- (::String) — Required. The facet to which the question is associated.
#facet=
def facet=(value) -> ::String
Parameter
- value (::String) — Required. The facet to which the question is associated.
Returns
- (::String) — Required. The facet to which the question is associated.
#final_question
def final_question() -> ::String
Returns
- (::String) — 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.
#final_question=
def final_question=(value) -> ::String
Parameter
- value (::String) — 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.
Returns
- (::String) — 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.
#frequency
def frequency() -> ::Float
Returns
- (::Float) — Output only. The ratio of how often a question was asked.
#generated_question
def generated_question() -> ::String
Returns
- (::String) — Output only. The LLM generated question.