All projects

Education

YouLearn

AI tutor and study platform for students

Built the RAG intake pipeline, the AI tutor with text and voice modes, the multi-provider model router and the AI-generated study tools for YouLearn, an AI tutor that teaches from a student's own course materials.

YouLearn: an AI tutor and study platform for students

1 / 5
YouLearn: an AI tutor and study platform for students

YouLearn: an AI tutor and study platform for students

92–98%

References that support their sentence

85–95%

Quiz questions passing checks first try

0.6–1.2 s

Median start of a chat answer

30–50%

Lower AI cost per active student

Stack

Next.js + TypeScriptReact Native (Expo)Node.js (Express)Vercel AI SDKGemini · Claude · GPT · GrokLiveKit AgentsElevenLabs ScribePostgreSQL + pgvectorPython workersts-fsrsAWS ECS Fargate

Overview

YouLearn is an AI tutor that learns from a student's own course materials. A student uploads slides, PDFs, YouTube lectures or class recordings, and YouLearn turns them into a personal study system: a tutor that answers with references to the material, summaries, quizzes, practice exams, flashcards and audio podcasts.

The central idea: every answer is grounded in the student's own material, and every study tool is generated from it.

The problem

A typical course produces material in many formats, and students spend much of their study time preparing to study instead of learning.

  • Slow manual prep: writing flashcards and practice questions by hand can take longer than studying.
  • Unwatched recordings: finding one explanation inside a 90-minute recording takes too long.
  • Untrustworthy AI answers: chat assistants answer from general knowledge, not the course, and sources are hard to check.

My role

I worked at YouLearn as an AI engineer and built three areas of the product: the content intake pipeline, the AI tutor (text chat and voice mode), and the AI-generated study tools. YouLearn set the product direction and owned growth, marketing and user research.

What I built

Content intake

  • An intake pipeline that turns every material into text segments that keep their page, slide or timestamp.
  • Gemini 2.5 Flash transcription for scanned pages and handwritten notes, and ElevenLabs Scribe lecture transcription with word timestamps.
  • Structure-aware chunking, gemini-embedding-001 vectors in pgvector and PostgreSQL full-text search.

AI tutor

  • Tutor chat that searches only the student's own material and removes any reference not pointing to a passage retrieved in that turn.
  • A model router: Gemini 2.5 Flash for chat, Claude Sonnet 4.5 for step-by-step science and math, and GPT-5 mini for quizzes and grading.
  • Voice mode on LiveKit Agents: ElevenLabs Scribe v2 Realtime, Gemini 2.5 Flash with the text tutor's retrieval tools, gpt-4o-mini-tts and interruption handling.

AI-generated study tools

  • Section-by-section summaries and key terms, and AI-generated flashcards with FSRS spaced repetition.
  • Quiz and exam generation with five question types, answer breakdowns linked to the source passage, and rubric grading for short answers.
  • A podcast generator: a two-host script voiced with Gemini 2.5 Flash TTS.

Results

  • References: 92–98% of the tutor's references supported the sentence they were attached to.
  • Quiz quality: 85–95% of generated quiz questions passed the answerability check on the first try.
  • Flashcards: 70–85% of AI-generated flashcards were kept without edits.
  • Speed: chat answers started in 0.6–1.2 seconds (median); voice mode replied 0.8–1.5 seconds after the student stopped speaking.
  • Transcription: lecture word error rate of 5–10%.
  • AI cost: AI cost per active student 30–50% lower after routing each task to a fitting model, compared with one large model for everything.

Tech stack

LayerTechnologies
WebNext.js (App Router), TypeScript, Tailwind CSS, shadcn/ui, AI SDK UI, PDF.js, Tiptap, TanStack Query
MobileReact Native, Expo, Expo Router, expo-sqlite, expo-audio, React Native Firebase, react-native-iap, EAS
BackendNode.js, Express, Drizzle ORM, Zod, Python workers, Amazon SQS
AIVercel AI SDK, Gemini 2.5 Flash and Pro, Claude Sonnet 4.5, GPT-5 mini, Grok 4 Fast, gemini-embedding-001, LiveKit Agents, ElevenLabs Scribe, gpt-4o-mini-tts, ts-fsrs
DataPostgreSQL + pgvector, Redis, Amazon S3, CloudFront
InfrastructureAWS ECS Fargate, Amazon RDS, Terraform, GitHub Actions, Firebase, Stripe, PostHog, Sentry

Related case studies