Skip to content

Latest commit

 

History

History
51 lines (41 loc) · 2.59 KB

refresh-command.md

File metadata and controls

51 lines (41 loc) · 2.59 KB

Refresh command

After you have bootstrapped and created your LUIS model and / or QnAMaker knowledge base, you might make subsequent refinements to your models directly from luis.ai or qnamaker.ai. You can use the refresh command to re-generate .lu files from your LUIS JSON and / or QnAMaker JSON files.

>ludown refresh -h

  Usage: ludown refresh -i <LUISJsonFile> | -q <QnAJSONFile>

  Convert LUIS JSON and/ or QnAMaker JSON file into .lu file

  Options:

    -i, --LUIS_File <LUIS_JSON_File>            [Optional] LUIS JSON input file name
    -q, --QNA_FILE <QNA_FILE>                   [Optional] QnA Maker JSON input file name
    -o, --out_folder <outputFolder> [optional]  [Optional] Output folder for all files the tool will generate
    -n, --lu_File <LU_File>                     [Optional] Output .lu file name
    --verbose                                   [Optional] Get verbose messages from parser
    -s, --skip_header                           [Optional] Generate .lu file without the header comment
    -r, --sort                                  [Optional] When set, intent, utterances, entities, questions collections are alphabetically sorted
    -m, --model_info                            [Optional] When set, include model information in the output .lu file
    --prefix                                    [Optional] append [ludown] prefix to all messages
    --stdin                                     [Optional] Read input from stdin
    --stdout                                    [Optional] Write output to stdout only. Specifying this option will not write any generated content to disk
    -h, --help                                  output usage information

Exporting LUIS model (for ludown refresh command)

Using CLI

luis export version --appId <string> --versionId <string> --authoringKey <key>

using LUIS portal

  • Navigate to LUIS
  • Sign in
  • Click on My apps
  • Find the app you wish to download, click "..." -> Export app

Exporting QnA Maker

using CLI

qnamaker export kb --kbid "" --environment <string>

Piping commands

You can pipe output of luis or qnamaker commands to generate a .lu file. Here are few examples

> luis export version --appId <YOUR-LUIS-APP-ID> --versionId <YOUR-LUIS-APP-VERSION> | ludown refresh --stdin -o c:\test -n app1.lu

> qnamaker export kb --kbId <YOUR-KB-ID> --environemnt <TEST-OR-PROD> --hostname <YOUR-HOST-NAME> --endpointKey <YOUR-ENDPOINT-KEY> --subscriptionKey <YOUR-SUBSCRIPTION-KEY> | ludown refresh --stdin -o c:\test -n kb1.lu