Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

entities-only intents in NLP engines (LUIS/Wit/others)?

Say I need to build a simple order status bot. I wonder whats the best way to form the intents:

I could have 2 intents like this

a. "Hi, I'd like to know the status of my order", "where's my order" etc. - intent QuerySTatus

b. "Joe Levi, +16463730044", "6463730044" etc - intent orderDetails - entities phone number, name

or, just one intent:

a. "Hi, I'd like to know the status of my order", "where's my order", "what is the status of Joe Levi order", "when order for phone 16463730044 ready" etc. - intent QueryStatus, with entities phone number, name

If I'm going with 2 intents, I guess the sentences like: "please let me know the status of the order for Joe Levi of phone #12345678" - would fall into intent 1 (with entities extracted). but then, would there be enough differentiation between the two intents?

If I'm going with 1 intent, how would the engine treat utterances like "Joe Levi, +16463730044" (which could be uttered as a reply when the bot asks "whats your name and number?") we have a reply with only entities.

is there a third way? whats best for Wit? for LUIS?

thanks!

Lior

like image 607
Lior Avatar asked Jan 25 '26 08:01

Lior


1 Answers

For LUIS, I suggest going with the one intent option. You can also check the new Actions feature in LUIS under intents, it links entities (as parameters) to intents.

like image 80
Mokhtar Ashour Avatar answered Jan 27 '26 22:01

Mokhtar Ashour



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!