How gayatri-education/gayatri-demo works
Gayatri is an offline adaptive-learning desktop platform. A learner submits a question through the application bridge; the tutor scopes retrieval to the active course, evaluates the turn using Socratic pedagogy, synthesizes a grounded response, and records learning state. Curriculum ingestion and teacher/admin visibility are separate product branches. The README describes additional capabilities, but the supplied tree has no UI asset directory and source excerpts are partial; the graph therefore follows only relationships shown in excerpts, the source index, or README statements.
Main entry points: rag/service.py Scoped RAG service · main_window.py Desktop window · orchestrator.py Tutor orchestrator · courses/service.py Course catalog
Components 24
Desktop application
- Application entry
app/main.py - Desktop window
app/windows/main_window.py - Web channel bridge
app/bridge/facade.py - Teacher portal
app/portals/teacher/controller.py - Admin portal
app/portals/admin/controller.py
Curriculum management
- Course catalog
central_platform/courses/service.py - Curriculum container
central_platform/courses/packer.py
Socratic tutoring
- Tutor orchestrator
central_platform/tutor/orchestrator.py - Pedagogical evaluation
central_platform/learning/actions.py - Local response engine
central_platform/ai/adapters.py
Knowledge retrieval
- Scoped RAG service
central_platform/rag/service.py - Document parsers
central_platform/rag/parsers.py - Text cleaning
central_platform/rag/cleaner.py - Ingestion security
central_platform/rag/security.py - Rank fusion
central_platform/rag/fusion.py - Semantic retrieval
central_platform/rag/semantic.py
Learning and governance
- Learner state
central_platform/learning/state.py - Domain schemas
central_platform/models/schema.py - Runtime configuration
core/config.py - Runtime integrity checks
core/tamper.py - Obfuscation utilities
core/obfuscation.py
Other components
- Learner
- Teacher
- Administrator
Connections 38
- Learner → Application entry: starts app
README.md - Application entry → Desktop window: opens window
app/main.py - Application entry → Runtime integrity checks: enforces checks
app/main.py - Desktop window → Course catalog: creates
app/windows/main_window.py - Desktop window → Scoped RAG service: creates
app/windows/main_window.py - Desktop window → Learner state: creates
app/windows/main_window.py - Desktop window → Tutor orchestrator: creates
app/windows/main_window.py - Desktop window → Web channel bridge: registers
app/windows/main_window.py - Learner → Web channel bridge: submits query
app/bridge/facade.py - Web channel bridge → Tutor orchestrator: processes turn
app/bridge/facade.py - Web channel bridge → Scoped RAG service: ingests upload
app/bridge/facade.py - Tutor orchestrator → Course catalog: gets course
central_platform/tutor/orchestrator.py - Tutor orchestrator → Scoped RAG service: retrieves evidence
central_platform/tutor/orchestrator.py - Tutor orchestrator → Pedagogical evaluation: evaluates turn
central_platform/tutor/orchestrator.py - Tutor orchestrator → Local response engine: synthesizes response
central_platform/tutor/orchestrator.py - Tutor orchestrator → Learner state: records event
central_platform/tutor/orchestrator.py - Course catalog → Curriculum container: loads bundle
central_platform/courses/service.py - Scoped RAG service → Curriculum container: loads curriculum
central_platform/rag/service.py - Scoped RAG service → Document parsers: parses uploads
central_platform/rag/service.py - Document parsers → Text cleaning: cleans text
central_platform/rag/parsers.py - Scoped RAG service → Ingestion security: validates ingestion
central_platform/rag/service.py - Scoped RAG service → Rank fusion: fuses rankings
central_platform/rag/service.py - Scoped RAG service → Semantic retrieval: queries index
central_platform/rag/service.py - Teacher → Teacher portal: views cohort
README.md - Teacher portal → Course catalog: gets course
app/portals/teacher/controller.py - Teacher portal → Learner state: reads progress
app/portals/teacher/controller.py - Administrator → Admin portal: views topology
README.md - Admin portal → Course catalog: lists courses
app/portals/admin/controller.py - Admin portal → Scoped RAG service: counts indexed cards
app/portals/admin/controller.py - Course catalog → Domain schemas: builds course models
central_platform/courses/service.py - Scoped RAG service → Domain schemas: builds chunks
central_platform/rag/service.py - Learner state → Domain schemas: uses state models
central_platform/learning/state.py - Pedagogical evaluation → Domain schemas: uses event models
central_platform/learning/actions.py - Local response engine → Domain schemas: uses shared schemas
central_platform/ai/adapters.py - Local response engine → Obfuscation utilities: uses utilities
central_platform/ai/adapters.py - Application entry → Runtime configuration: reads settings
app/main.py - Desktop window → Runtime configuration: reads window settings
app/windows/main_window.py - Scoped RAG service → Runtime configuration: reads retrieval settings
central_platform/rag/service.py