Search⌘KLights off
Sam Gu

StudyBuddy

The tutor you don’t have, built from your syllabus. Get practice questions and see which concepts you still miss.

StudyBuddy’s flashcard screen, running locally, with generator output saved in its repo.

StudyBuddy is a study assistant for first-generation and low-income students who don’t have a tutor on call. You upload your syllabus and notes, GPT-4o writes multiple-choice questions and flashcards grounded in them, and the app tracks your answers to show which concepts you’re still missing. I led the five-person team.

A good tutor knows your course. StudyBuddy starts from the documents your class uses, so the questions follow your syllabus instead of a generic deck.

From a syllabus to a deck

From a syllabus to a deck, in four stepsOne, upload a syllabus, notes or textbook pages, read by OCR. Two, GPT-4o writes 25 cards as JSON, from your documents only. Three, practice the questions and cards, with statistics as you go. Four, review the concepts you keep missing, which tells you what to practice next.1 Uploada syllabus, notes ortextbook pages, by OCR2 GenerateGPT-4o writes 25 cardsfrom your documents only3 Practicequestions and cards,with stats as you go4 Reviewthe concepts youkeep missingwhat to practice nextFrom a syllabus to a deck, in four stepsOne, upload a syllabus, notes or textbook pages, read by OCR. Two, GPT-4o writes 25 cards as JSON, from your documents only. Three, practice the questions and cards, with statistics as you go. Four, review the concepts you keep missing, which tells you what to practice next.1 Uploada syllabus, notes ortextbook pages, by OCR2 GenerateGPT-4o writes 25 cardsfrom your documents only3 Practicequestions and cards,with stats as you go4 Reviewthe concepts youkeep missingwhat to practice next
The write-up’s four steps. The flashcard assistant asks for 25 cards as JSON, from the documents you gave it and nothing else, at temperature 0.2, and review sends you back to what you miss.
  1. Upload. You drop in a syllabus, lecture notes or textbook pages. Uploads go through OCR with Tesseract.js on the server and persist in local storage, so a refresh doesn’t lose them.
  2. Generate. A Flask backend sends the text to a GPT-4o assistant for flashcards and multiple-choice questions. The flashcard assistant’s configuration asks for 25 cards as JSON, tells the model to use only the documents you provided and to cite them where it can, and sets the temperature to 0.2.
  3. Practice. You work through the questions and cards, and the dashboard shows your statistics as you go.
  4. Review. Progress tracking and error analysis surface the concepts you keep missing, so you know what to study next.

I built the GPT-4o content-generation pipeline, the progress tracking and the error analysis. The rest of the stack is Next.js with Tailwind on the front end, MongoDB with Prisma for data, and NextAuth with Resend for sign-in, confirmation emails and password changes, hosted on Vercel. The layout also works on a phone.

Card 1, front. What is the definition of sociology?

Pick a card to turn it over.

Course syllabus9 cards

Lecture notes8 cards

Textbook excerpts8 cards

The repository’s sample deck, 25 cards, grouped by the document each one names. The assistant’s instructions ask it to cite the documents it was given, and every card in the sample does: 9 the syllabus, 8 the lecture notes and 8 the textbook excerpts.

What we didn’t finish

There’s a fact-checking pass on generated material, but it’s basic, and the README says so. Stronger fact-checking is still on the to-do list, along with a more personalized shuffle for active recall, integrations with tools like Notion, and a backend host with GPU access. There’s no automated testing pipeline yet either.

Built with
GPT-4o
Links
Code

Contact

sgu07966@gmail.com

Sam Gu’s card. Computer science, UT Austin. Austin, TX. kgu.one.

Built from a commit to kgu.one on 2 November 2026.

Sam is in Austin (Central Time).