Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig (v0.30.0)

Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig.

Config for suggestion query.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#confidence_threshold

def confidence_threshold() -> ::Float
Returns
  • (::Float) — Confidence threshold of query result.

    Agent Assist gives each suggestion a score in the range [0.0, 1.0], based on the relevance between the suggestion and the current conversation context. A score of 0.0 has no relevance, while a score of 1.0 has high relevance. Only suggestions with a score greater than or equal to the value of this field are included in the results.

    For a baseline model (the default), the recommended value is in the range [0.05, 0.1].

    For a custom model, there is no recommended value. Tune this value by starting from a very low value and slowly increasing until you have desired results.

    If this field is not set, it defaults to 0.0, which means that all suggestions are returned.

    Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE, KNOWLEDGE_SEARCH, KNOWLEDGE_ASSIST, ENTITY_EXTRACTION.

#confidence_threshold=

def confidence_threshold=(value) -> ::Float
Parameter
  • value (::Float) — Confidence threshold of query result.

    Agent Assist gives each suggestion a score in the range [0.0, 1.0], based on the relevance between the suggestion and the current conversation context. A score of 0.0 has no relevance, while a score of 1.0 has high relevance. Only suggestions with a score greater than or equal to the value of this field are included in the results.

    For a baseline model (the default), the recommended value is in the range [0.05, 0.1].

    For a custom model, there is no recommended value. Tune this value by starting from a very low value and slowly increasing until you have desired results.

    If this field is not set, it defaults to 0.0, which means that all suggestions are returned.

    Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE, KNOWLEDGE_SEARCH, KNOWLEDGE_ASSIST, ENTITY_EXTRACTION.

Returns
  • (::Float) — Confidence threshold of query result.

    Agent Assist gives each suggestion a score in the range [0.0, 1.0], based on the relevance between the suggestion and the current conversation context. A score of 0.0 has no relevance, while a score of 1.0 has high relevance. Only suggestions with a score greater than or equal to the value of this field are included in the results.

    For a baseline model (the default), the recommended value is in the range [0.05, 0.1].

    For a custom model, there is no recommended value. Tune this value by starting from a very low value and slowly increasing until you have desired results.

    If this field is not set, it defaults to 0.0, which means that all suggestions are returned.

    Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE, KNOWLEDGE_SEARCH, KNOWLEDGE_ASSIST, ENTITY_EXTRACTION.

#context_filter_settings

def context_filter_settings() -> ::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::ContextFilterSettings
Returns

#context_filter_settings=

def context_filter_settings=(value) -> ::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::ContextFilterSettings
Parameter
Returns

#dialogflow_query_source

def dialogflow_query_source() -> ::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::DialogflowQuerySource
Returns

#dialogflow_query_source=

def dialogflow_query_source=(value) -> ::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::DialogflowQuerySource
Parameter
Returns

#document_query_source

def document_query_source() -> ::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::DocumentQuerySource
Returns

#document_query_source=

def document_query_source=(value) -> ::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::DocumentQuerySource
Parameter
Returns

#knowledge_base_query_source

def knowledge_base_query_source() -> ::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::KnowledgeBaseQuerySource
Returns

#knowledge_base_query_source=

def knowledge_base_query_source=(value) -> ::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::KnowledgeBaseQuerySource
Parameter
Returns

#max_results

def max_results() -> ::Integer
Returns
  • (::Integer) — Maximum number of results to return. Currently, if unset, defaults to 10. And the max number is 20.

#max_results=

def max_results=(value) -> ::Integer
Parameter
  • value (::Integer) — Maximum number of results to return. Currently, if unset, defaults to 10. And the max number is 20.
Returns
  • (::Integer) — Maximum number of results to return. Currently, if unset, defaults to 10. And the max number is 20.