3
votes

I am hoping to use QnA maker to facilitate the simple question and answer feature of my chatbot, and use LUIS for more complex intents like extracting entities from sentences for questions that require more context.

With LUIS, it's possible to publish different versions of your app to either production or staging. It's also possible to clone and import versions. I would like to also do this with QnA Maker. Is it possible or a feature that will be added in the future?

I know its possible to download a knowledge base from QnA maker in tsv format, you can only publish to 1 endpoint as far as I know

1

1 Answers

3
votes

No it's not currently possible, the only possibility currently is to setup several QnAMaker services and switch between them on your code.

You only need 1 QnAMaker Dialog but you will have to change the way of passing the parameters (KbId and Subscription Key):

From your routing dialog:

await context.Forward(new BasicQnAMakerDialog(this._qnaSubscriptionKey, this._qnaKnowledgeBaseId, this._qnaNoMatchMessage, 0.5), QnaDialogResume, incomingMessage);

And the start of the BasicQnAMakerDialog implementation:

[Serializable]
public class BasicQnAMakerDialog : QnAMakerDialog
{
    public BasicQnAMakerDialog(string subscriptionKey, string kbId, string noMatchString, double minScore) : base(new QnAMakerService(new QnAMakerAttribute(subscriptionKey, kbId, noMatchString, minScore))) { }