All projects

SLAI · TRAIL Lab, UW-Madison · Sep 2026 to Present

Helping teachers tell student evidence apart from AI confidence.

SLAI records small-group science discussions in 6 schools across India, Wisconsin and the Philippines, often in a mix of English and Spanish, and lets teachers ask what happened. The danger is an AI that sounds sure of itself while putting textbook words in a student's mouth.

My role
Model layer and AI configuration, plus the response half of curriculum grounding
Scale
6 schools across India, Wisconsin and the Philippines
Stack
Python, FastAPI, Gemini (Vertex AI), Firestore vector search, Next.js, Cloud Run

What I built

  • One AI configuration module for the whole platform, and the migration of every pipeline onto it, including the move to Gemini 3.8 Flash.
  • Curriculum-grounded answers behind a kill switch, falling back to the transcript-only answer whenever retrieval or generation fails.
  • A check in code that drops curriculum text the model tries to pass off as a student's quote.
  • Logging of retrieved versus cited passages on every answer, set up for a grounded versus ungrounded teacher study.
  • A fix for a vulnerability where student tokens were never signature-checked, so anyone could forge one.

Key decisions

Fail soft

A retrieval problem should never cost a teacher an answer. Every failure path falls back to what already worked and logs why.

Evidence over fluency

Using a term or agreeing with a friend is not understanding. If the transcript does not show it, the answer says so.

Rebuild beside, then switch

Re-indexing writes a complete new set of chunks before switching over, so an interrupted rebuild does not replace a working index.

Where it is now

Live in 6 schools with curriculum grounding enabled. I own the model layer and the response side of grounding, built on retrieval from my teammates.

What I will work on next

  • Run the teacher evaluation, with paired answers and a blinded export that keeps raters from telling which is which.
  • Use what teachers tell us to shape how grounded answers cite and explain themselves.