This is a math quiz card prototype powered by Gemini 2.0 Flash. It provides users with feedback by offering hints or full solutions. Solution steps are displayed on the blackboard, and students can ask the AI tutor followup questions. There are options to turn off the voiceover or subtitles.
cd backend
npm installcd ../frontend
npm installGEMINI_API_KEY=your-api-key-herecd backend
node server.jscd ../frontend
npm startGive only a short, single-sentence hint to help a student solve the following problem.
Do not include a full explanation, solution, or answer.
Q: Evaluate ∫₀^{π/2} sin⁴(x)cos³(x) dx
Student's answer: 1/5 (or whichever answer they selected)
Correct answer: 2/35
Q: Evaluate ∫₀^{π/2} sin⁴(x)cos³(x) dx
Student's answer: 1/5 (or whichever answer they selected)
Correct answer: 2/35
Give only the step-by-step math solution with no necessary words, one step per line.
The student answered this math question incorrectly:
Q: Evaluate ∫₀^{π/2} sin⁴(x)cos³(x) dx
They selected: 1/5 (or whichever answer they selected) from a list of multiple choice answers.
Correct answer: 2/35
Give a funny but kind, and concise explanation of why this is incorrect and how to solve it, as if you are a tutor explaining it to the student. Don't make fun of the student's incorrect answer.
This explanation is going to be spoken out loud, so don't include any text that is not meant to be spoken and make the math expressions easy to understand when spoken aloud, such as trig functions and exponents.
The student answered this math question incorrectly:
Q: Evaluate ∫₀^{π/2} sin⁴(x)cos³(x) dx
Correct answer: 2/35
You already gave them the explanation of how to solve the question. Here is what the student said in response: ${studentAnswer}
Respond in a kind and concise manner, as if you are a tutor explaining it to the student.
This explanation is going to be spoken out loud, so don't include any text that is not meant to be spoken and make the math expressions easy to understand when spoken aloud, such as trig functions and exponents.
Give only a short, single-sentence hint to help a student solve the following problem.
Do not include a full explanation, solution, or answer.
-
Use a more powerful AI (that would cost money)
-
Add features to track student progress and make a leaderboard
-
Make the AI tutor character animated and personalize the voice, rather than a static picture
-
Let users personalize their own avatar
- Frontend: React, CSS
- Backend: Node.js + Express
- Technologies: Gemini 2.0 Flash, KaTeX, Web Speech API