Skip to content

feat: add adaptive AI mentor system - #121

Open
ishijain2212 wants to merge 4 commits into
vicharanashala:mainfrom
ishijain2212:feature/adaptive-ai-mentor
Open

ishijain2212 wants to merge 4 commits into
vicharanashala:mainfrom
ishijain2212:feature/adaptive-ai-mentor

Conversation

@ishijain2212

Copy link
Copy Markdown

Summary

Adds an adaptive AI mentor system to PyBe that personalizes mentoring based on learner reasoning, misconceptions, relevant learning history, learner profile, and adaptive difficulty.

What changed

  • Added scenario-aware reasoning and Python code generation
  • Added relevant learner history selection
  • Added learner profile generation
  • Added adaptive mentoring strategies:
    • REMEDIATE
    • EXPLAIN
    • ENCOURAGE
    • CHALLENGE
  • Added adaptive difficulty:
    • FOUNDATION
    • INTERMEDIATE
    • ADVANCED
  • Added Gemini-powered mentor responses
  • Added structured mentor response validation and fallback handling
  • Added structured mentor output to the frontend
  • Integrated the complete adaptive pipeline into session processing

Adaptive flow

Learner reasoning
→ misconception/history/profile analysis
→ mentoring strategy
→ adaptive difficulty
→ Gemini mentor
→ personalized next question

Example

For the "Find the Longest Pencil" scenario, the system detected a gap around initializing the current longest value and selected:

  • Strategy: REMEDIATE
  • Difficulty: FOUNDATION

Gemini then generated a corrective question targeting that specific gap.

Testing

Tested the complete session flow locally with the adaptive mentor and verified scenario-grounded Python generation and personalized mentor output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant