I was thinking that a fallback skill using OpenAI’s GPT3 would be ideal for edge cases when Mycroft doesn’t have a response. The AIML chatbot is great, but GPT3 blows it out of the water with open-ended questions like “What things should I consider when buying a house?”
Does that not go against the idea of an offline voice assistant?
I guess you could as other will likely use websearch and things like spotify so the idea of offline for many is a hindrance but gpt-3 is an online api…
Yes, you are correct in that it would not be useful for offline use, since it’s just an online api. GPT-J or GPT-NeoX are potential offline alternatives if you have the hardware.
Nice @Tomascardososerra Tomas! I’d love to see your skill in action, but when I install your skill I get the following ‘error’.
mycroft-msm install https://github.com/tomascardososerra/fallback-chatgpt3-skill
INFO - building SkillEntry objects for all skills
INFO - Downloading skill: https://github.com/tomascardososerra/fallback-chatgpt3-skill
INFO - Reading from manifest.yml
WARNING - Invalid value type manifest.yml for fallback-chatgpt3-skill: <class 'list'>
INFO - Problem performing action. Restoring skill to previous state...
INFO - invalidating skills cache
SkillRequirementsException: 'list' object has no attribute 'get'
Looking at the manifest.yml, I see a file with commented stand-in text except for the line about ‘requests’. Is that maybe the problem?
I got the skill working now by installing it by hand (and I’ve edited the manifest.yml just in case).
Now I get a Fallback error in the cli-client after asking a fact like “who is the king of The Netherlands”. This is the only info
FallbackChatgpt | error in ChatGPT fallback request
Glad to hear that. Sometimes I’ve noticed what seems to be a timeout in a way Mycroft responds first “I don’t know what that means” and then GPT provides the answer. I’m thinking about adding timeout parameter but yes, it mostly works as it’s now
How you did that I am getting same error
mycroft-msm install GitHub - tomascardososerra/fallback-chatgpt3-skill
INFO - building SkillEntry objects for all skills
INFO - Downloading skill: GitHub - tomascardososerra/fallback-chatgpt3-skill
INFO - Reading from manifest.yml
WARNING - Invalid value type manifest.yml for fallback-chatgpt3-skill: <class ‘list’>
INFO - Problem performing action. Restoring skill to previous state…
INFO - invalidating skills cache
SkillRequirementsException: ‘list’ object has no attribute ‘get’
Hi. I don’t know what you mean by “settings.json” file because it doesn’t add something to the config file or something. Do you have the ‘requests’ dependency installed? Maybe that’s the solution?
pip install requests
I am running Mycroft Classic Core sandbox image on the Mark II btw.