Ongoing · Active development

EdTech · Generative AI · RAG · Full-stack

StudyMate AI

A source-grounded learning platform where students can upload private course material, ask cited questions, create quizzes and review their learning progress.

Next.jsTypeScriptFastAPIPostgreSQL / pgvectorCelery / RedisAuth0
Year
Ongoing
Type
Independent educational technology platform
Role
Project owner · product-focused full-stack development
Architecture view

Private learning and retrieval flow

The web experience, API, private storage and asynchronous document pipeline share one typed domain model.

Current status

Purpose and progress.

Only implemented or actively validated work is described as current functionality.

Project purpose

Help students study from their own private course materials through source-grounded explanations, verified references, configurable quizzes and learning progress.

Progress so far
  • Private PDF ingestion, OCR, hybrid retrieval and tenant-level ownership checks are implemented.
  • Source-grounded chat, quiz workflows, scoring, persistence and usage analytics are in place.
  • The active-learning loop, live-model calibration and production hardening remain ongoing.
01 / Context

What exists today
and what comes next.

Overview

StudyMate AI is being developed as a private workspace for learning from course-specific material. Students can organize courses, upload PDFs, ask questions against processed sources, inspect verified page references, generate quizzes and review topic-level progress. The product is still being calibrated and prepared for a reliable limited-user pilot.

The challenge

A general-purpose assistant can answer beyond a student's material or produce references that cannot be verified. The platform must keep every user and course isolated, retrieve only authorized content, validate citations on the server and decline to answer when evidence is insufficient.

The approach

A Next.js application uses an Auth0-backed server session and communicates with a typed FastAPI domain. Background workers validate, OCR, chunk and index private PDFs into PostgreSQL and pgvector. Hybrid retrieval provides bounded context for chat and quiz generation, while persistence and analytics connect each learning activity to the owning student.

02 / Engineering

Key decisions

The choices that shaped the system—not only the technologies that appear in it.

01

Verify evidence on the server

Returned document and page references are checked against authorized retrieval results instead of trusting model-produced citations directly.

02

Keep documents private by default

Ownership checks, encrypted server sessions and private object storage keep course material isolated between users.

03

Move ingestion off the request path

PDF validation, OCR, chunking and embedding run as background jobs so large documents do not block the web experience.

Technical toolkit

Built with

Next.jsTypeScriptFastAPIPostgreSQL / pgvectorCelery / RedisAuth0
03 / Reflection

What the project taught me

  • Grounded AI requires authorization, retrieval and citation checks—not only a prompt.
  • Quiz generation needs deterministic schema and answer-leakage validation around the model.
  • Learning analytics become more useful when chat, assessment and remediation share the same source context.

This page uses a system diagram to document the current technical structure. Verified product screenshots and experiment outputs can be added as the project evolves.