TrivAI is an mobile application that leverages LLMs to generate questions and study materials for a user. The backend utilizes a serverless architecture that enables reduced latency and more reliable responses.
To run the app locally, you will need to have the following:
- Node
-
Clone this repository to your local machine.
-
Navigate to the
trivai-mobile
directory and install the required packages by running the following command:yarn install
-
Set up your API access by requesting the API route.
-
In the
lib
directory, create akey.js
file and add the API route as follows:export default AWS_HOST = "<HOST LINK>";
-
In the
lib
directory, create aocrapikey.js
file and add the API key for the CV portion as follows: (To get a free key, go to ocr.space)export default key = "<key>";
-
Launch the server.
yarn start
-
Build and run the app on your desired device or simulator.
-
Use the app to generate quizzes and test your knowledge!
If you would like to contribute to this project, please follow these steps:
- Fork this repository.
- Create a new branch with your proposed changes.
- Commit and push your changes to your fork.
- Submit a pull request describing your changes and their purpose.