Tutor Chatbot.
Help the student find the next step.
A Socratic tutor for programming concepts. It starts with questions and analogies, then escalates through hints before revealing an explained answer.
A FastAPI and Next.js application combining a LangGraph tutoring workflow, PDF retrieval, streamed responses, and Judge0 code execution.
Track the topic, understanding, and misconceptions in explicit state. Choose the next teaching strategy from four hint levels instead of relying on a single prompt.
The example conversation moves from a recursion analogy to executing a factorial program. Uploaded study material supplies additional context through ChromaDB retrieval.
Tutoring workflow
Extract topic → assess understanding → choose strategy → respond. PDF retrieval and code execution provide context when relevant.
Hint levels: analogy → targeted hint → leading question → explained answer.
