Inspiration

Every semester, university students get the same pile: a course outline, lecture notes, and a few past papers passed around in WhatsApp groups. Then they're on their own until the CAT or the exam. General AI chatbots don't help much. They don't know what's in your unit, they hand you the final answer instead of helping you learn it, and they stop working when your data bundles run out. We wanted a study partner that knows your unit, makes you think, and doesn't leave you stranded when the network drops.

What it does

Puffin is a study app for university students. You add a unit and upload its course pack: PDFs or photos, including handwritten notes.

  • Syllabus map: Puffin reads every page and pulls the unit's topics out of the course outline.
  • Study plan: pick your exam or CAT date and get a week-by-week plan that covers every topic and ends with a revision week. Tick tasks off as you go.
  • Tutor: ask questions about your notes. Hint-first mode is on by default: Puffin gives two or three hints and a guiding question before it gives the full answer. Every answer shows the page of your notes it came from, and anything answered from general knowledge is clearly labelled "Not in your notes".
  • Practice: new short-answer questions written in the style of your past papers, using only what your notes explain. Your answers are marked with feedback, the way an examiner would. Every marked question becomes a flashcard, and Puffin tracks your weak topics and offers to move them up in your study plan.
  • Offline: units, plans, tutor chats and flashcards are saved on the phone, so revision keeps going without data. If you lose your connection mid-quiz, you can finish it and mark yourself.

How we built it

  • App: Flutter (Android and web), with Riverpod for state and Hive for offline storage.
  • Backend: Django REST Framework on PostgreSQL with pgvector, hosted on Render. The web app is on Cloudflare.
  • Retrieval: uploaded notes are split into chunks and embedded with Gemini's embedding model. The tutor, the question writer and the marker each search for the passages closest to what they're working on, so Gemini only sees the parts of your notes that matter.
  • AI: Google Gemini reads photos of notes (including handwriting), finds the topics in the course outline, answers tutor questions in hint or full mode while citing only the excerpts it used, writes practice questions with marking guides in the style of past papers, and marks short answers fairly, accepting different wording and any valid point the notes support.
  • Safety: everything inside a student's notes is treated as study material, never as instructions, so a file can't hijack the tutor. Gemini is told never to invent page numbers or quotes, and students see a notice before signing up that their files are sent to Google Gemini.

Challenges we ran into

  • Memory on a free server. Our first version ran a local embedding model with PyTorch, which crashed Render's 512 MB instance during uploads. We moved embeddings to Gemini, and uploads now finish in seconds.
  • Knowing when the notes really cover a topic. A similarity cutoff that worked for tutor questions rejected every practice topic, because a short topic title scores lower than a full question. We measured real scores, gave practice its own cutoff, and had Gemini confirm whether the notes actually explain the topic, so it never quizzes you on the wrong thing.
  • Hints, not answers. Getting the tutor to stop one step short of the answer, without hints that just reword it, took many rounds of prompt testing.
  • Maths notes. LaTeX-heavy notes sometimes broke the AI's JSON replies, so we tightened the prompts and the checks on every reply.
  • A sleeping server. The free backend sleeps when idle, so the app waits patiently for it to wake instead of failing.

Accomplishments that we're proud of

  • A tutor that teaches instead of doing the work for you, and is honest about where each answer comes from.
  • Practice questions that stay inside what your lecturer actually taught.
  • An app that keeps working for revision when the data runs out, which matters to students in Kenya.

What we learned

Building with AI is mostly about everything around the model: choosing what it sees, checking what it returns, and measuring with real student notes instead of guessing. Small numbers like a similarity cutoff decide whether a feature works at all.

What's next for Puffin

  • Send answers marked offline to the server once the phone reconnects, and allow more practice without a connection.
  • Tune retrieval with notes from more units and universities.
  • Let classmates share a unit's course pack, so one upload helps the whole class.

Built With

Share this project:

Updates

Submission history