AI-102 Question 315
Single answerYou are building a chatbot using Azure Cognitive Services QnA Maker. After creating and training the knowledge base, you need to publish it to make it available for the chatbot to use. Which step is required to successfully publish the knowledge base?
- A
Click the 'Save and Train' button in the QnA Maker portal
- B
Navigate to the 'Publish' tab in the QnA Maker portal and click the 'Publish' button
- C
Export the knowledge base as a JSON file and upload it to the chatbot
- D
Create a new Azure Web App to deploy the chatbot
Show answer and explanation
Correct answer: B
Explanation
To make a QnA Maker knowledge base available for a chatbot or other application to use, it must be published. This is done in the QnA Maker portal by navigating to the 'Publish' tab and clicking the 'Publish' button. This step creates an endpoint that the chatbot can call to retrieve answers from the knowledge base.
- A. Incorrect.
'Save and Train' only saves changes and retrains the model but does not make the knowledge base available for use. Publishing is a separate step.
- B. Correct.
This is the correct step. Publishing the knowledge base in the QnA Maker portal makes it available via an endpoint that the chatbot can call.
- C. Incorrect.
Exporting the knowledge base as a JSON file is not required for publishing it. The publishing process automatically handles the endpoint creation.
- D. Incorrect.
Creating an Azure Web App is unrelated to publishing the knowledge base. The Web App is used for hosting the chatbot, not for making the knowledge base available.