AI-102 Question 265
Single answerYou are designing a conversational AI solution using Azure Language Understanding (LUIS). You need to create an entity to extract specific information about product types (e.g., 'laptop', 'smartphone') from user input. The entity should allow you to later assign product-specific actions in the bot. Which type of entity should you choose?
- A
Simple entity
- B
Hierarchical entity
- C
Composite entity
- D
Prebuilt entity
Show answer and explanation
Correct answer: B
Explanation
A hierarchical entity is the best choice for this scenario because it allows you to define a structure with subcategories, enabling you to extract and categorize product types like 'laptop' and 'smartphone' efficiently. This structure is essential for later assigning product-specific actions in the conversational AI solution.
- A. Incorrect.
A simple entity is used to identify a single category of data, but it does not allow for structured relationships or subcategories, which are needed in this scenario.
- B. Correct.
A hierarchical entity is the correct choice because it allows you to define a tree-like structure with subcategories (e.g., product types like 'laptop' and 'smartphone') that can be linked to specific actions.
- C. Incorrect.
A composite entity combines multiple simple entities but does not provide the structured relationships or subcategories required for this use case.
- D. Incorrect.
A prebuilt entity is a predefined entity provided by LUIS for common data types (e.g., dates, numbers) but does not meet the specific need for extracting and categorizing product types.