AI-102 Question 327
Single answerYou are building an AI-powered chatbot using Azure Language Understanding (LUIS). The chatbot must understand user intents regardless of how users phrase their questions. For instance, users asking 'What's the weather like?' or 'How's the weather today?' should map to the same intent. What is the best approach in LUIS to handle this requirement?
- A
Define a single intent and add alternate phrasings of the question as utterances.
- B
Create separate intents for each alternate phrasing of the question.
- C
Use prebuilt LUIS intents to automatically handle alternate phrasings.
- D
Rely on Azure Cognitive Services' Speech-to-Text to normalize user input before sending it to LUIS.
Show answer and explanation
Correct answer: A
Explanation
To ensure a chatbot understands user intents regardless of phrasing, you should define a single intent in LUIS and train it with multiple example utterances that represent alternate phrasings. This approach allows LUIS to generalize well and match similar user inputs to the same intent.
- A. Correct.
Defining a single intent and adding alternate phrasings as utterances helps train the model to recognize multiple ways users may phrase a question. This is the correct approach as it ensures LUIS can generalize user input effectively.
- B. Incorrect.
Creating separate intents for each alternate phrasing would lead to redundancy and reduce model accuracy by splitting training data unnecessarily. This is not the correct approach.
- C. Incorrect.
Prebuilt LUIS intents are useful for common scenarios but they do not handle custom phrasings unless explicitly trained. This is not relevant to the scenario described.
- D. Incorrect.
Speech-to-Text is a separate service for converting spoken language into text. While it may improve input quality, it does not address the need to handle alternate phrasings in LUIS. This is not the correct approach.