AI-102 Question 266
Single answerYou are building a conversational AI bot using Azure Bot Framework and Language Understanding (LUIS). Your bot needs to extract specific information such as 'product name', 'order number', and 'delivery date' from user input. Which approach should you use to define and extract this information?
- A
Define entities in LUIS and train the model to recognize them.
- B
Use Azure Cognitive Search to extract entities from the user input.
- C
Write custom code to parse the input and extract the required entities manually.
- D
Enable the QnA Maker integration to automatically extract entities.
Show answer and explanation
Correct answer: A
Explanation
To extract specific information like 'product name', 'order number', and 'delivery date', the best approach is to define entities in LUIS. LUIS provides a robust framework for entity recognition, allowing you to train the model on sample utterances and accurately extract the required information from user input.
- A. Correct.
This is the correct approach. In LUIS, you can define entities such as 'product name', 'order number', and 'delivery date', and train the model to recognize these entities in user input.
- B. Incorrect.
Azure Cognitive Search is used for indexing and searching documents, not for extracting entities from conversational input.
- C. Incorrect.
While writing custom code is an option, it is not the recommended approach since LUIS provides built-in tools for entity recognition, making the process easier and more efficient.
- D. Incorrect.
QnA Maker is designed for creating FAQ bots and does not support entity extraction. Entity extraction must be handled separately using LUIS or other tools.