Back to Projects
AI Tutor

AI Tutor

Work2026

Describe a course. Teach it to mastery.

AI ML tech Lead

Key Highlights

  • ▸Led a platform where an the user can create a course with on any subject matter with a clear outline, prior learning assessment and modular customizations to suit the learning style, publishes it, and an AI tutor teaches it
  • ▸Shipped course creation that drafts tracks, topics, objectives, and questions from a description, then revises them in plain language
  • ▸Designed a turn pipeline where teaching moves are chosen in code and the model only phrases the reply
  • ▸Built prior learning assessments, mastery checks, spaced review, and progress so advancement follows demonstrated skill
  • ▸Grounded every example in the learner’s role, decision, and domain

Overview

As AI ML tech Lead, I led this platform for creating a course and teaching it. An admin describes who the course is for and what learners should be able to do. An LLM drafts the tracks, topics, objectives, concepts, and questions, and the admin watches the outline take shape. They revise the course in plain language, fill any topic, or write its questions, and they can edit every field by hand. Publishing is what puts it in front of learners: private, shared with admins, or public in the catalog.

A learner then enrolls, or an admin enrolls them. They set their role, the decision they care about, and their domain, and work through one topic at a time. Sessions stay short. Examples are written around that context, and the next step depends on how the last answer went. Each track ends in a mastery check. Progress shows what stuck and what is due for review.

The same editor and tutor run any subject. A causal-inference course, from confounding through uplift modeling, was the first one published.

Architecture

Four services, one learning record:

  • Web app: Learner home, learn path, tutor session, mastery check, progress, and profile, plus the admin curriculum editor. Next.js route handlers forward the Clerk session. The browser never calls the backends directly
  • Aggregator: Backend-for-frontend that verifies the session and routes learner, admin, tutor, and authoring calls
  • Tutor service: FastAPI system of record for users, versioned curricula, enrollments, sessions, mastery, and spaced review
  • LLM orchestrator: Tutor turns, curriculum authoring jobs, and coach notes. It stores no learner state; the tutor service does

Key Technical Contributions

Course Creation

The app’s main way to add a subject is to create the course inside it. An admin gives a title, who it is for, and what learners should be able to do, and chooses the size. The model drafts the tracks, topics, objectives, concepts, and questions, streamed so the outline appears as it is written. A later request revises the course in plain language, fills one topic, or writes its questions. A change summary shows what was added, edited, or removed, and the change can be undone. Starting blank is the other path: one empty track, then topics and questions written by hand or with the model. Nothing reaches learners until the course is published. Prompts are loaded from LangSmith and checked at startup, so a missing or mismatched prompt fails the deploy instead of failing in front of a learner.

Explainable Tutoring Turns

Designed the turn pipeline so the teaching move is chosen in code: plan the lesson, grade the answer, draw the next move from a teaching policy, then stream the tutor’s reply. The policy trace is stored with the turn, so a reply can be explained after the fact. Choice questions are graded in code. Short answers go to an assessor.

Learner-Context Examples

The tutor writes explanations, quizzes, and deeper dives around the learner’s role and domain, on whatever curriculum they are in. Session controls are Teach me, Quiz me, Go deeper, and Skip. Skip records the topic for later review instead of dropping it.

Mastery and Review

Built six-question mastery checks at the end of each track, plus streaks, topic scores, and spaced-repetition reviews. A learner moves on because they showed the skill, and Progress tells them what to revisit.

Technologies

  • AI: Vertex AI model gateway, LangSmith prompts, streamed structured replies for tutor turns and authoring jobs
  • Backend: Python, FastAPI, PostgreSQL
  • Frontend: Next.js, Clerk, server-sent events
  • Learning record: Versioned curricula, session transcripts, mastery attempts, spaced review

Impact

Gives a team a way to create a course by describing it, publish it, and teach it with the same tutor. Learners get a record of what they can do and what they still need to review. The next course does not require a new application.