Query KB without explicit object type

The current KB tutorial requires the user to explicitly say the object type they are searching for. For example

What Italian restaurant options in Berlin do I have?

I want to be able to infer the object type in queries like this:

Find me pizza.

This query needs to infer the object type ‘restaurant’ to query the KB. How can I achieve this?

Thanks!

Hi @david-wb. If your assistant focuses only on the restaurant search I am guessing “restaurant” is not used as an entity anywhere. In that case, you can try adding examples like Find me pizza to your NLU training examples and map pizza to Italian cuisine as a synonym. Alternatively, you can change how your assistant runs the restaurant search - you can try training your model to extract foods as entities and use them for the restaurant search if cuisine is not present