Projects / kilele-archade

Kilele Archade

Kilele Archade is a CBC-focused learning platform that combines curriculum-aware AI tutoring with document-based learning, quizzes, assessments, dashboards for students, teachers and parents, and PDF learning resources.

Status
Live product
My role
Full-stack developer — architecture, AI pipeline, backend and frontend
Domain
EdTech, AI, RAG, Full-stack

Problem

Learners revise from scattered resources with no feedback loop; teachers manage content manually; parents have little visibility. Generic chat assistants do not understand the CBC structure or a school's own materials.

Solution

A platform where learning documents are ingested, chunked and embedded into a vector store. When a student asks a question, the system retrieves the most relevant curriculum context and answers against it — grounded, cited and CBC-aware — instead of answering from a model's raw memory.

My role

  • Designed the overall system architecture and data model.
  • Built the RAG pipeline: document ingestion, chunking, embedding generation and pgvector retrieval.
  • Implemented the AI provider layer with fallback across providers for reliability.
  • Developed the React/TypeScript frontend and Supabase backend: auth, roles, content management.
  • Integrated Cloudinary for media storage and delivery.

Key features

  • AI tutor grounded in curriculum documents (RAG)
  • CBC-aware learning paths and competences
  • PDF learning resources with document-based Q&A
  • Smart revision and practice quizzes / assessments
  • Student dashboards with progress tracking
  • Teacher content management
  • Parent visibility features
  • Live learning functionality

Architecture

kilele-archade / system-overview

  1. Student / Teacher / Parent
  2. React + TypeScript frontend
  3. Supabase API & Auth (row-level security)
  4. Application logic & role checks
  5. Document retrieval — pgvector similarity search
  6. Relevant curriculum context assembled
  7. LLM provider with fallback chain
  8. Grounded response + citations

Technology stack

ReactTypeScriptSupabasePostgreSQLpgvectorCloudinaryCloudflare AIAI/LLM providersRAGEmbeddingsVector search

PostgreSQL with pgvector doubles as the relational store and the vector index, keeping the platform on one database under Supabase's auth and storage model.

Challenges

  • AI answers drifting away from the actual curriculum when context retrieval is weak.
  • Provider outages or rate limits taking the tutor offline.
  • Keeping document retrieval fast as the resource library grows.
  • Designing one data model that serves students, teachers and parents with very different permissions.

Solutions

  • Tuned chunking and embedding strategy per document type and re-ranked retrieved passages before prompting, so answers stay grounded in curriculum material.
  • Built a provider fallback layer: if the primary LLM fails or is throttled, the request transparently moves to a secondary provider (including Cloudflare AI).
  • Used pgvector indexes and precomputed embeddings at ingestion time, keeping queries to nearest-neighbour lookups rather than recomputation.
  • Modelled roles around Supabase row-level security so each actor only ever queries the rows they own or are assigned.

Results & current status

Kilele Archade is live at kilelearchade.co.ke with the AI tutor, document learning, quizzes and role dashboards forming the core of the product, and continues to evolve through real classroom feedback.

Screenshots

Kilele Archade UI

Links

Live WebsiteGitHubhttps://fredrickonyango.vercel.app/projects/kilele-archade

← All projects