【问题标题】:LUIS Dispatch refresh Changes the production slotLUIS Dispatch refresh 更改生产槽
【发布时间】:2021-01-11 12:15:43
【问题描述】:

我有一个 Microsoft LUIS Dispatch 模型。每当我尝试使用调度刷新所有子模型自动发布到生产槽中。我想首先将调度发布到登台以进行测试,然后仅发布到生产。如何做到这一点?我是否缺少 .dispatch 文件中的任何键?

{
  "authoringRegion": "westus",
  "hierarchical": true,
  "useAllTrainingData": false,
  "dontReviseUtterance": false,
  "copyLuisData": true,
  "normalizeDiacritics": true,
  "appId": "DispatchAppId",
  "authoringKey": "AuthKey",
  "version": "v3",
  "region": "westus",
  "type": "dispatch",
  "name": "DispatchModel"
  "services": [
    {
      "intentName": "l_Model1",
      "appId": "MyAppid-1",
      "authoringKey": "AuthKey",
      "version": "v3",
      "region": "westus",
      "type": "luis",
      "name": "Model1",
      "id": "1"
    },
    {
      "intentName": "l_Model2",
      "appId": "MyAppid-2",
      "authoringKey": "AuthKey",
      "version": "v3",
      "region": "westus",
      "type": "luis",
      "name": "Model2",
      "id": "1"
    }
  ],
  "serviceIds": [
    "1",
    "2"
  ]
}

谢谢, 呸呸呸

【问题讨论】:

    标签: botframework microsoft-cognitive azure-language-understanding azure-cognitive-services


    【解决方案1】:

    我认为这与使用 --publishToStaging 选项有关,如 this 部分的 Dispatch 命令行工具 repo 中所述。

    这是一个例子:

    dispatch create [options]
    dispatch create --publishToStaging true --useAllTrainingData true
    dispatch create --bot c:\src\bot\testbot.bot --secret <your_bot_file_secret>
    dispatch create --dontImport true --useAllTrainingData true
    

    还有一种变通方法,就是使用this问题中所述的直接版本发布功能:

    1. 使用直接版本发布来发布更新的子模型。 目前只能通过调用 REST API 来完成(还没有 在 LUIS UI 中可用)通过设置“directVersionPublish”标志 在发布请求正文中为真。 API 参考在这里。
    2. 确保调度父级链接到相同的 versionId 用于直接发布版本。
    3. 重新发布调度父级后,您应该会看到 发布的子应用程序版本的结果 直接版本发布。一个重要的注意事项是,这将 将调度父级的所有已发布插槽更改为指向 孩子的直接发布版本。
    4. (可选)如果您想测试调度父模型中的更改 本身而不将其发布到 PRODUCTION 插槽,您可以 实际使用直接版本发布调度父,并查询 使用endpoint V3 APIs

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-11-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-07-02
      • 1970-01-01
      相关资源
      最近更新 更多