Class: Google::Cloud::Retail::V2::GenerativeQuestionConfig

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/retail/v2/generative_question.rb

Overview

Configuration for a single generated question.

Instance Attribute Summary collapse

Instance Attribute Details

#allowed_in_conversation::Boolean

Returns Optional. Whether the question is asked at serving time.

Returns:

  • (::Boolean)

    Optional. Whether the question is asked at serving time.



68
69
70
71
# File 'proto_docs/google/cloud/retail/v2/generative_question.rb', line 68

class GenerativeQuestionConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#catalog::String

Returns 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}



68
69
70
71
# File 'proto_docs/google/cloud/retail/v2/generative_question.rb', line 68

class GenerativeQuestionConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#example_values::Array<::String> (readonly)

Returns Output only. Values that can be used to answer the question.

Returns:

  • (::Array<::String>)

    Output only. Values that can be used to answer the question.



68
69
70
71
# File 'proto_docs/google/cloud/retail/v2/generative_question.rb', line 68

class GenerativeQuestionConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#facet::String

Returns Required. The facet to which the question is associated.

Returns:

  • (::String)

    Required. The facet to which the question is associated.



68
69
70
71
# File 'proto_docs/google/cloud/retail/v2/generative_question.rb', line 68

class GenerativeQuestionConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#final_question::String

Returns 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.



68
69
70
71
# File 'proto_docs/google/cloud/retail/v2/generative_question.rb', line 68

class GenerativeQuestionConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#frequency::Float (readonly)

Returns Output only. The ratio of how often a question was asked.

Returns:

  • (::Float)

    Output only. The ratio of how often a question was asked.



68
69
70
71
# File 'proto_docs/google/cloud/retail/v2/generative_question.rb', line 68

class GenerativeQuestionConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#generated_question::String (readonly)

Returns Output only. The LLM generated question.

Returns:

  • (::String)

    Output only. The LLM generated question.



68
69
70
71
# File 'proto_docs/google/cloud/retail/v2/generative_question.rb', line 68

class GenerativeQuestionConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end