AI-102 Question 300
Select 2You are designing a QnA Maker knowledge base for your company’s customer support chatbot. You want to add custom question-and-answer pairs manually to address specific niche scenarios that are not covered by the imported FAQ document. Which of the following steps should you perform to manually add question-and-answer pairs in Azure QnA Maker?
- A
Open the QnA Maker portal, navigate to the knowledge base, and use the 'Add QnA Pair' button to input the question and answer.
- B
Modify the JSON file of the knowledge base directly and upload it to the QnA Maker portal.
- C
Use the Azure CLI to add question-and-answer pairs directly to the QnA Maker service.
- D
Access the QnA Maker portal, edit the knowledge base, and directly input the question-and-answer pair in the editor.
- E
Enable the 'Manual QnA Addition' setting in the Azure portal and configure the questions there.
Show answer and explanation
Correct answers: A, D
Explanation
To manually add question-and-answer pairs in Azure QnA Maker, you can use the 'Add QnA Pair' button or directly edit the knowledge base in the QnA Maker portal. These methods are designed for creating and customizing Q&A pairs efficiently. Other options, such as modifying JSON files or using CLI commands, are either unsupported or not applicable for this task.
- A. Correct.
Correct: This is the standard method for manually adding QnA pairs in the QnA Maker portal. The 'Add QnA Pair' button allows users to directly input custom Q&A pairs.
- B. Incorrect.
Incorrect: While the JSON file can represent the knowledge base, manually modifying and uploading it is not a recommended or supported method for adding Q&A pairs.
- C. Incorrect.
Incorrect: The Azure CLI does not provide a direct command to add custom Q&A pairs to a QnA Maker knowledge base. The portal or APIs are used for this purpose.
- D. Correct.
Correct: The QnA Maker portal provides a built-in editor where you can directly input new Q&A pairs, making this an appropriate method to manually add pairs.
- E. Incorrect.
Incorrect: There is no 'Manual QnA Addition' setting in the Azure portal. This is not a valid method for adding question-and-answer pairs.