Handling comparison/range queries

I have understood how to use rasa_nlu for my specific use case and I an able to extract entities as well as intents. However, my use case has queries like “Find me restaurants that are less than 2 Kms away” or “Find me restaurants that has between 3 to 5 star rating”.

How do I tackle such comparison/range queries ?

hi @deepak209g, are you already using a custom action server?

@EPedrotti, not yet.

A good place to handle this query then would be a custom action, here is the relevant documentation here

Also you might want to use duckling to correctly extract the entities that you will use in your queries, but have a look at our docs about entities extractions here.

I hope this helps