Tutorial: Deploy (cli)

Deploy QnA Maker knowledge bases

  1. Run the following command for each .lu file in \Deployment\Resources\QnA to parse the files to .json files that can be deployed to QnA Maker:
     ludown parse toqna `
         --in "path-to-lu-file" `
         --out_folder "output-folder" `
         --out "output-file-name.qna"
    
  2. Run the following command to import .qna file to QnA Maker.
     qnamaker create kb `
         --name "kb-name" `
         --subscriptionKey "qna-subscription-key" `
         --in "path-to-qna-file" `
         --force `
         --wait
    
  3. Run the following command to publish the knowledgebase.
    qnamaker publish kb `
        --kbId "kb-id" `
        --subscriptionKey "qna-subscription-key"
    
  4. For each QnA Maker knowledgebase model, add the following configuration to the cognitiveModels.your-locale.knowledgebases collection in cognitivemodels.json file:
     {
         "endpointKey": "",
         "kbId": "",
         "hostname": "",
         "subscriptionKey": "",
         "name": "",
         "id": ""
     }