Skip to content

Commit a513599

Browse files
authored
Merge pull request #101106 from diberry/diberry/0114-qna-fix
[Cogsvcs] QnA Maker - Node.js fix
2 parents d9dbf91 + a9f87c0 commit a513599

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/cognitive-services/QnAMaker/includes/quickstart-sdk-nodejs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Azure Cognitive Services are represented by Azure resources that you subscribe t
3030

3131
After getting the key and endpoint from your resource, get the values from the Azure portal, for your new resource, on the Quickstart page.
3232

33-
[Create environment variables](https://docs.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account#configure-an-environment-variable-for-authentication), named `QNAMAKER_AUTHORING_KEY` and `QNAMAKER_ENDPOINT`. You can copy the `[.env.sample](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/javascript/QnAMaker/sdk/.env.sample)` file to `.env` and use the environment variables in that file.
33+
[Create environment variables](https://docs.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account#configure-an-environment-variable-for-authentication), named `QNAMAKER_AUTHORING_KEY` and `QNAMAKER_ENDPOINT`. You can copy the [.env.sample](https://github.com/Azure-Samples/cognitive-services-quickstart-code/blob/master/javascript/QnAMaker/sdk/.env.sample) file to `.env` and use the environment variables in that file.
3434

3535
### Create a new Node.js application
3636

@@ -131,7 +131,7 @@ Publish the knowledge base using the [publish](https://docs.microsoft.com/javasc
131131
[!code-javascript[Publish a knowledge base](~/cognitive-services-quickstart-code/javascript/QnAMaker/sdk/qnamaker_quickstart.js?name=publishKnowledgeBase&highlight=3)]
132132

133133

134-
# Get published endpoint
134+
## Get published endpoint
135135

136136
Once the knowledge base is published, access the published knowledge base via the query prediction runtime' generateAnswer API. In order to do this, you need the runtime's endpoint key. This is different than the authoring key.
137137

0 commit comments

Comments
 (0)