Skip to main content

AI & Intelligence Infrastructure Overview

LearnWay is architected from the ground up as an AI-powered learning platform. Rather than treating artificial intelligence as an isolated chatbot add-on, LearnWay embeds Google Gemini generative intelligence across every layer of the learner lifecycleβ€”from initial onboarding assessments and contextual lesson tutoring, to persistent career mentorship, automated quiz generation, and multilingual curriculum localization.

Dual-Tier AI Architecture

LearnWay implements a dual-tier execution model for AI capabilities, balancing immediate learner responsiveness with scalable asynchronous processing:

1. In-Monolith AI Services (learnway-backend)

  • Scope: Direct, synchronous, and latency-critical learning workflows.
  • Responsibilities:
    • In-Lesson AI Tutor: Instant slide-level explanations, summaries, and hints directly within active lessons.
    • Project & Code Assessment: Automated evaluation of project deliverables and capstone code submissions.
    • Career Roadmap Synthesis: Dynamic creation of customized learning paths based on individual career goals.
    • Tier-1 Safety & Caching: Redis-backed rate limiting, profanity filtering, and 24-hour deterministic response caching.

2. Dedicated AI Microservice (learnway-ai-service)

  • Scope: Complex, agentic, multi-step, and resource-intensive AI domains.
  • Modules:
    • ai-mentor/: Persistent mobile companion tracking learner consistency, employability, and growth trajectory.
    • ai-quiz-studio/: Automated curriculum-aligned question generation, distractor validation, and taxonomy calibration.
    • ai-translation/: Two-step hybrid localization pipeline translating learning content into African regional languages.
    • ai-analytics/: Interaction telemetry, latency monitoring, prompt token accounting, and learner satisfaction metrics.

Model Selection & Inference Strategy

LearnWay leverages the Google Gemini model family, matching model capabilities to specific pedagogical tasks:

Retrieval-Augmented Generation (RAG) & Context Engineering

To eliminate hallucinations and keep AI responses grounded strictly in vetted educational material, LearnWay utilizes a Deterministic RAG & Context Injection Pipeline:

Context Boundary Guarantees:

  1. Catalog Truth: The AI Mentor is strictly constrained to the official Course Catalog. It is programmatically forbidden from recommending nonexistent courses or fabricated subjects.
  2. Foundation-First Sequencing: Prompts enforce that foundational learning tracks must be completed before specialized elective tracks are recommended.
  3. Concise Pedagogical Framing: AI Tutor system prompts enforce a strict 150-word ceiling with plain language to prevent overwhelming mobile learners.

Subsystem Navigation

Explore the dedicated AI architecture guides for deeper implementation specifics: