genie-toolkit icon indicating copy to clipboard operation
genie-toolkit copied to clipboard

Agent does not ask for clarification when the input location is not specific enough.

Open s-jse opened this issue 3 years ago • 1 comments

If the user input is a country/state instead of a specific location, the agent does not ask for clarification. Instead, it matches it to a similar looking city. An example from the weather skill:

what is the weather like tomorrow? What location do you want sun time info for? canada The current weather in La Canada is raining. The temperature is 4 C and the humidity is 88 %.

Does this require a change in the state machine?

s-jse avatar Sep 10 '20 00:09 s-jse

Does this require a change in the state machine?

It does - in a sense. The agent is asking a question of location type. Because locations are free-form and we want to understand them regardless of the neural network, this overrides the parser so everything the user types is sent to the Thingpedia location API (which routes to OpenStreetMap). That is only half of the problem though. The other half is that "Canada" resolves to "La Canada" in the location API, and I'm not sure exactly why.

gcampax avatar Sep 10 '20 03:09 gcampax