Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
Adding QnAScorable bots in the Readme file (#78)
Browse files Browse the repository at this point in the history
* Adding QnAScorable bots in the Readme file

* reviewed grammar
  • Loading branch information
FranciscoPonceGomez authored and stevengum committed Oct 31, 2018
1 parent fa39f17 commit 785140f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CSharp/Samples/QnAMaker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,10 @@ protected override async Task DefaultWaitNextMessageAsync(IDialogContext context
await base.DefaultWaitNextMessageAsync(context, message, results);
}
````
#### QnA Scorable based bot
[QnAScorableBasedBot](https://github.com/Microsoft/BotBuilder-CognitiveServices/tree/master/CSharp/Samples/QnAMaker/QnAScorableBasedBot) demonstrates how to use QnAMaker Service to specify simple question-answer pairs providing a static threshold score and default answer if none of the results surpass this threshold.
The following line located in [Global.asax.cs](https://github.com/Microsoft/BotBuilder-CognitiveServices/blob/master/CSharp/Samples/QnAMaker/QnAScorableBasedBot/Global.asax.cs#L42) sends an automatic message when the best score for the question is less than the defined value.

````
builder.RegisterModule(new QnAMakerModule("set yout subscription key here", "set your kbid here", "I don't understand this right now! Try another query!", 0.50));
````

0 comments on commit 785140f

Please sign in to comment.