calpoly-csai / swanton

Swanton Pacific Ranch chatbot with a knowledge graph
MIT License
3 stars 1 forks source link

RPi Assistant Script Changes for New Story Structure #30

Closed chidiewenike closed 3 years ago

chidiewenike commented 3 years ago

Summary

Updated the RPi scripts to log user queries and account for the changes in the story structure. Also added the updated audio data, answer mapper JSON, and Rasa data.

Details

The previous implementation had a simple single question/single answer structure. The new structure provides follow-up questions and users have 60 seconds to respond per conversation. The bot can now select from a list of generic utterances for farewells and facts. Updates needed to be made in the answer_to_file.json file which now contains generic utterances and maps to their corresponding audio files. This data is now loaded into the run_assistant.py script and when the bot encounters a generic utterance prediction from Rasa, it selects from the stored data in the JSON file. The script now logs user queries which was written by @masonmcelvain.

Testing

The system was tested on an RPi 4 - 4 GB without any issues.

chidiewenike commented 3 years ago

I also removed the old speech samples and added the generated audio for the Chatbot Stories Google Sheet as of 12/13/2020.