Exemplo n.º 1
0
 public KnowledgeBot(IConfiguration config)
 {
     this.configuration = config;
     indexClient        = AzureSearchService.CreateSearchIndexClient(configuration["SearchServiceName"], configuration["SearchDialogsIndexName"], configuration["SearchServiceQueryApiKey"]);
     qnaClient          = new QnAMaker(new QnAMakerEndpoint()
     {
         EndpointKey = configuration["QnAKey"], Host = configuration["QnAEndpoint"], KnowledgeBaseId = configuration["QnAKnowledgeBaseId"]
     });
     translatorClient = new Translator(configuration["TranslationAPI"]);
     botLUISModel     = new LuisModel(configuration["LUISAppId"], configuration["LUISApiKey"], new Uri(configuration["LUISEndpointUri"]));
 }
Exemplo n.º 2
0
 public StartDialog(IConfiguration config)
 {
     // Azure Search definition
     this.configuration = config;
     indexClient        = AzureSearchService.CreateSearchIndexClient(configuration["SearchServiceName"], configuration["SearchDialogsIndexName"], configuration["SearchServiceQueryApiKey"]);
 }