KACADEMIA
An education platform with an AI tutor that writes questions for teachers and answers for students.
An online education platform needed to connect teachers and students through classes while keeping course data, authentication and communication in one coherent system. The AI tutor needed to answer from course material and help teachers generate questions.
Ground the tutor in course content
Built a RAG tutor that retrieves course context before producing answers for students or questions for teachers. The retrieval step connects the response to the material being taught.
course content → chunks → embeddings
→ retrieval → grounded answer
Model relationships explicitly
Built a relational PostgreSQL schema with Prisma and deployed it on a cloud server. Typed access keeps the application aligned with its database model.
application → Prisma → PostgreSQL
Protect the route boundary
Used NextAuth with middleware route protection. Authentication is checked before protected platform routes are reached.
request → middleware → session → protected route
Complete the account lifecycle
Integrated transactional email through SMTP and Nodemailer for alerts, updates and password resets.
account event → Nodemailer → SMTP → inbox
I would build a small evaluation set from actual course questions and track whether retrieval found the right source material. I would also make the tutor's sources easier for students and teachers to inspect, so an answer can be checked against the lesson.