Skip to content
vkdevzPublic

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

🧭 PathPilot AI — Adaptive AI-Powered Career Learning Platform

Next.js FastAPI PostgreSQL Tests License

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


📌 Problem & Impact

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:

  1. Calibrate: Diagnostic assessments measure true competency across 4 core engineering domains.
  2. Graph Analysis: In-memory DAG identifies structural learning bottlenecks and prerequisite dependencies.
  3. Rank: An 8-feature composite scoring engine with MMR (Maximal Marginal Relevance) surfaces optimal modules with zero prerequisite violations.
  4. Adapt: Real-time evidence ingestion recalibrates readiness scores, dynamically restructuring the learner's milestone staircase.

🏗️ System Architecture

┌─────────────────────────────────────────────────────────────┐
│                 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                 │
└─────────────────────────────────────────────────────────────┘

⚙️ Core Technical Highlights

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.

🛠️ Tech Stack

Client
Next.js 14 TypeScript Tailwind CSS Recharts

Server
Python 3.12 FastAPI Pydantic v2 SQLAlchemy 2.0 Uvicorn

Persistence & Vector Store
PostgreSQL 16 pgvector Supabase Auth

AI / LLM Layer
OpenAI Google Gemini API

🚀 Quickstart Guide

1. Prerequisites

  • Python 3.12+
  • Node.js 18+
  • PostgreSQL 16 with pgvector enabled (or Supabase instance)

2. Backend Setup

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 8000

3. Frontend Setup

cd frontend

# Install packages
npm install

# Configure local variables
cp .env.example .env.local

# Start Next.js server
npm run dev

🧪 Test Suite & Validation

# Run backend test suite (84 tests)
cd backend && pytest tests -v

# Run frontend unit tests (19 tests)
cd frontend && npm test

License

Distributed under the MIT License. See LICENSE for more information

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages