Inspiration

In the Sri Ganganagar–Suratgarh belt, a farmer standing in a field often has weak or no signal exactly when a pest outbreak needs an answer. Cloud-only assistants fail there; device-only assistants cannot answer open-ended questions. KisanNano splits the work by question type so the farmer always gets a grounded answer — and always knows which brain answered.

What it does

The farmer asks by voice in Hindi or English (or types). A bundled, expert-reviewed knowledge pack (14 entries across cotton, mustard, wheat, bajra, guar and kinnow: symptom → cause → remedy → prevention) answers on-device, rephrased conversationally by Gemini Nano when available. Harder, out-of-pack questions escalate to cloud Gemini via Firebase AI Logic when online. Every answer carries a visible brain badge — On-device (offline) or Cloud — and a status bar always shows connectivity, on-device AI state and cloud state. If escalation is impossible, the best on-device answer returns with a low-confidence note; the app never fakes a cloud answer.

How we built it

Vanilla HTML/CSS/JS (no build step). hybrid.js routes: knowledge-pack match → on-device answer (Gemini Nano via Chrome Prompt API, grounded on the pack, with template fallback) → Firebase AI Logic escalation for low-confidence questions when online and configured. Web Speech API for Hindi/English voice in and out. The knowledge pack lives in data/knowledge.json and is bundled for offline use. Agronomy safety: the pack gives no invented chemical dosages and directs farmers to the current KVK/agriculture-department recommendation and product label; the Nano prompt enforces the same rule.

Challenges we ran into

Keeping agronomy advice safe — free generation can invent dosages, so the on-device model is constrained to rephrasing reviewed pack content. Making hybrid routing honest: the badge and low-confidence fallback exist so the app never pretends the cloud answered. Voice recognition in Chrome can use a network service on some platforms, so typing always works offline as a full fallback.

Accomplishments that we're proud of

A working offline-first hybrid: voice-first Hindi UI, grounded on-device answers, a one-tap airplane-mode test proving the offline path, and transparent brain badges on every answer.

What we learned

For field tools, transparency is a feature — farmers trust an answer more when they can see whether it came from reviewed on-device content or the cloud, and hybrid routing by question type beats both cloud-only and device-only designs.

What's next for KisanNano

Grow the knowledge pack toward 40+ KVK-verified entries and test on real Android phones in the belt. The installable PWA shell is now included so the app can reopen offline after the first load.

Built With

Share this project:

Updates

Submission history