5
votes

My QnA Maker service is currently trained on an excel file I have uploaded. If I update my knowledge base via the QnA maker settings tab and upload a new version of this excel file (deleting the old one), will it overwrite the whole knowledge base? Or just change what I've edited/ added in the file?

Uploading new QnA file

Furthermore - Will I loose QnA pairs that are 'sitting' in the Train API (As it only pushes to the knowledge base after a number of users send similar feedback)?

3

3 Answers

2
votes

Reply from Qna Maker Team support (12/2/2018): If you upload it on the settings page, 'Files' section, it will not rewrite the entire knowledge base, only the file you reuploaded. It will also retain the training data. Only 'replace knowledge base' will nuke your training data and Kb.

1
votes

To add a detailed answer about the files management, in the special case of providing a file via the Settings tab of qnamaker.ai, I just made the tests:

  • Load a file named "test.xlsx" with 1 line "question;answer1", then Save and retrain => the content is in your KB
  • Change the content of the file: "question;answer2", go to settings and load directly the file then Save and retrain => no changes will be taken into account if you have not removed this file first (looks like a bug yes)
  • Do the same but before loading, click on the X to remove the existing "test.xlsx" file, then Save and retrain => the changes are taken into account

For the 2nd question:

Will I loose QnA pairs that are 'sitting' in the Train API (As it only pushes to the knowledge base after a number of users send similar feedback)?

There is no possibility to extract the content of the user feedback so it's impossible to know exactly if thoses changes are lost or not

0
votes

The documentation states that uploading a knowledge base overwrites the existing QnA pairs in the previous KB: https://qnamaker.ai/Documentation/UpdateKb

I think the best practice and solution for your case is download the KB as a file from the web application, update the file and finally, re upload the file with your changes on top. During this process you might want to stop the service or prevent Active Learning. Otherwise, you will have conflicts between your manual changes and the online KB.

Regards, Francisco