Inspiration

“A thread runs inside a process.” That answer earns one mark out of two in our demo. It gets the relationship right, but it leaves out what threads share. A student deserves to know why that distinction cost a mark. A lecturer with a hundred scripts needs a practical way to explain it. We built Marking Assistant around that moment, with one constraint from the start: lecturers should be able to get AI help without sending student answers to cloud AI.

What it does

A lecturer uploads a marking scheme and a batch of scripts. On a supported laptop, Gemini Nano 4 reads each answer in Chrome and suggests a score for each criterion. For every positive score, the app checks that the quoted passage appears exactly once in the answer. The lecturer can jump straight to that passage, compare it with the scoring band, and confirm or change the mark.

Completed scores appear in the marksheet. Scripts with missing or uncertain evidence go into a review queue. The lecturer can also spot-check a random completed script and export the marksheet, the moderation record, and individual feedback for students.

How we built it

We built the workspace in React and TypeScript and used IndexedDB to save marking work in the browser. Every AI request goes through Firebase AI Logic. Cloud Gemini can read the lecturer’s rubric and turn it into a short marking brief. Gemini Nano 4 then uses that brief to mark student work locally, including offline. The AI inspector shows where each request ran and how many bytes went to cloud AI.

Challenges we ran into

One challenge was deciding what should happen when a laptop could not finish a marking request. Silently retrying in the cloud would expose the student’s answer. We made requests containing student work device-only and kept manual marking available when the model could not help.

Another challenge was knowing when to trust a quotation. In testing, the model found a genuine passage about supply shifts and awarded credit on a question about price elasticity. The quote passed our text check. The mark still needed correcting. That case shaped how we present the answer, the evidence, and the scoring band together.

Accomplishments that we're proud of

We can trace a mark from a sentence in a script all the way to the exported audit log. In our walkthrough, a lecturer could inspect each of the three decisions behind a sample student’s 3/6, then download a marksheet and audit record that agreed with the review screen.

We also tested the hybrid design on 25 fictional scripts. On one Windows laptop, the local model returned usable responses for 7 of 25 scripts with the rubric alone and 9 of 25 with a cloud-written brief. Both runs kept every answer out of cloud AI.

What we learned

We learned to measure two things separately: whether the model could finish a script and whether the marks it returned were sound. On the four scripts both local runs completed, the cloud-written brief improved agreement with our reference marks from 4 of 12 criteria to 10 of 12. That small comparison gives us a reason to keep testing the brief and a clear priority: make local marking reliable across more scripts.

What's next for Marking-Assistant

We want to run an independent trial with lecturers using their own marking schemes. We’d measure how long moderation takes, which suggestions lecturers change, and whether students can use the feedback to improve a second answer. On the engineering side, our first priority is getting more scripts through on-device marking successfully.

Built With

  • cloud-firestore
  • firebase-ai-logic
  • firebase-app-check
  • firebase-authentication
  • firebase-hosting
  • firebase-remote-config
  • gemini-nano-4
  • google-gemini
  • indexeddb
  • jszip
  • pdf.js
  • react
  • typescript
  • vite
  • zod
Share this project:

Updates

Submission history