Skip to content

Commit 2281d75

Browse files
Merge pull request #108961 from diberry/diberry/0325-qna-migrate-api
[CogSvcs] QnA Maker - programmatically migrate kb
2 parents 7a5d353 + faddd27 commit 2281d75

File tree

1 file changed

+22
-10
lines changed

1 file changed

+22
-10
lines changed

articles/cognitive-services/QnAMaker/Tutorials/migrate-knowledge-base.md

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
11
---
22
title: Migrate knowledge bases - QnA Maker
3-
titleSuffix: Azure Cognitive Services
43
description: Migrating a knowledge base requires exporting from one knowledge base, then importing into another.
5-
services: cognitive-services
6-
author: diberry
7-
manager: nitinme
8-
ms.service: cognitive-services
9-
ms.subservice: qna-maker
104
ms.topic: article
11-
ms.date: 01/28/2020
12-
ms.author: diberry
13-
ms.custom: seodec18
5+
ms.date: 03/25/2020
146
---
157
# Migrate a knowledge base using export-import
168

17-
Migrating a knowledge base requires exporting from one knowledge base, then importing into another.
9+
Migration is the process of creating a new knowledge base from an existing knowledge base. You may do this for several reasons:
10+
11+
* backup and restore process
12+
* CI/CD pipeline
13+
* move regions
14+
15+
Migrating a knowledge base requires exporting from an existing knowledge base, then importing into another.
1816

1917
## Prerequisites
2018

@@ -44,6 +42,20 @@ Migrating a knowledge base requires exporting from one knowledge base, then impo
4442

4543
1. **Publish** the knowledge base and create a chat bot. Learn how to [publish your knowledge base](../Quickstarts/create-publish-knowledge-base.md#publish-the-knowledge-base).
4644

45+
## Programmatically migrate a knowledge base from QnA Maker
46+
47+
The migration process is programmatically available using the following REST APIs:
48+
49+
**Export**
50+
51+
* [Download knowledge base API](https://docs.microsoft.com/rest/api/cognitiveservices/qnamaker/knowledgebase/download)
52+
53+
**Import**
54+
55+
* [Replace API (reload with same knowledge base ID)](https://docs.microsoft.com/rest/api/cognitiveservices/qnamaker/knowledgebase/replace)
56+
* [Create API (load with new knowledge base ID)](https://docs.microsoft.com/rest/api/cognitiveservices/qnamaker/knowledgebase/create)
57+
58+
4759
## Chat logs and alterations
4860
Case-insensitive alterations (synonyms) are not imported automatically. Use the [V4 APIs](https://go.microsoft.com/fwlink/?linkid=2092179) to move the alterations in the new knowledge base.
4961

0 commit comments

Comments
 (0)