PathPilot bridges the gap between static curriculum catalogs and real-world competency. By combining in-memory directed acyclic graph (DAG) analysis, multi-factor hybrid recommendation scoring, and a Bayesian-inspired adaptive engine, PathPilot dynamically updates individualized learning pathways in real time.
🔗 Live Application: path-pilot-lemon.vercel.app
📑 Repository: github.com/vkdevz/PathPilot
Online learning portals drown students in thousands of uncurated modules without actionable diagnostic signals. Learners frequently hit two dead ends:
- Spending time on low-yield material they have already mastered.
- Attempting high-difficulty topics while missing critical prerequisite skills.
PathPilot solves this through an integrated, closed-loop AI pipeline:
- Calibrate: Diagnostic assessments measure true competency across 4 core engineering domains.
- Graph Analysis: In-memory DAG identifies structural learning bottlenecks and prerequisite dependencies.
- Rank: An 8-feature composite scoring engine with MMR (Maximal Marginal Relevance) surfaces optimal modules with zero prerequisite violations.
- Adapt: Real-time evidence ingestion recalibrates readiness scores, dynamically restructuring the learner's milestone staircase.
┌─────────────────────────────────────────────────────────────┐
│ Next.js 14 Web Frontend │
│ (TypeScript, Tailwind CSS, Lucide React, Recharts) │
└──────────────────────────────┬──────────────────────────────┘
│ JSON / REST API (JWT Authenticated)
▼
┌─────────────────────────────────────────────────────────────┐
│ FastAPI Backend Service │
│ ┌───────────────────────┐ ┌─────────────────────────────┐ │
│ │ Assessment Engine │ │ In-Memory Skill DAG Engine │ │
│ └───────────────────────┘ └─────────────────────────────┘ │
│ ┌───────────────────────┐ ┌─────────────────────────────┐ │
│ │ 8-Feature Recommender │ │ Bayesian Adaptive Engine │ │
│ └───────────────────────┘ └─────────────────────────────┘ │
│ ┌───────────────────────┐ ┌─────────────────────────────┐ │
│ │ Semantic Search Core │ │ Tool-Calling AI Mentor (LLM)│ │
│ └───────────────────────┘ └─────────────────────────────┘ │
└──────────────────────────────┬──────────────────────────────┘
│ Async SQLAlchemy 2.0 Pool
▼
┌─────────────────────────────────────────────────────────────┐
│ PostgreSQL 16 + pgvector (Supabase) │
│ • IVFFlat Vector Indexing (1536-dim embeddings) │
│ • Evidence Deduplication & Idempotent Migration Schema │
│ • Append-Only Roadmap Versioning Snapshots │
└─────────────────────────────────────────────────────────────┘
| Component | Technical Implementation & Rationale |
|---|---|
| Prerequisite DAG | Built as an in-memory directed acyclic graph with cycle detection, transitive reduction, and downstream impact scoring. Prevents prerequisite violation errors completely (0% violation rate). |
| Hybrid Ranking | Multi-objective scoring combining 8 weighted features (skill_gap, career_alignment, difficulty_fit, pacing, semantic_similarity, etc.) followed by MMR re-ranking to ensure curriculum diversity. |
| Adaptive Proficiency | Bayesian-inspired state updates with evidence weight decay (30-day half-life). Includes SHA-256 evidence hashing to prevent duplicate submission distortions. |
| Vector Search | pgvector cosine distance queries over 1536-dimension embeddings, enabling unified cross-entity discovery across skills, careers, and learning resources. |
| Deterministic AI Mentor | LLM assistant constrained via controlled function calling. Queries live database state directly rather than hallucinating progression metrics. |
- Python 3.12+
- Node.js 18+
- PostgreSQL 16 with
pgvectorenabled (or Supabase instance)
cd backend
# Setup environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
# Configure variables
cp .env.example .env
# Run local development server (includes auto-migration & seeder)
uvicorn app.main:app --reload --port 8000cd frontend
# Install packages
npm install
# Configure local variables
cp .env.example .env.local
# Start Next.js server
npm run dev# Run backend test suite (84 tests)
cd backend && pytest tests -v
# Run frontend unit tests (19 tests)
cd frontend && npm testDistributed under the MIT License. See LICENSE for more information