wit-ai / wit

Natural Language Interface for apps and devices
https://wit.ai/
936 stars 91 forks source link

Composer incorrectly handles multiple entities from a single utterance. #2585

Closed LaserDeveloper closed 1 year ago

LaserDeveloper commented 1 year ago

Do you want to request a feature, report a bug, or ask a question about wit?

Bug

What is the current behavior?

Composer incorrectly handles multiple Entities derived from a single utterance as can be seen from this example:

Screen Shot 2023-01-30 at 9 33 47 AM Screen Shot 2023-01-30 at 9 35 04 AM

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

A project is created as per the Recipe example called "Provide custom context":

Screen Shot 2023-01-30 at 9 17 24 AM

The Entities color and shape are added to the project:

Screen Shot 2023-01-30 at 9 19 26 AM

A query is created and the context map set as per the example:

Screen Shot 2023-01-30 at 9 20 40 AM

The query is run with the following results:

Screen Shot 2023-01-30 at 9 22 54 AM

What is the expected behavior?

The expected behavior as per the example is:

Screen Shot 2023-01-30 at 9 24 37 AM

Further information

The Understanding looks to be correct:

Screen Shot 2023-01-30 at 9 27 19 AM

But the interpretation of the context commands is incorrect:

Screen Shot 2023-01-30 at 9 29 09 AM

If applicable, what is the App ID where you are experiencing this issue? If you do not provide this, we cannot help.

My sample project can be found at this App ID: 3444606662449219

patapizza commented 1 year ago

Thanks for reporting, I'll look into it.

patapizza commented 1 year ago

Found the issue, fix upcoming.

patapizza commented 1 year ago

This is now fixed.