Inspiration

Grade 10-12 learners in South Africa mostly study on budget Android phones and pay for every megabyte. Cloud AI tutors cost them data on every question, and most just hand over the final answer. We wanted a tutor that is free to use for short questions, keeps working on a bad signal, and teaches exam technique instead of giving answers away.

What it does

SCHOOL Hybrid Tutor is part of SCHOOL, a free CAPS study platform. A learner types or photographs a question and gets a hint ladder: one hint at a time, with the final answer hidden until they ask. Mark My Answer grades short answers on the device and sends long written answers to cloud Gemini for method-mark feedback. A chip on every reply shows whether it ran on the device or in the cloud, and a counter estimates the mobile data kept on the phone in rands. Weak topics feed short timed sittings, and learners can browse 789 Grade 10-12 past papers by subject, year, session and language.

How we built it

The tutor calls Firebase AI Logic with InferenceMode.PREFER_ON_DEVICE, so Chrome's built-in Gemini Nano answers first and cloud Gemini takes over for long answers and PDFs. App Check with reCAPTCHA Enterprise protects the AI calls, Anonymous Auth gives each learner a private space in Firestore, and Remote Config holds the long-answer threshold, the cloud model and a kill switch. The web app is Next.js on Cloudflare Workers through OpenNext. On Android, learners open SCHOOL in Chrome and can install it to their home screen as a PWA (with a Google Play Trusted Web Activity wrapper in progress for post-hackathon release), keeping the full Chrome on-device path available. The phone layout is designed for a 360px screen with thumb-reach actions.

Challenges we ran into

Gemini Nano is only exposed through Chrome, not Android WebView, so we ship SCHOOL as an installable Chrome PWA (with a Trusted Web Activity wrapper in progress) instead of a WebView wrapper. We also had to keep the app light enough for low-end phones, and clean up a past-paper catalogue that mixed papers with timetables and circulars.

Accomplishments that we're proud of

Short hints and marking run with no data cost when the model is on the device, the learner always sees where an answer ran, and the hint ladder keeps the learner doing the thinking.

What we learned

Hybrid inference works best when the routing rule is simple and visible to the user: short and private on the device, long and heavy in the cloud.

What's next for School Hybrid Tutor

Completing the Google Play Store release, native Android on-device inference, South African home languages, and teacher and parent views of weak topics.

Built With

Share this project:

Updates

Submission history