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"])); }
public StartDialog(IConfiguration config) { // Azure Search definition this.configuration = config; indexClient = AzureSearchService.CreateSearchIndexClient(configuration["SearchServiceName"], configuration["SearchDialogsIndexName"], configuration["SearchServiceQueryApiKey"]); }