1. Who is NotesNano for, and why would they use it?

For university students revising from lecture slides, especially the night before an exam. We are BSCS students at FAST-NUCES Lahore, and our courses (Data Structures, Linear Algebra, Discrete Structures) come as 40–80 slide PDFs.

The situation: it's 1 AM, the exam is at 9, and you have a 60-slide deck. You need the key points, you need to test yourself, and you have questions like "what's the difference between a stack and a queue?" that the slides answer, if you can find the right slide.

Why current approaches fall short:

  • Re-reading slides is slow, and searching a PDF only finds exact words, not answers.
  • Cloud chatbots need a working connection (load-shedding and patchy internet are common for us), send your course material to a server, and answer from general knowledge, so the answer can differ from what your teacher taught or include things that weren't in the course.

What NotesNano does better:

  • Answers only from your notes, with the supporting quote and the passages it used, and it says "Not in your notes" instead of inventing an answer.
  • Runs on your laptop with Gemini Nano inside Chrome, so it works offline once the model is downloaded and your material never leaves the device.
  • One place for the three things you do when revising: summarize, quiz yourself, ask questions.

2. What did our team build or improve during the hackathon?

NotesNano existed before the event. We built the first version on Nov 19, 2026 for Google's #BuildHybridAI hackathon. It could already:

  • read a lecture PDF in the browser,
  • summarize notes (long lectures split into parts and merged),
  • make a 5-question quiz,
  • run AI on-device (Gemini Nano) or in the cloud through Firebase AI Logic.

Built during this hackathon (Nov 21–28): "Ask your notes", a new grounded question-answering feature:

  • A new Ask your notes tab where you ask a question in plain English.
  • Local retrieval (src/ask.js, new file): the notes are split into passages, and each passage is scored against the question with TF-IDF-style keyword scoring, in the browser with no AI. The best passages (up to about 6,000 characters) are kept, so the prompt fits Gemini Nano's on-device input limit even for long lectures.
  • One grounded AI call (askNotes() in src/ai.js) with a structured output schema: found, answer, quote.
  • Answer cards showing the answer, a supporting quote, where it ran (laptop or cloud) and how long it took, and expandable source passages. Answers that aren't in the notes are marked "Not in your notes".
  • README updated with the feature and how it works.

Where to see it: the demo video from about 0:20, and the GitHub commit "Add Ask your notes".

Our work vs third-party tools: we wrote the app code, prompts, retrieval and UI. We use Firebase AI Logic (Google) to call the models, Gemini Nano (built into Chrome) and Gemini Flash-Lite as the models, pdf.js (Mozilla) for PDF reading, and Vite for building.

3. How did our team use AI?

AI in the finished project

Model / tool Job
Gemini Nano 4 (on-device, in Chrome) via Firebase AI Logic Answers questions, writes summaries and quizzes on the user's laptop
Gemini Flash-Lite (cloud) via Firebase AI Logic Fallback for laptops that can't run Gemini Nano

Why this choice fits: students revise course material they may not want to upload, often with bad internet. A small model running locally is free, private and works offline. Its weakness is a small input limit (about 9,000 tokens on-device), which is why we added retrieval.

A project-specific AI decision we built in: retrieve first, then ask. Instead of sending the whole lecture to the model, NotesNano picks the most relevant passages locally and only sends those. Evidence from our tests on a laptop where Gemini Nano runs on the CPU:

  • Summarize on a 3,674-word lecture needed 4 AI calls and took 328 s on-device.
  • Ask your notes on a 1,250-word lecture needed 1 AI call and took 21.4 s ("what is a community") and 10.7 s (an off-topic question). So retrieval keeps questions fast enough to use while revising, even on a low-end laptop.

Grounding decision: the schema forces a found flag and a quote from the notes. In testing, an off-topic question ("who won the world cup?") was correctly answered "Not in your notes" instead of with a made-up answer.

Limits we found: Gemini Nano works best in English. PDFs with Arabic text came out jumbled from PDF extraction. Keyword retrieval can miss a passage when the question uses very different words from the notes (a synonym).

AI during development

We used Claude (Anthropic) as a coding assistant to write most of the code, the README and these documents. A team member ran and checked every change on our own laptop before keeping it. Examples:

  • App Check setup: the first version didn't start App Check in local development without a reCAPTCHA key. We found this when requests failed, and the code was changed to start App Check with a debug provider in development.
  • Error message: when cloud calls failed, the app's message blamed App Check. Reading the actual console error showed the real cause (the Gemini free tier was unavailable for our project), so the message was changed to say that.
  • Feature choice: Claude first proposed a "Nano Router" that would send some parts of the notes to the cloud. We rejected it because our cloud access was blocked and it would add slow extra AI calls on our laptop, and chose the simpler "Ask your notes" instead.
  • Ask your notes: we kept the generated retrieval and Q&A code after testing it on our own lectures (results in section 4).

4. How can people access and use it, and what results does it achieve?

Access: open https://notesnano-2b39a.web.app in desktop Chrome. Free, no account needed.

For on-device AI (recommended): desktop Chrome with Gemini Nano. Enable chrome://flags/#gemma4-for-built-in-ai and chrome://flags/#prompt-api-for-gemini-nano-multimodal-input, and have about 22 GB free disk for the first model download (about 2 GB). After that, it works offline.

Main task:

  1. Paste lecture notes or click Open PDF or text file (a text-based PDF).
  2. Pick Private (on-device only) or Auto.
  3. Open Ask your notes, type a question, and press Ask.

A successful result gives an answer that matches the notes, a supporting quote that appears in the notes, and "Not in your notes" when the notes don't cover the question.

Results from our tests (laptop with Gemini Nano running on the CPU):

Case Expected What happened
Ask "what is a community" on a 1,250-word lecture Correct answer + real quote Correct answer, quote copied from the notes, on-device, 21.4 s, 4 passages used
Ask "who won the world cup?" (not in the notes) Says it isn't in the notes Marked "Not in your notes", on-device, 10.7 s
Summarize a 3,674-word lecture (split into 3 parts) Accurate summary, on-device Accurate title, key points and terms, on-device, 4 AI calls, 328 s
Quiz on the same lecture 5 sensible questions 5 questions with correct answers and explanations, on-device
Summarize in Cloud mode (early testing) Summary from the cloud model Correct summary, 1 call, 9.7 s

Design choices that reduce effort:

  • Questions are answered from the right passages automatically, with no need to find the slide yourself.
  • Each answer shows its source passages, so you can check it in one click.
  • One mode switch (Auto / Private / Cloud) instead of settings.

5. Current limitations, and what happens when something goes wrong

Known limitations:

  • Speed on low-end laptops: Gemini Nano on the CPU takes about 10–25 s per question and several minutes for a long summary.
  • Cloud fallback is currently unavailable: it worked in early testing, but Google later marked our Firebase project "Gemini API free tier not available", so cloud calls now fail. The fallback code is in place, but laptops without Gemini Nano can't get answers right now.
  • Scanned PDFs (photos of pages) have no text layer and aren't supported.
  • Non-English notes (e.g. Arabic) extract and answer poorly.
  • Keyword retrieval can miss passages that use different words from the question.

How failures are handled: | Problem | How NotesNano detects and handles it | |---|---| | Question not covered by the notes | The model returns found: false. The card is marked "Not in your notes" and says what the notes do cover. | | Cloud unavailable (free tier blocked) | The error is detected and the app shows "Cloud fallback is unavailable right now… Use Private mode in Chrome with Gemini Nano" instead of a raw error. | | On-device model fails on a step in Auto mode | That step is retried in the cloud on its own, and the banner shows the split. | | Gemini Nano not downloaded / not supported | The badge shows the status ("not downloaded yet" with a Download button, or "cloud only"), and Private mode explains that it needs Gemini Nano. | | PDF with no text (scanned) | "Couldn't find any text in this file. Scanned PDFs don't work yet." | | Too little text / empty question | The app asks for more text or a full question before calling the AI. |

Built With

  • chrome-built-in-ai
  • firebase-ai-logic
  • firebase-app-check
  • firebase-hosting
  • gemini
  • gemini-nano
  • javascript
  • pdf.js
  • vite
Share this project:

Updates

Submission history