Trying to build a PoC that allows a user to ask something such as "I want a small pizza with a drink". Since drink didn't have a size, I would then prompt for the desired drink size.
Going with the restaurant example, should sizes (small, medium, large) be individual entities (e.g. @small, @medium, @large)? Does it matter that these entities would be used for both pizza size and drink size, or should we have a @pizza_small, @pizza_medium, @drink_small, @drink_medium, etc. entity? With this, I may need a @drink_no_size so I would know that I need to prompt for a size.
Thanks!
One solution to this problem could be that you would create the following entities:
@sizefor general size,@pizza_sizefor pizza sizes,@drink_sizefor drink sizes. You could use this then to disambiguate which sizes were specified in the user input. If only general size was specified you'll get entity@sizeback, if explicit size for pizza or drink would get specified you would also get the particular entity. The "no size" would be specified by no size entity detected in the user input.Here is the example entity definition in the csv format.