Inspiration
What it does
How we built it## Inspiration
Students often take quick lecture notes, read long articles, or study in places with spotty or no internet access. Waiting on cloud round-trips for every small summary or definition slows down study flow, while complex tasks like generating practice quizzes or synthesizing long study material need stronger reasoning. We built Hybrid Study & Note Companion to combine instant on-device AI with cloud fallback using Firebase AI Logic.
What it does
- Instant on-device processing: Summarizes short notes, extracts key takeaways, and helps rephrase study text locally with low latency and offline support.
- Cloud fallback for heavy study tasks: Automatically routes longer inputs or deeper requests—such as generating study quizzes and detailed explanations—to cloud models via Firebase AI Logic when local execution is unavailable or insufficient.
- Clear mode visibility: Surfaces whether a response was handled on-device or via cloud fallback so users know how their request was processed.
How we built it
We scaffolded the application with Expo and integrated Firebase AI Logic to support hybrid inference (on-device execution with cloud fallback) along with Firebase App Check to protect backend requests. We structured the app into a clean study workspace with a router, AI service layer, lightweight local processing path, and modular UI components.
Challenges we faced
- Balancing local vs. cloud routing: Deciding cleanly when a prompt should stay on-device for speed/offline usability versus when it should escalate to cloud capabilities.
- Environment & tooling setup: Configuring Expo dependencies, TypeScript checks, and Firebase AI Logic + App Check wiring smoothly under hackathon time constraints.
What we learned
- Designing around hybrid inference requires thinking about latency, offline readiness, and fallback behavior from the start rather than treating local execution as an afterthought.
- Keeping the UI focused on core study actions makes it much easier to demonstrate real hybrid value within a tight build window.