Homework photo in → animated AI tutor lesson out, in English/Hindi/Kannada/Tamil,
with in-lesson questions, handwritten-answer grading, remediation loops to mastery,
and parent progress reports. Full plan: docs/plan-v2.md.
Backend — working end-to-end, 12/12 tests passing:
- Auth + DPDP consent gate, JWT (Phase 1)
- Kid profiles: 4-per-parent cap, per-kid PIN gate, cascade erasure (Phase 1, §5.3)
- Multi-page content upload, manual page reorder, image moderation hook, OCR → LLM structuring → subject classification (Phase 2)
- 12-persona registry with per-language voice mapping (Phase 3 config; art assets come from the inpainting pipeline + human gate — not yet generated)
- Lesson pipeline: script → fail-closed moderation → TTS → viseme timeline → bundle with 7-day expiry; main = async+notify, remediation = playable-first (Phase 4 v2 delivery split)
- In-lesson answer grading with subject-aware rubric registry (Phases 5/6)
- Handwriting verification with mandatory confirm/edit — grading uses edited text, never raw OCR (Phase 6)
- Remediation loop: diagnose concept → instant scoped micro-lesson → follow-up → mastery or needs-attention at MAX_CYCLES (Phase 7)
- Per-subject progress summary + Celery Beat purge/report tasks (Phase 8)
- Provider abstraction for LLM/TTS/STT/OCR/vision/avatar/moderation — all
.env-swappable; mock providers make everything run with zero GPU
Mobile — Flutter scaffold (compiles once you run flutter create . && flutter pub get;
not yet device-tested): login+consent, kid list, PIN pad, multi-page upload with
drag-reorder, animated player (viseme frame swap, question pause points, remediation
push), verification edit screen, progress screen.
Not yet built: real GPU adapters wired but unexercised (Ollama prompt tuning, XTTS/MMS, Whisper, Qwen2-VL, Surya), persona art generation (Phase 3 inpainting pipeline + human approval), push notifications (FCM hook marked in code), monthly email delivery, Phase 9 eval harness, Phase 10 parental controls, Phase 11 SadTalker.
cd backend
python3 -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
pytest tests/ -q # 12 passed
uvicorn app.main:app --reload # http://localhost:8000/docsDefaults: SQLite, local-dir object store, inline jobs (EAGER_JOBS=true),
all AI providers mocked. The full product loop works: try it from /docs
(signup → kid → upload → lesson → answers → verify → progress).
cp backend/.env.example backend/.env # edit JWT_SECRET
docker compose up --build # postgres+redis+minio+ollama+api+worker
docker compose exec ollama ollama pull llama3.1:8b-instruct-q4_K_MThen flip providers in .env (LLM_PROVIDER=ollama, TTS_PROVIDER=router,
OCR_PROVIDER=tesseract, …) — config change only, never code.
GPU host: uncomment the nvidia block in docker-compose.yml and the GPU extras
in requirements.txt.
cd mobile
flutter create . --platforms=android,ios # generates android/ios shells around lib/
flutter pub get
flutter run --dart-define=VTUTOR_API=http://10.0.2.2:8000 # Android emulator