Skip to content

Homework Helper is a simple app that uses AI agents to help answer homework questions

License

Notifications You must be signed in to change notification settings

Tonyhrule/Homework-Helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Homework Helper 📚

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).

Features

  • 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.

Installation

Prerequisites

  • Python 3.6 or higher
  • Pip (Python package installer)

Steps

  1. Clone the repository:

    git clone https://github.com/Tonyhrule/Homework-Helper.git
    cd homework-helper
  2. Create a virtual environment (optional but recommended):

    python3 -m venv venv
    source venv/bin/activate  # On Windows use `venv\Scripts\activate`
  3. Install the required packages:

    pip install -r requirements.txt
    • Try typing pip3 if pip doesn't work
  4. Create a .env file in the project directory and add your OpenAI API key:

    OPENAI_API_KEY=your_openai_api_key
    

Usage

  1. Run the Streamlit app:

    streamlit run streamlit_app.py
  2. Open your web browser and navigate to the URL provided by Streamlit (usually http://localhost:8501).

  3. Enter your homework question in the text area and press "Get Help" to see the answers.

Project Structure

homework-helper/
│
├── .env                # Environment variables
├── requirements.txt    # List of required Python packages
├── agents.py           # AI agent functions
└── streamlit_app.py    # Streamlit app script

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

Homework Helper is a simple app that uses AI agents to help answer homework questions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages