Idea · Jul 17, 2026
Browser-Native Socratic Tutor
Students build a fully in-browser CS tutor powered by a quantized small LLM via WebLLM, with Socratic questioning mode, adaptive hint depth, and a private local conversation history stored in IndexedDB.
What it would do
This multi-week assignment teaches students the emerging skill set of browser-native AI: loading a quantized small model (Phi-3-mini or Qwen2.5-1.5B) via WebLLM with WebGPU acceleration, managing a local conversation history in IndexedDB with no server calls, and implementing Socratic tutoring logic that progressively reveals hints only after failed attempts. The assignment has three graded phases: (1) get a model running in the browser and producing coherent responses; (2) add a Socratic mode that asks one probing question before giving any direct answer, with a configurable minimum-attempts threshold; (3) build a session dashboard showing which programming concepts the student visited and how hint depth evolved over the session. No API keys, no server, and no data leaving the device: privacy is a first-class feature and part of the grading rubric.
Key features
- Full in-browser LLM inference via WebLLM and WebGPU, no API key required
- Socratic mode that delays direct answers with a configurable probing-question phase
- Adaptive hint depth that increases specificity after each consecutive failed attempt
- Local session dashboard with concept-visit history stored entirely in IndexedDB