如何将 QnA Maker 服务添加到具有 LUIS 的聊天机器人
How to Add QnA Maker service to a chatbot which has LUIS
我有一个已经与 Luis 集成的聊天机器人。我正在使用 .NetCore 2.0 和 sdk v4。
我在 QnA Maker 中创建了一个知识库。现在我已准备好将 QnA Maker 添加到我的聊天机器人。我不太喜欢在我的机器人中添加 QnA Maker 服务。
这是我的 .bot 文件
{
"name": "Bot",
"description": "",
"services": [
{
"type": "abs",
"appId": "",
"id": "1",
"name": "Bot",
"resourceGroup": "",
"serviceName": "",
"subscriptionId": "",
"tenantId": ""
},
{
"type": "blob",
"connectionString": "",
"id": "",
"resourceGroup": "",
"serviceName": "",
"subscriptionId": "",
"tenantId": ""
},
{
"type": "luis",
"appId": "",
"authoringKey": "",
"id": "5",
"name": "BotwithAgent",
"region": "westus",
"version": "0.1"
},
{
"type": "QnA",
"KnowledgeBaseId": "",
"EndpointKey": "",
" Host": "",
"id": "5",
"name": "DevChatbotKB"
},
{
"type": "endpoint",
"endpoint": "http://localhost:3978/api/messages",
"name": "development",
"id": "7"
}
],
"padlock": "",
"version": "2.0",
"path": "C:\Users\snaeem\Desktop\Work\bot\cafe-bot.bot",
"overrides": null
}
这是机器人加载配置的部分:
我没有看到正在加载我的 QnA Maker 服务。还有其他加载方式吗?
其次,有人可以指导我使用 C# 在 .NetCore 中使用 luis+qna maker 的 post/github 存储库。
关于您的 .bot
文件:
- 根据 this documentation。
,此向机器人提供设置的方法已在 SDK 4.3 及更高版本中弃用
- 根据来源 here and snapshot of the code for the
Startup
file before it was migrated to use an appSettings.json
file is available here. ,您的 QnA 条目的 type
应该是 "qna"
您要集成 LUIS 和 QnA Maker 的示例是 this one (nlp-with dispatch). There is a guide available here,它将引导您了解它的工作原理并启动它,运行。
我有一个已经与 Luis 集成的聊天机器人。我正在使用 .NetCore 2.0 和 sdk v4。
我在 QnA Maker 中创建了一个知识库。现在我已准备好将 QnA Maker 添加到我的聊天机器人。我不太喜欢在我的机器人中添加 QnA Maker 服务。
这是我的 .bot 文件
{
"name": "Bot",
"description": "",
"services": [
{
"type": "abs",
"appId": "",
"id": "1",
"name": "Bot",
"resourceGroup": "",
"serviceName": "",
"subscriptionId": "",
"tenantId": ""
},
{
"type": "blob",
"connectionString": "",
"id": "",
"resourceGroup": "",
"serviceName": "",
"subscriptionId": "",
"tenantId": ""
},
{
"type": "luis",
"appId": "",
"authoringKey": "",
"id": "5",
"name": "BotwithAgent",
"region": "westus",
"version": "0.1"
},
{
"type": "QnA",
"KnowledgeBaseId": "",
"EndpointKey": "",
" Host": "",
"id": "5",
"name": "DevChatbotKB"
},
{
"type": "endpoint",
"endpoint": "http://localhost:3978/api/messages",
"name": "development",
"id": "7"
}
],
"padlock": "",
"version": "2.0",
"path": "C:\Users\snaeem\Desktop\Work\bot\cafe-bot.bot",
"overrides": null
}
这是机器人加载配置的部分:
我没有看到正在加载我的 QnA Maker 服务。还有其他加载方式吗?
其次,有人可以指导我使用 C# 在 .NetCore 中使用 luis+qna maker 的 post/github 存储库。
关于您的 .bot
文件:
- 根据 this documentation。 ,此向机器人提供设置的方法已在 SDK 4.3 及更高版本中弃用
- 根据来源 here and snapshot of the code for the
Startup
file before it was migrated to use anappSettings.json
file is available here. ,您的 QnA 条目的
type
应该是 "qna"
您要集成 LUIS 和 QnA Maker 的示例是 this one (nlp-with dispatch). There is a guide available here,它将引导您了解它的工作原理并启动它,运行。