Microsoft LUIS 需要插槽填充

Microsoft LUIS required slot filling

我在门户网站上创建了一个 LUIS 应用程序,其中包含多个意图、训练和发布。

https://docs.microsoft.com/en-us/azure/cognitive-services/luis/luis-quickstart-primary-and-secondary-data

当我向端点发出 GET 请求时,我收到如下信息:

{
  "query": "what is the weather",
  "topScoringIntent": {
    "intent": "Weather",
    "score": 0.972772241
  },
  "entities": []
}

从表面上看,LUIS 只能return 从我的查询中找到最匹配的意图。

是否有在门户内实现所需的插槽填充,以便我可以像 "What is the weather in City" 这样的话语,并且响应会返回一些提示匹配但某些数据丢失(所需的检查城市),这样我就可以在生成答案之前通知用户他们还必须提供什么。

我打算在 class 库中使用 LUIS,如果有帮助,它将 return 对话用于电话解决方案。所以没有聊天机器人。

这曾经在 LUIS 之前存在于预览模式中,但没有进入 GA 版本。现在,这需要用代码来完成。 BotBuilder-CognitiveServices library has some code you may be interested in using. There was also a blog post about it here.