TrivAI is an iOS 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:
- Xcode (version 13.2 or later)
- Python (version 3.8 or later)
- OpenAI API key
-
Clone this repository to your local machine.
-
Navigate to the
backend
directory and install the required Python packages by running the following command:pip install -r requirements.txt
-
Set up your OpenAI API key by following the instructions in the OpenAI API documentation.
-
In the
backend
directory, create asecrets.py
file and add your OpenAI API key as follows:OPENAI_API_KEY=<your-api-key-here>
- Open the
TrivAI.xcworkspace
file in Xcode. - 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.