Inspiration
Every course hands out a syllabus; the 12 syllabus PDFs we tested ran from 2 to 15 pages (median 7). The parts that decide a grade, the weights and the exam dates, sit among pages of policies and readings. At the start of a term, students copy exam dates and deadlines into a calendar and work out how each assignment affects their grade. A misplaced percentage or exam date can carry through the whole term. We wanted students to spend less time copying details and to see which results still need their review.
What it does
Drop in a syllabus PDF or paste its text to get a grading breakdown and a list of exams and assignment deadlines on the web or iOS. Each section shows where it was processed and flags any issues the checks found. The web app offers an editable grading table, .ics export and Google Calendar links. Saved courses appear together on a term timeline, and the final-grade calculator uses grades entered in the browser. On iOS, students can use Add dates to Calendar.
Try it in Pramana without creating an account. Syllabus → Term is a feature of Pramana, our AI study assistant (mirror: https://buildhybridai-term.web.app).
How we built it
On the web, Firebase AI Logic uses PREFER_ON_DEVICE with Gemini Nano in Chrome and a JSON-schema response constraint. A separate ONLY_IN_CLOUD model, gemini-3.8-flash, handles escalations. The interface uses response.inferenceSource to show where each section was processed. On iOS, Apple Foundation Models (SystemLanguageModel) and the cloud model from FirebaseAI.geminiLanguageModel(name:) both run through LanguageModelSession with the same @Generable schema.
The verify-then-escalate router separates grading lines from dated lines. It checks that grading weights add up to 100% (extra credit is kept apart), that each weight sits within a line of its component's name, and that each date sits within a line of its exam or deadline and falls within the term, which the app reads from the syllabus itself. One shared date parser handles "Wed, Sept. 17th", "8-21-2025" and explicit years, so slicing and checking agree. If an on-device result still fails after local repair, the router sends only the relevant lines from that section and the failed checks to Gemini in the cloud. It runs the same checks on the cloud result. A section shows "Checked ✓" only when every check passes; when something cannot be confirmed, such as a syllabus with exams but no dates, it shows "Needs your review" instead. Each grading row and date has a Source toggle that shows the line it was checked against. Both platforms can start in the cloud when the on-device model is unavailable.
App Check uses reCAPTCHA Enterprise on the web and App Attest on iOS devices. Remote Config provides an escalation_enabled kill switch on both platforms so sections that fail verification can stay on device with their issues visible. On the web, anonymous Firebase Auth lets the app write text-free run statistics to Firestore, including character counts, inference sources and check outcomes. Saved courses stay in browser storage. Firebase Hosting serves the web app.
The evidence
We ran the web router in Chrome on 43 publicly posted university syllabi with hand-labeled grading and date data, and on 12 more syllabus PDFs from 11 universities read end to end through the app's own PDF importer. Scoring is strict: a grading table counts as exact only when every component is matched by name and weight, with no extra rows. Every figure is the mean of two full runs.
| Mode | Grading exact (43) | Text sent to cloud (43) | Text sent to cloud (12 PDFs) |
|---|---|---|---|
| Hybrid, verify-then-escalate | 0.82 | 5.9% | 2.2% |
| Device only | 0.71 | 0% | 0% |
| Cloud only | 0.78 | 23.3% | 11.0% |
On the 43, every grading table that passed its checks was exact: 56 of 56 across the two runs. A ✓ can be relied on, and the sections without one are the ones that go to the cloud or to the student for review.
Challenges we ran into
- Some exported tables put each cell on its own line, with blank lines between cells. Our first slicer kept the blank line beside a weight and dropped the component name. It now keeps the nearest nonblank lines for context.
- The preview cloud model timed out during evaluation. We switched the web cloud path to
gemini-3.8-flashwith low thinking and a 30-second client timeout. The router keeps the on-device result available for review if escalation fails. - The on-device model sometimes returned dates that are not written anywhere in the syllabus. The router drops those locally and checks the repaired schedule before making a cloud call. Dates outside the term are kept and marked for review rather than deleted.
- An external review found that our first scorer compared only the set of weights, so a table with the right numbers on the wrong names still counted. We rebuilt the scorer to match names and weights together, added the binding checks above, and reran every mode twice.
Accomplishments
We deployed the web app and verified both inference paths in Chrome. We also ran the same routing and verification approach on iOS and verified both paths in the iPhone simulator. Students can see whether a section was checked on device, sent to the cloud, or flagged for review.
What we learned
A grading table can add up to 100% even when the model assigns the wrong weights. The evaluation showed that the combined arithmetic and source checks can guide the cloud handoff. Measuring syllabus characters sent matters too. Counting requests alone would hide how much source text each call sends.
What's next
We want to test the workflow with students and measure how long it takes to go from a syllabus to a usable term calendar. We also plan to explore a Chrome extension that starts from the syllabus a student already has open.
Platforms
| Platform | On-device model | Cloud model | Through |
|---|---|---|---|
| Web (Chrome) | Gemini Nano | gemini-3.8-flash |
Firebase AI Logic (PREFER_ON_DEVICE / ONLY_IN_CLOUD) |
| iOS (iPhone) | Apple Foundation Models | Gemini via FirebaseAI.geminiLanguageModel |
Firebase AI Logic + LanguageModelSession |
Both platforms share the same checks (TypeScript core on the web, Swift TermCore on iOS, with matching tests).
Built during the submission period
The project was started on 2026-11-22 and every commit in the repository was made during the #BuildHybridAI submission period (2026-11-11 to 2026-11-30).
AI use
Built with Claude Code (Anthropic) and OpenAI Codex as coding assistants for code, tests and documentation. All AI at runtime is Firebase AI Logic.
Built With
- apple-foundation-models
- cloud-firestore
- firebase
- firebase-ai-logic
- firebase-app-check
- firebase-authentication
- firebase-hosting
- firebase-remote-config
- gemini
- gemini-nano
- react
- swift
- swiftui
- typescript