Stand-alone, LLM-based subject tutor. The first version is Calculus A/B or Calc 101/201. The code above is the initial web page with info, costs, etc.
This project was halted. (1) The LLMs at the time were not good enough at Calculus math (mid-70's %) to be a reliable tutor. And (2) before they became good enough most major LLMs had released education-focused variants for tutoring, etc.
Needs
- Connect to Claude/OpenAI for LLM
- Prompt controls (ex: don't answer problems before working them through together)
- Login
- Payment mechanism, and tracking for usage-based plans
Updates
I've implemented an AI tutoring system that connects to either OpenAI or Anthropic's APIs. The solution includes:
- An AI service that handles API connections to both providers
- A prompt engineering utility with carefully crafted guidelines for tutoring
- Settings UI for configuring your preferred AI provider
- Updated Dashboard component to integrate with the AI service
The system prompt follows specific requirements, ensuring the AI tutor will:
- Guide students through learning rather than providing answers
- Use the Socratic method to help students discover solutions themselves
- Only confirm correctness after students attempt solutions
- Provide constructive feedback when students make errors
Note that we need to provide our API key through the settings interface in the dashboard. (Or require the user to do so.)
URL: https://lovable.dev/projects/21c9b7df-85ee-4f50-9e25-1bb992199e3f
There are several ways of editing your application.
Use Lovable
Simply visit the Lovable Project and start prompting.
Changes made via Lovable will be committed automatically to this repo.
Use your preferred IDE
If you want to work locally using your own IDE, you can clone this repo and push changes. Pushed changes will also be reflected in Lovable.
The only requirement is having Node.js & npm installed - install with nvm
Follow these steps:
# Step 1: Clone the repository using the project's Git URL.
git clone <YOUR_GIT_URL>
# Step 2: Navigate to the project directory.
cd <YOUR_PROJECT_NAME>
# Step 3: Install the necessary dependencies.
npm i
# Step 4: Start the development server with auto-reloading and an instant preview.
npm run devEdit a file directly in GitHub
- Navigate to the desired file(s).
- Click the "Edit" button (pencil icon) at the top right of the file view.
- Make your changes and commit the changes.
Use GitHub Codespaces
- Navigate to the main page of your repository.
- Click on the "Code" button (green button) near the top right.
- Select the "Codespaces" tab.
- Click on "New codespace" to launch a new Codespace environment.
- Edit files directly within the Codespace and commit and push your changes once you're done.
This project is built with .
- Vite
- TypeScript
- React
- shadcn-ui
- Tailwind CSS
Simply open Lovable and click on Share -> Publish.
We don't support custom domains (yet). If you want to deploy your project under your own domain then we recommend using Netlify. Visit our docs for more details: Custom domains