Coursebox
AI course creation, tutoring and learning-management platform
Built the AI course-generation and editing agent, per-task model routing, the RAG tutor, rubric-based AI grading, and the evaluation and prompt-release pipeline behind Coursebox, an AI-native learning platform.
Coursebox: AI course creation, tutoring and learning management
20–60 s
Course outline generation
95%+
Tutor answers with source references
under 1 s
Tutor time to first token (p50)
0.70+
AI grading agreement (Cohen's kappa)
Stack
Overview
Coursebox is an AI-native learning platform that helps educators, course creators and organizations turn existing knowledge into structured, interactive training. AI helps authors plan courses, turns source material into lessons, edits content through structured operations, answers learner questions from approved course knowledge and supports assessment.
The central idea: AI assists and people remain in control. Courses are stored as sections, lessons and typed content blocks, and generated content is editable, versioned and explicitly published by an authorized user.
The problem
Creating digital training is fragmented: manuals sit in PDFs, slide decks with subject-matter experts, videos in shared drives and assessments in separate tools.
- Slow course production: experts must manually turn knowledge into objectives, lessons, examples and assessments.
- Limited learner support: learners need help outside training hours, while instructors answer the same questions repeatedly.
- Inconsistent assessment: open-ended work is slow to grade, and feedback varies between reviewers.
My role
I worked at Coursebox as an AI engineer and built two areas of the product: AI course generation and the editing agent, and the RAG tutor with AI grading and its evaluation pipeline. Product direction and customer relationships belong to Coursebox.
What I built
AI course generation and editing agent
- A two-stage course-generation workflow: GPT-4.1 proposes a schema-valid outline, the creator approves or edits it, and only then are lessons, quizzes and activities generated.
- A tool-using editing agent that changes a course only through schema-validated operations on sections, lessons and blocks, never through direct database access.
- Per-task model routing on Azure OpenAI (GPT-4.1 and GPT-4.1-mini), with failover to the same models on the OpenAI API.
- Media and scenario jobs: Gemini images, ElevenLabs narration with Azure AI Speech as fallback, HeyGen presenter videos, and branching role-play scenarios generated as validated graphs.
RAG tutor and AI lifecycle
- Ingestion with Mistral OCR, heading-aware chunking and Pinecone embeddings, and a grounded tutor with Cohere Rerank 3.5, source references and a GPT-4.1-mini grounding check.
- Rubric-based AI grading for written, file and audio submissions with facilitator review.
- An evaluation and release loop: golden datasets, Ragas and LLM-judge gates, Langfuse tracing, and prompts released by label with a canary step.
Results
- Course generation: an outline in 20–60 seconds, and a full text-only course in 3–10 minutes.
- Tutor faithfulness: Ragas faithfulness of 0.85–0.90 or higher (85–90 on the 0–100 scale used in the evaluation gates).
- Source references: 95% or more of tutor answers include source references.
- Tutor speed: time to first token under 1 second at p50 and under 2 seconds at p95.
- AI grading: agreement with facilitators of Cohen's kappa 0.70 or higher.
- Instructor edits: instructors edit 20–40% of generated content blocks.
- AI cost: about $0.5–2 per text-only course and about $0.005 per tutor answer.
Tech stack
| Layer | Technologies |
|---|---|
| Frontend and mobile | Next.js, React Native (Expo) |
| Backend | NestJS, PostgreSQL (Cloud SQL), Redis, BullMQ, Google Pub/Sub |
| AI | Python FastAPI, LlamaIndex, Azure OpenAI (GPT-4.1, GPT-4.1-mini, text-embedding-3-small), Cohere Rerank 3.5, Mistral OCR, Google Document AI |
| Retrieval and evaluation | Pinecone, Ragas, Langfuse |
| Media | Gemini 2.5 Flash Image, ElevenLabs, Azure AI Speech, HeyGen, Mux |
| Integrations | Stripe, PayPal, Paystack, Shopify, WooCommerce, LTI 1.3, SCORM, xAPI, Zapier, HubSpot |
| Infrastructure | Google Cloud Run, Terraform, GitHub Actions |
Related case studies


