class of 2028

Scorpio

Scorpio project image
2 min Β· in progress

Scorpio is a research-driven educational platform engineered to transform physics instruction. By integrating a novel 4-layer AI constraint architecture with a high-performance, space-themed interface, Scorpio bridges the gap between traditional Learning Management Systems (LMS) and the dynamic cognitive requirements of physics problem-solving.

πŸ—οΈ Technical Architecture

Scorpio’s architecture is built for concurrency, type safety, and real-time synchronization.

πŸ›‘οΈ The 4-Layer Constraint System

At the heart of Scorpio’s AI tutoring capabilities is a proprietary constraint architecture designed to ensure pedagogical validity and eliminate hallucinations. The system enforces strict adherence through four distinct layers:

LayerConstraintPurpose
01DomainRestricts knowledge exclusively to physics principles.
02PedagogicalEnforces the Socratic method; direct answers are prohibited.
03NotationMandates proper LaTeX formatting and SI unit adherence.
04CompositeSynchronizes all layers for research-grade tutoring.

πŸ”„ Data & Synchronization

  • Real-Time State: Powered by Cloud Firestore with optimistic UI updates for zero-latency interaction.
  • Asset Management: Client-side processed submissions (PDFs/Images) stored via optimized base64 in Firebase Storage.

πŸš€ Core Capabilities

πŸŽ“ Research-Grade AI Tutoring

The Scorpio AI Tutor is a context-aware pedagogical agent, not a generic chatbot.

  • Context Retention: Maintains deep awareness of specific assignments and problem states.
  • Adaptive Guidance: Dynamically scales hint complexity based on student performance.
  • Academic Integrity: Hardened against jailbreak attempts and direct-answer harvesting.

πŸ”’ Advanced Mathematical Rendering

Precision is non-negotiable in physics. Our custom rendering engine includes:

  • KaTeX Integration: Blazing fast client-side LaTeX rendering.
  • Visual Math Builder: An intuitive UI for constructing complex equations without raw LaTeX knowledge.

🌌 Immersive User Experience

A β€œSpace-Themed” aesthetic designed to reduce cognitive load and boost engagement.

  • Parallax Depth: Multi-layered backgrounds powered by Framer Motion.
  • Glassmorphism: Context-aware backdrop-blur interfaces using Radix UI primitives.

πŸ”¬ Research & Efficacy

Scorpio includes a dedicated research dashboard to monitor the performance of its AI architecture. System metrics track:

  • Rule Adherence %: The frequency with which the AI successfully maintains Socratic constraints.
  • Response Quality: Automated evaluation of pedagogical relevance and clarity.
  • Token Efficiency: Optimization of prompt length versus output quality to reduce latency.

Data Insight: Experimental results indicate that the Full Constraint Stack significantly outperforms standard models in educational utility, maintaining a high quality score across varying difficulty levels.

πŸ› οΈ Technology Stack

LayerTechnologyPurpose
FrontendNext.js 15Server Components, Streaming, and Routing
LanguageTypeScript 5.7Strict type safety and developer ergonomics
StylingTailwind CSSUtility-first styling with perceptually uniform colors
UI LibraryShadcn UIAccessible, headless component primitives
MotionFramer MotionPhysics-based animations and gesture handling
BackendFirebaseAuth, Firestore (NoSQL), Functions, Storage
AI ModelGemini 2.5 FlashMultimodal reasoning and constraint adherence
MathKaTeXFast, accessible equation rendering

πŸ“‚ Project Structure

β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ app/            # Next.js App Router (Student/Teacher Dashboards)
β”‚   β”œβ”€β”€ components/     # Reusable UI (Shadcn + Custom Math Components)
β”‚   β”œβ”€β”€ contexts/       # Global State (Auth, Space Effects)
β”‚   β”œβ”€β”€ hooks/          # Custom React Hooks
β”‚   β”œβ”€β”€ lib/            # Core Logic (Firebase Admin, Gemini AI, Utils)
β”‚   └── proxy.ts        # Edge routing & middleware logic
β”œβ”€β”€ public/             # Static Assets (Models, Architecture PDFs)
β”œβ”€β”€ functions/          # Firebase Cloud Functions (Background Processing)
└── firestore.rules     # Database Security Layers