Welcome to Homework Helper! This simple app allows you to ask any homework question and receive help from multiple AI agents. The AI agents collaborate to clarify your question, generate a detailed solution, and review the solution for quality.
Class Slides: Link
This app is made to showcase how students can make a simple Streamlit app demo from Lecture #14 in the CMU 82-183: AI for Humanities Summer 2024 Course (I am the invited speaker for this lecture).
- Clarification Agent: Ensures your question is clear and requests additional details if necessary.
- Solution Agent: Provides a detailed solution to your homework question.
- Quality Assurance Agent: Review the solution for accuracy and suggest improvements.
- Concise Answer Agent: Summarizes the solution into a concise answer.
- Python 3.6 or higher
- Pip (Python package installer)
-
Clone the repository:
git clone https://github.com/Tonyhrule/Homework-Helper.git cd homework-helper
-
Create a virtual environment (optional but recommended):
python3 -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required packages:
pip install -r requirements.txt
- Try typing pip3 if pip doesn't work
-
Create a
.env
file in the project directory and add your OpenAI API key:OPENAI_API_KEY=your_openai_api_key
-
Run the Streamlit app:
streamlit run streamlit_app.py
-
Open your web browser and navigate to the URL provided by Streamlit (usually
http://localhost:8501
). -
Enter your homework question in the text area and press "Get Help" to see the answers.
homework-helper/
│
├── .env # Environment variables
├── requirements.txt # List of required Python packages
├── agents.py # AI agent functions
└── streamlit_app.py # Streamlit app script
This project is licensed under the MIT License. See the LICENSE file for details.