Tag: qnamaker

使用C#在一个Bot中进行多个QnA服务

我有3个QnA服务。 我希望它们能够同时用于单个BOT。 如何使用C#实现这一点。 我最初的想法是将KB ID和Sub Key放入一个数组(如何实现它或者数组是否有效?)..我在Node.JS中看到了一些代码,但我无法弄清楚如何在C#中转换代码。 public class QnaDialog : QnAMakerDialog { public QnaDialog() : base( new QnAMakerService(new QnAMakerAttribute(ConfigurationManager.AppSettings[“QnaSubscriptionKey1”], ConfigurationManager.AppSettings[“QnaKnowledgebaseId1”], “Hmm, I wasn’t able to find an article about that. Can you try asking in a different way?”, 0.5)), new QnAMakerService(new QnAMakerAttribute(ConfigurationManager.AppSettings[“QnaSubscriptionKey2”], ConfigurationManager.AppSettings[“QnaKnowledgebaseId2”], “Hmm, I wasn’t able to find an article about that. Can you […]