MycroftAI / mycroft-core

Mycroft Core, the Mycroft Artificial Intelligence platform.
https://mycroft.ai
Apache License 2.0
6.53k stars 1.27k forks source link

Limit WolframAlpha fallback usage #600

Closed penrods closed 7 years ago

penrods commented 7 years ago

Right now the "fallback" handling in the WolframAlpha skill gets called for any utterance which isn't recognized as an intent. This is handy for questions like "how tall is the Washington monument", but not very useful if Mycroft misunderstands a command statement or is just triggered unintentionally and random conversation is heard. In these cases Mycroft stupidly says "I could not find an answer for whatever random gibberish, perhaps you meant random gibberish?"

Limiting the usage of WolframAlpha to utterances which look like questions solves this. So we'll only invoke it when the utterance looks like a question, e.g. has what/how/where/when/etc.

MatthewScholefield commented 7 years ago

Ultimately, I think we need to send multiple requests to wolfram, wikipedia, and perhaps another api (like you said Christopher did), and generate confidences for the results each one fetches.