Handling comparison/range queries


(Deepak Mishra) #1

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 ?

(Edoardo Pedrotti) #2

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

(Deepak Mishra) #3

@EPedrotti, not yet.

(Edoardo Pedrotti) #4

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