Skip to content

Latest commit

Β 

History

History
79 lines (56 loc) Β· 2.04 KB

File metadata and controls

79 lines (56 loc) Β· 2.04 KB

AI Math Tutor

iOS Math Problem Solver with Step-by-Step Explanations

Swift Version Platform iOS License


Overview β€’ Features β€’ Installation β€’ Architecture β€’ Usage β€’ Requirements


πŸ“– Overview

AI Math Tutor helps students solve math problems by taking a photo and getting AI-powered step-by-step explanations. The app uses OpenAI's gpt-4o-2024-08-06 model to analyze problems and provide detailed solutions.

✨ Features

  • πŸ“Έ Capture homework problems with camera
  • 🎯 Interactive cropping with adjustable bounding box
  • πŸ€– AI-powered problem analysis
  • πŸ“ Step-by-step solution explanations
  • πŸ’¬ Follow-up questions support
  • πŸ“š History of past questions and answers

πŸ“± Installation

  1. Clone the repository
  2. Open ai tutors.xcodeproj
  3. Add your OpenAI API key to OpenAIService.swift
  4. Build and run

πŸ— Architecture

File Structure

  • Views: SwiftUI-based UI components
  • ViewModels: MVVM architecture with Combine
  • Services: OpenAI API integration
  • Models: Data structures for questions/answers
  • Utils: Image processing helpers

πŸš€ Usage

  1. Launch app and allow camera access
  2. Take photo of math problem
  3. Adjust crop area with bounding box
  4. Confirm to send to AI for analysis
  5. View step-by-step solution
  6. Ask follow-up questions if needed

βš™οΈ Requirements

  • iOS 17.0+
  • Xcode 15.0+
  • Swift 5.9+
  • OpenAI API key
  • Camera access

πŸ“„ License

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