A Socratic AI tutor for California CSLB (contractor license) exam prep. The learner picks an answer and explains their reasoning. Coach Vale never just gives the answer — it probes with guiding follow-up questions and tracks pass probability across turns.
Presents a CSLB-style multiple-choice question. After the learner selects an option and types a short explanation, Groq (llama-3.3-70b-versatile) replies with a Socratic coaching turn: it names what the learner got right, surfaces what they missed, and asks one guiding follow-up. Pass probability updates each turn.
Learner's selected answer option (A–D) + free-text explanation of their reasoning. Conversation history passed across up to 3 turns.
Socratic coaching reply with guiding follow-up question. Pass-probability meter update each turn. Depth rating (surface / partial / deep) shown in-bubble after each Coach Vale response.
/api/explain-back is used verbatim: Socratic, ≤80 words, one follow-up per turn, plain language (8th-grade)./api/groq proxy — no key in this file.