Migrate a knowledge base using export-import

Migrating a knowledge base requires exporting from one knowledge base, then importing into another.

Prerequisites

Migrate a knowledge base from QnA Maker

  1. Sign in to QnA Maker portal.

  2. Select the knowledge base you want to migrate.

  3. On the Settings page, select Export knowledge base to download a .tsv file that contains the content of your knowledge base - questions, answers, metadata, and the data source names from which they were extracted.

  4. Select Create a knowledge base from the top menu then create an empty knowledge base.

    Set data sources

    • Give your service a name. Duplicate names are supported and special characters are supported as well.
  5. Select Create.

    Create KB

  6. In this new knowledge base, open the Settings tab and select Import knowledge base. This imports the questions, answers, and metadata, and retains the data source names from which they were extracted.

    Import knowledge base

  7. Test the new knowledge base using the Test panel. Learn how to test your knowledge base.

  8. Publish the knowledge base. Learn how to publish your knowledge base.

  9. Use the endpoint in your application or bot code. See here how to create a QnA bot.

    QnA Maker values

    At this point, all the knowledge base content - questions, answers and metadata, along with the names of the source files and the URLs, are imported to the new knowledge base.

Chat logs and alterations

Case-insensitive alterations (synonyms) are not imported automatically. Use the V2 APIs to export the alterations from the old knowledge and the V4 APIs to move the alterations in the new knowledge base.

There is no way to migrate chat logs, since the new knowledge base uses Application Insights for storing chat logs.

Next steps