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

Deducing answers / gathering knowledge for offline usage #629

Closed JarbasAI closed 6 years ago

JarbasAI commented 7 years ago

when no intent is matched and no answer is given in wolpham alpha we shoudl have a fallback mechanism to deduce answers

here are the bullet points of the slack discussion we had

Json Database by categorie

On intent failure, go to knowledge backend:

Usage example:

"is cow an animal"? can now be answered offline, we can expand this for general questions categorie

the real question is how to structure this data for easy and fast access, what if some item falls in several categories?

also there will be details in parsing the utterance for subject/categorie

Think of it as a fan shape made of nodes. The middle node is Sarah. The Sarah node is attached to a bunch of other nodes that "fan out", those nodes can be "human", "female", "family", "wife". Those nodes are ranked by order of importance from the perspective of the Sarah node, so: Sarah

  1. -> human
  2. -> female
  3. -> family
  4. -> wife

It's the perspective that simplifies it. So for the cow: cow

  1. -> animal
  2. -> herbovire
  3. -> livestock
  4. -> female

So you can see that there is an overlap in the "female" category. Mycroft might then ask "Are all female women called Sarah cows?" Your answer might be risky if you know a female called Sarah.

if we connect categories right it will be a powerfull tool to "deduce" answers

question - is humans a food? check food categorie, no humans, check animal categorie ("parent" categorie of food), humans is an animal

answer - human is an animal, and animals are generally also food, i deduce humans are food is this correct?

for learning we could later implement a password for certain categories (personal / secret) so personal can only be changed by password, and secret only accessed/changed by password

if we add timestamps to info we can also change wikipedia/wolphram skill to search db first and auto-update db if say a month elapsed

JarbasAI commented 7 years ago

https://github.com/HeinzSchmidt/LILACS-mycroft-core

started working on this with HeinzSchmidt , everyone's welcome to join in