Class: Google::Cloud::Dialogflow::V2::AgentAssistantFeedback
- Inherits:
-
Object
- Object
- Google::Cloud::Dialogflow::V2::AgentAssistantFeedback
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/dialogflow/v2/answer_record.rb
Overview
Detail feedback of Agent Assist result.
Defined Under Namespace
Modules: AnswerRelevance, DocumentCorrectness, DocumentEfficiency
Instance Attribute Summary collapse
-
#answer_relevance ⇒ ::Google::Cloud::Dialogflow::V2::AgentAssistantFeedback::AnswerRelevance
Optional.
-
#document_correctness ⇒ ::Google::Cloud::Dialogflow::V2::AgentAssistantFeedback::DocumentCorrectness
Optional.
-
#document_efficiency ⇒ ::Google::Cloud::Dialogflow::V2::AgentAssistantFeedback::DocumentEfficiency
Optional.
Instance Attribute Details
#answer_relevance ⇒ ::Google::Cloud::Dialogflow::V2::AgentAssistantFeedback::AnswerRelevance
Returns Optional. Whether or not the suggested answer is relevant.
For example:
- Query: "Can I change my mailing address?"
- Suggested document says: "Items must be returned/exchanged within 60 days of the purchase date."
- answer_relevance: AnswerRelevance.IRRELEVANT.
197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 |
# File 'proto_docs/google/cloud/dialogflow/v2/answer_record.rb', line 197 class AgentAssistantFeedback include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Relevance of an answer. module AnswerRelevance # Answer relevance unspecified. ANSWER_RELEVANCE_UNSPECIFIED = 0 # Answer is irrelevant to query. IRRELEVANT = 1 # Answer is relevant to query. RELEVANT = 2 end # Correctness of document. module DocumentCorrectness # Document correctness unspecified. DOCUMENT_CORRECTNESS_UNSPECIFIED = 0 # Information in document is incorrect. INCORRECT = 1 # Information in document is correct. CORRECT = 2 end # Efficiency of document. module DocumentEfficiency # Document efficiency unspecified. DOCUMENT_EFFICIENCY_UNSPECIFIED = 0 # Document is inefficient. INEFFICIENT = 1 # Document is efficient. EFFICIENT = 2 end end |
#document_correctness ⇒ ::Google::Cloud::Dialogflow::V2::AgentAssistantFeedback::DocumentCorrectness
Returns Optional. Whether or not the information in the document is correct.
For example:
- Query: "Can I return the package in 2 days once received?"
- Suggested document says: "Items must be returned/exchanged within 60 days of the purchase date."
- Ground truth: "No return or exchange is allowed."
- [document_correctness]: INCORRECT.
197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 |
# File 'proto_docs/google/cloud/dialogflow/v2/answer_record.rb', line 197 class AgentAssistantFeedback include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Relevance of an answer. module AnswerRelevance # Answer relevance unspecified. ANSWER_RELEVANCE_UNSPECIFIED = 0 # Answer is irrelevant to query. IRRELEVANT = 1 # Answer is relevant to query. RELEVANT = 2 end # Correctness of document. module DocumentCorrectness # Document correctness unspecified. DOCUMENT_CORRECTNESS_UNSPECIFIED = 0 # Information in document is incorrect. INCORRECT = 1 # Information in document is correct. CORRECT = 2 end # Efficiency of document. module DocumentEfficiency # Document efficiency unspecified. DOCUMENT_EFFICIENCY_UNSPECIFIED = 0 # Document is inefficient. INEFFICIENT = 1 # Document is efficient. EFFICIENT = 2 end end |
#document_efficiency ⇒ ::Google::Cloud::Dialogflow::V2::AgentAssistantFeedback::DocumentEfficiency
Returns Optional. Whether or not the suggested document is efficient. For example, if the document is poorly written, hard to understand, hard to use or too long to find useful information, document_efficiency is DocumentEfficiency.INEFFICIENT.
197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 |
# File 'proto_docs/google/cloud/dialogflow/v2/answer_record.rb', line 197 class AgentAssistantFeedback include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Relevance of an answer. module AnswerRelevance # Answer relevance unspecified. ANSWER_RELEVANCE_UNSPECIFIED = 0 # Answer is irrelevant to query. IRRELEVANT = 1 # Answer is relevant to query. RELEVANT = 2 end # Correctness of document. module DocumentCorrectness # Document correctness unspecified. DOCUMENT_CORRECTNESS_UNSPECIFIED = 0 # Information in document is incorrect. INCORRECT = 1 # Information in document is correct. CORRECT = 2 end # Efficiency of document. module DocumentEfficiency # Document efficiency unspecified. DOCUMENT_EFFICIENCY_UNSPECIFIED = 0 # Document is inefficient. INEFFICIENT = 1 # Document is efficient. EFFICIENT = 2 end end |