Exemplo n.º 1
0
 // Go to https://qnamaker.ai and feed data, train & publish your QnA Knowledgebase.
 // Parameters to QnAMakerService are:
 // Required: qnaAuthKey, knowledgebaseId, endpointHostName
 // Optional: defaultMessage, scoreThreshold[Range 0.0 – 1.0]
 public BasicQnAMakerDialog() : base(new QnAMakerService(new QnAMakerAttribute(RootDialog.GetSetting("QnAAuthKey"), Utils.GetAppSetting("QnAKnowledgebaseId"), "No good match in FAQ.", 0.5, 1, Utils.GetAppSetting("QnAEndpointHostName"))))
 {
 }
 // Go to https://qnamaker.ai and feed data, train & publish your QnA Knowledgebase.
 // Parameters to QnAMakerService are:
 // Required: qnaAuthKey, knowledgebaseId, endpointHostName
 // Optional: defaultMessage, scoreThreshold[Range 0.0 – 1.0]
 public BasicQnAMakerDialog() : base(new QnAMakerService(new QnAMakerAttribute(RootDialog.GetSetting("QnAAuthKey"), ConfigurationManager.AppSettings["QnAKnowledgebaseId"], "No good match in FAQ.", 0.5, 1, ConfigurationManager.AppSettings["QnAEndpointHostName"])))
 {
 }
Exemplo n.º 3
0
 // Go to https://qnamaker.ai and feed data, train & publish your QnA Knowledgebase.
 // Parameters to QnAMakerService are:
 // Required: subscriptionKey, knowledgebaseId,
 // Optional: defaultMessage, scoreThreshold[Range 0.0 – 1.0]
 public BasicQnAMakerPreviewDialog() : base(new QnAMakerService(new QnAMakerAttribute(RootDialog.GetSetting("QnAAuthKey"), Utils.GetAppSetting("QnAKnowledgebaseId"), "No good match in FAQ.", 0.5)))
 {
 }