QnA maker versioning

倖福魔咒の 提交于 2019-12-10 23:23:18

问题


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:


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))) { }


来源:https://stackoverflow.com/questions/47795755/qna-maker-versioning

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!