Inspiration

I'm 16 and in 11th grade (Première in France). Like most people in my class, when I revise I just reread my notes. And every time it feels fine, I recognize everything, so I think I know it. Then I get the test and realize I don't actually know it that well.

I read that the best way to learn something is to explain it to someone else. It's called the protégé effect, and there's research on it with "teachable agents" like Betty's Brain at Vanderbilt. Students learned more when they had to teach a virtual character.

The problem is that the night before a biology test, I don't have anyone to explain photosynthesis to.

And all the AI study tools I tried do the same thing: the AI explains and you listen. So I wanted to try the opposite. What if the AI was the student and I was the teacher?

What it does

Lumi is a little robot on your phone that doesn't know anything. You teach it.

You pick a chapter and explain it out loud. Lumi listens and asks questions like a real student would, sometimes kind of dumb ones, like "but why does the plant need light if it already has water?". It also says wrong things on purpose, the classic mistakes students make, and you have to catch them and correct it.

The important part is that Lumi only learns what you actually explained. If your explanation is vague, it stays confused, and you can see it in its eyes.

At the end Lumi takes a test. If it gets a question wrong, it's because you didn't explain that part well, which usually means you don't really get it yourself. So you know exactly what to work on.

There's also a mind map that fills up while you teach. Green is what you explained well, orange is what was unclear, and grey is what you forgot to talk about.

How we built it

I didn't want students to need any extra hardware, so Lumi works on a phone. Almost everyone my age has one.

It's a web app made with Next.js that you can install on your phone like a normal app (PWA). It's hosted on Vercel and the data (sessions, what Lumi remembers, progress) is in Supabase.

For the voice, Whisper (through Groq) turns what you say into text, and text-to-speech gives Lumi its voice. I used ElevenLabs for the demo because it sounds the most natural.

The AI part is split in two. The first one plays the student. It never gets the actual lesson, only notes made from what you said, so it can't know more than what you taught it. The second one is like a hidden examiner: it compares Lumi's notes with the real curriculum, finds what's missing, writes the test and grades it.

I only used free API tiers (Groq, and Gemini as a backup) because I wanted it to stay free for students.

For now Lumi works for math, physics, biology and history.

Challenges we ran into

The hardest part was making the AI not know things. An LLM already knows photosynthesis better than me, so at first it kept answering with its own knowledge, which kills the whole idea. Changing the prompt wasn't enough. I had to separate it into two AIs so the "student" one literally only has access to what the user said.

Staying free was also annoying. Every time you talk to Lumi there are several calls (transcription, answer, memory, voice), and free tiers have rate limits. So I tried to reduce the number of calls and only use the examiner at the end.

Speed matters a lot too. If Lumi takes too long to answer it doesn't feel like talking to someone anymore. I kept its answers short and added a thinking animation.

And the mistakes Lumi makes had to be the right ones. Random mistakes don't help, they have to be the ones students actually make.

Accomplishments that we're proud of

I'm proud that the student AI really only knows what you taught it, because that was the hardest thing to get right. I'm also happy that the whole thing runs on free tiers, so anyone with a phone can use it, and that Lumi has a personality. It actually makes revising less boring.

What we learned

I got a lot better at working with AI APIs, especially connecting speech-to-text, the LLM and the voice together, and dealing with rate limits. I learned a lot about prompt engineering, and that sometimes the answer isn't a better prompt but splitting the problem into two AIs. I also spent a lot of time on the design, because if the app doesn't look good, no student is going to open it.

What's next for Lumi — The Robot You Teach to Learn

I want to add all the subjects, starting with languages, since explaining something to Lumi in English or Spanish is good speaking practice. I'd also like to make a class mode where students take turns teaching the same Lumi and the teacher can see which parts the class didn't explain well.

Next I'm going to test it with people from my high school, show it to a teacher and try it with my family, and then improve it with their feedback. I also want to make it open source so anyone can use it.

Don't learn from AI. Teach it.

Built With

Share this project:

Updates