This is the github repo for the project ResQ AI presented at the AI InnovateFest 2023 organized by Alibaba Cloud.
ResQ AI is Llama powered app for 911 emergencies. It is a chatbot for emergency response and allows users to report emergency cases and it provides relevant instruction/guides based on their situation.
This section has both the mobile app version and the website version.
- The directory
web_app
contains the code for the mobile app. - The directory
website
contains the code for the website.
This project uses Alibaba Cloud platform to host the Llama-7B model.
-
Firstly, you will need an API from Alibaba's Elastic Algorithm Service.
This Tutorial by Dr. Farruh provides a detailed step-by-step guide.
Once you successfully create the API, you will get the
API url
andauthentication token
.You need to put these in the
lib/services/api_service.dart
in lines 16 & 18. -
Secondly, EmailJS is used to send custom emails. You need to create an account in EmailJS.
You grab the
serviceId
,templateId
anduserId
and you insert them inlib/services/api_service.dart
in lines 24-27.Note: For demo purposes, I have only used two template IDs. You can create templates for each service provided by ResQ AI and customize the emails as needed.
That's it!
Now to run the mobile app:
cd web_app
flutter run
To run the website version:
cd website
flutter run
Create an issue and I will look into it.