如何找到Azure自定义问答的endpointKey?

问题描述 投票:0回答:1

我正在使用 Azure 的自定义问答服务,并且正在尝试查找端点密钥。以下是我正在使用的配置:

// Configuration for Custom Question Answering
const projectName = 'mr...';
const deploymentName = 'pr..';
const endpointKey = 'a27....';
const host = 'https://......';

我知道项目名称、部署名称和主机,但我需要了解如何查找或生成端点密钥。此密钥是在 Azure 门户中提供的,还是需要以编程方式生成?任何有关在哪里找到此密钥的指导将不胜感激。

node.js azure bots
1个回答
0
投票

最初,我按照此MS Document创建具有自定义问答功能启用的语言资源,如下所示:

enter image description here

在下一个屏幕中,输入语言资源的名称,然后单击

Review + create
按钮:

enter image description here

创建语言资源后,登录 Language Studio 并添加新的自定义问答项目,如下所示:

enter image description here

部署知识库后,您可以在名称为 Ocp-Apim-Subscription-Key 的预测 URL 示例请求中找到 Azure 自定义问答的

endpointKey
值:

enter image description here

或者,您也可以直接在 Azure 门户中语言资源的 Keys and Endpoint 部分找到

endpointKey
值,如下所示:

enter image description here

您可以使用以上任意键值作为

endpointKey
参数。

© www.soinside.com 2019 - 2024. All rights reserved.