Class: Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::QueryUnderstandingSpec
- Inherits:
-
Object
- Object
- Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::QueryUnderstandingSpec
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/discoveryengine/v1beta/conversational_search_service.rb
Overview
Query understanding specification.
Defined Under Namespace
Classes: QueryClassificationSpec, QueryRephraserSpec
Instance Attribute Summary collapse
-
#query_classification_spec ⇒ ::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::QueryUnderstandingSpec::QueryClassificationSpec
Query classification specification.
-
#query_rephraser_spec ⇒ ::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::QueryUnderstandingSpec::QueryRephraserSpec
Query rephraser specification.
Instance Attribute Details
#query_classification_spec ⇒ ::Google::Cloud::DiscoveryEngine::V1beta::AnswerQueryRequest::QueryUnderstandingSpec::QueryClassificationSpec
Returns Query classification specification.
532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 |
# File 'proto_docs/google/cloud/discoveryengine/v1beta/conversational_search_service.rb', line 532 class QueryUnderstandingSpec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Query classification specification. # @!attribute [rw] types # @return [::Array<::Google::Cloud::DiscoveryEngine::V1beta::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. NON_ANSWER_SEEKING_QUERY = 2 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 10 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::V1beta::AnswerQueryRequest::QueryUnderstandingSpec::QueryRephraserSpec
Returns Query rephraser specification.
532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 |
# File 'proto_docs/google/cloud/discoveryengine/v1beta/conversational_search_service.rb', line 532 class QueryUnderstandingSpec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Query classification specification. # @!attribute [rw] types # @return [::Array<::Google::Cloud::DiscoveryEngine::V1beta::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. NON_ANSWER_SEEKING_QUERY = 2 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 10 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 |