🧠 Inspiration
Most AI tutors behave like chatbots: every time a learner asks a question, the model generates a brand-new explanation.
But human tutors don’t work that way.
A good teacher first diagnoses why a student is confused, then teaches using multiple perspectives until understanding clicks. I wanted to build an AI system that follows human pedagogy, not chat behavior.
That idea became ClarityAI.
🚀 What it does
ClarityAI is a pedagogical learning system that separates diagnosis from instruction.
When a learner describes their confusion, ClarityAI:
- Uses Gemini once to identify the underlying misconception
- Generates a structured Pedagogical Diagnostic Packet (PDP)
- Reuses that packet across multiple explanation views — without re-calling the model
Learners can instantly switch between Analogy, Steps, Example, and Formal explanations, similar to working with a real tutor.
🛠️ How we built it
ClarityAI is built using:
- Python + Flask for a lightweight learning backend
- Google Gemini API with a single-call architecture per question
- Structured JSON outputs to enforce pedagogical consistency
- Session-based learning state to track mastery and trajectory
Mastery is computed as:
$$ \text{Mastery} = \frac{1}{n} \sum_{i=1}^{n} c_i \times 100 $$
where ( c_i ) is the confidence score from each diagnostic attempt.
⚠️ Challenges we ran into
- Enforcing strict JSON-only responses from Gemini
- Designing prompts that sound like a human educator, not a chatbot
- Preventing repeated model calls while still enabling multi-view explanations
- Balancing explanation depth — not too verbose, not too shallow
🏆 Accomplishments we're proud of
- Single-call Gemini architecture reused across teaching views
- Clear separation between misconception diagnosis and instruction
- Multi-view explanations that feel pedagogical, not conversational
- A judge-visible mode explaining system behavior
ClarityAI works for any conceptual confusion — not just coding.
📚 What we learned
We learned that structure beats repetition.
By forcing the model to diagnose before teaching, Gemini becomes more reliable, explainable, and educationally useful.
🔮 What’s next for ClarityAI
- Long-term learner profiles
- Cross-topic mastery graphs
- Adaptive teaching strategies
- Classroom and tutoring platform integrations
ClarityAI is not a chatbot. It’s a learning system.
Log in or sign up for Devpost to join the conversation.