Class: Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::QueryUnderstandingSpec

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/discoveryengine/v1/conversational_search_service.rb

Overview

Query understanding specification.

Defined Under Namespace

Classes: QueryClassificationSpec, QueryRephraserSpec

Instance Attribute Summary collapse

Instance Attribute Details

#query_classification_spec::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::QueryUnderstandingSpec::QueryClassificationSpec

Returns Query classification specification.



607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
# File 'proto_docs/google/cloud/discoveryengine/v1/conversational_search_service.rb', line 607

class QueryUnderstandingSpec
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Query classification specification.
  # @!attribute [rw] types
  #   @return [::Array<::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::QueryUnderstandingSpec::QueryClassificationSpec::Type>]
  #     Enabled query classification types.
  class QueryClassificationSpec
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Query classification types.
    module Type
      # Unspecified query classification type.
      TYPE_UNSPECIFIED = 0

      # Adversarial query classification type.
      ADVERSARIAL_QUERY = 1

      # Non-answer-seeking query classification type, for chit chat.
      NON_ANSWER_SEEKING_QUERY = 2

      # Jail-breaking query classification type.
      JAIL_BREAKING_QUERY = 3

      # Non-answer-seeking query classification type, for no clear intent.
      NON_ANSWER_SEEKING_QUERY_V2 = 4
    end
  end

  # Query rephraser specification.
  # @!attribute [rw] disable
  #   @return [::Boolean]
  #     Disable query rephraser.
  # @!attribute [rw] max_rephrase_steps
  #   @return [::Integer]
  #     Max rephrase steps.
  #     The max number is 5 steps.
  #     If not set or set to < 1, it will be set to 1 by default.
  class QueryRephraserSpec
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#query_rephraser_spec::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::QueryUnderstandingSpec::QueryRephraserSpec

Returns Query rephraser specification.



607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
# File 'proto_docs/google/cloud/discoveryengine/v1/conversational_search_service.rb', line 607

class QueryUnderstandingSpec
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Query classification specification.
  # @!attribute [rw] types
  #   @return [::Array<::Google::Cloud::DiscoveryEngine::V1::AnswerQueryRequest::QueryUnderstandingSpec::QueryClassificationSpec::Type>]
  #     Enabled query classification types.
  class QueryClassificationSpec
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # Query classification types.
    module Type
      # Unspecified query classification type.
      TYPE_UNSPECIFIED = 0

      # Adversarial query classification type.
      ADVERSARIAL_QUERY = 1

      # Non-answer-seeking query classification type, for chit chat.
      NON_ANSWER_SEEKING_QUERY = 2

      # Jail-breaking query classification type.
      JAIL_BREAKING_QUERY = 3

      # Non-answer-seeking query classification type, for no clear intent.
      NON_ANSWER_SEEKING_QUERY_V2 = 4
    end
  end

  # Query rephraser specification.
  # @!attribute [rw] disable
  #   @return [::Boolean]
  #     Disable query rephraser.
  # @!attribute [rw] max_rephrase_steps
  #   @return [::Integer]
  #     Max rephrase steps.
  #     The max number is 5 steps.
  #     If not set or set to < 1, it will be set to 1 by default.
  class QueryRephraserSpec
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end