Config for suggestion query.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#confidence_threshold
def confidence_threshold() -> ::Float
-
(::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.
#confidence_threshold=
def confidence_threshold=(value) -> ::Float
-
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.
-
(::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.
#context_filter_settings
def context_filter_settings() -> ::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::ContextFilterSettings
- (::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::ContextFilterSettings) — Determines how recent conversation context is filtered when generating suggestions. If unspecified, no messages will be dropped.
#context_filter_settings=
def context_filter_settings=(value) -> ::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::ContextFilterSettings
- value (::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::ContextFilterSettings) — Determines how recent conversation context is filtered when generating suggestions. If unspecified, no messages will be dropped.
- (::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::ContextFilterSettings) — Determines how recent conversation context is filtered when generating suggestions. If unspecified, no messages will be dropped.
#dialogflow_query_source
def dialogflow_query_source() -> ::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::DialogflowQuerySource
- (::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::DialogflowQuerySource) — Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.
#dialogflow_query_source=
def dialogflow_query_source=(value) -> ::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::DialogflowQuerySource
- value (::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::DialogflowQuerySource) — Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.
- (::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::DialogflowQuerySource) — Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.
#document_query_source
def document_query_source() -> ::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::DocumentQuerySource
- (::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::DocumentQuerySource) — Query from knowledge base document. It is used by: SMART_REPLY, SMART_COMPOSE.
#document_query_source=
def document_query_source=(value) -> ::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::DocumentQuerySource
- value (::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::DocumentQuerySource) — Query from knowledge base document. It is used by: SMART_REPLY, SMART_COMPOSE.
- (::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::DocumentQuerySource) — Query from knowledge base document. It is used by: SMART_REPLY, SMART_COMPOSE.
#knowledge_base_query_source
def knowledge_base_query_source() -> ::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::KnowledgeBaseQuerySource
- (::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::KnowledgeBaseQuerySource) — Query from knowledgebase. It is used by: ARTICLE_SUGGESTION, FAQ.
#knowledge_base_query_source=
def knowledge_base_query_source=(value) -> ::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::KnowledgeBaseQuerySource
- value (::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::KnowledgeBaseQuerySource) — Query from knowledgebase. It is used by: ARTICLE_SUGGESTION, FAQ.
- (::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::KnowledgeBaseQuerySource) — Query from knowledgebase. It is used by: ARTICLE_SUGGESTION, FAQ.
#max_results
def max_results() -> ::Integer
- (::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
- value (::Integer) — Maximum number of results to return. Currently, if unset, defaults to 10. And the max number is 20.
- (::Integer) — Maximum number of results to return. Currently, if unset, defaults to 10. And the max number is 20.