Search code examples
c#botframeworkazure-language-understandingazure-cognitive-servicesazure-qna-maker

Consuming QnA and LUIS in a v4 bot


Documentation tells me I need CognitiveServices package to obtain support for consuming LUIS and QnA services. However, v4 uses the Core framework and https://www.nuget.org/packages/Microsoft.Bot.Builder.CognitiveServices/ gives a warning that it requires 4.6

warn : Package 'Microsoft.Bot.Builder.CognitiveServices 1.1.7' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project.

Are there dotnet core versions of the CognitiveServices packages, or it is LUIS and QnA support now somewhere else?

My interest in the CognitiveServices package is entirely driven by the need to consume LUIS and QnA services from a v4 bot.


Solution

  • Which Cognitive Service would you like to use? The package you mentioned was done for v3 bots.

    For example, some of the Cognitive Services are included in the Bot Builder SDK librairies:

    These librairies are used to consume the services.

    Otherwise, there are also other official NuGet packages, have a look to Microsoft.Azure.CognitiveServices... packages, targeting .Net Standard or .Net Framework: