Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dialogflow_v2beta1/classes.rb,
generated/google/apis/dialogflow_v2beta1/representations.rb,
generated/google/apis/dialogflow_v2beta1/representations.rb
Overview
An answer from Knowledge Connector.
Instance Attribute Summary collapse
-
#answer ⇒ String
The piece of text from the
source
knowledge base document that answers this conversational query. -
#faq_question ⇒ String
The corresponding FAQ question if the answer was extracted from a FAQ Document, empty otherwise.
-
#match_confidence ⇒ Float
The system's confidence score that this Knowledge answer is a good match for this converstational query, range from 0.0 (completely uncertain) to 1.0 (completely certain).
-
#match_confidence_level ⇒ String
The system's confidence level that this knowledge answer is a good match for this conversational query.
-
#source ⇒ String
Indicates which Knowledge Document this answer was extracted from.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer
constructor
A new instance of GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer
Returns a new instance of GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer
3518 3519 3520 |
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 3518 def initialize(**args) update!(**args) end |
Instance Attribute Details
#answer ⇒ String
The piece of text from the source
knowledge base document that answers
this conversational query.
Corresponds to the JSON property answer
3481 3482 3483 |
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 3481 def answer @answer end |
#faq_question ⇒ String
The corresponding FAQ question if the answer was extracted from a FAQ
Document, empty otherwise.
Corresponds to the JSON property faqQuestion
3487 3488 3489 |
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 3487 def faq_question @faq_question end |
#match_confidence ⇒ Float
The system's confidence score that this Knowledge answer is a good match
for this converstational query, range from 0.0 (completely uncertain)
to 1.0 (completely certain).
Note: The confidence score is likely to vary somewhat (possibly even for
identical requests), as the underlying model is under constant
improvement, we may deprecate it in the future. We recommend using
match_confidence_level
which should be generally more stable.
Corresponds to the JSON property matchConfidence
3498 3499 3500 |
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 3498 def match_confidence @match_confidence end |
#match_confidence_level ⇒ String
The system's confidence level that this knowledge answer is a good match
for this conversational query.
NOTE: The confidence level for a given <query, answer>
pair may change
without notice, as it depends on models that are constantly being
improved. However, it will change less frequently than the confidence
score below, and should be preferred for referencing the quality of an
answer.
Corresponds to the JSON property matchConfidenceLevel
3509 3510 3511 |
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 3509 def match_confidence_level @match_confidence_level end |
#source ⇒ String
Indicates which Knowledge Document this answer was extracted from.
Format: projects/<Project ID>/knowledgeBases/<Knowledge Base
ID>/documents/<Document ID>
.
Corresponds to the JSON property source
3516 3517 3518 |
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 3516 def source @source end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3523 3524 3525 3526 3527 3528 3529 |
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 3523 def update!(**args) @answer = args[:answer] if args.key?(:answer) @faq_question = args[:faq_question] if args.key?(:faq_question) @match_confidence = args[:match_confidence] if args.key?(:match_confidence) @match_confidence_level = args[:match_confidence_level] if args.key?(:match_confidence_level) @source = args[:source] if args.key?(:source) end |