CASE 02 / 04KACADEMIA   /   FIELD NOTESCLOSE [ESC] ×
// 01   SUMMARY READOUT

KACADEMIA

An education platform with an AI tutor that writes questions for teachers and answers for students.

ROLEFull Stack Engineer
DATES / ENGAGEMENTZAWRAQ · 2026
STACKNext.js · PostgreSQL · Prisma · NextAuth · RAG
// 02  THE PROBLEM

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.

// 03  WHAT I BUILT
01 / TECHNICAL DECISION

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
02 / TECHNICAL DECISION

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
03 / TECHNICAL DECISION

Protect the route boundary

Used NextAuth with middleware route protection. Authentication is checked before protected platform routes are reached.

request → middleware → session → protected route
04 / TECHNICAL DECISION

Complete the account lifecycle

Integrated transactional email through SMTP and Nodemailer for alerts, updates and password resets.

account event → Nodemailer → SMTP → inbox
// 04  RESULTS / KNOWN NUMBERS
RAGCOURSE-GROUNDED TUTOR
SQLPOSTGRESQL + PRISMA
AUTHMIDDLEWARE PROTECTED
// 05  SYSTEM ARCHITECTURE
FIG. 02 — SYSTEM MAPARCHITECTURE / NOT A PRODUCT SCREEN
01COURSE CONTENT
02CHUNKS
03EMBEDDINGS
04RETRIEVAL
05GROUNDED ANSWER
Interfaces are only one part of the system.
// 06  WHAT I’D DO NEXT

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.

DISCUSS A PROJECT ↗