"AI-powered Kannada market intelligence tool helping Karnataka farmers decide where and when to sell their crops, using real government mandi price data."
# Krishi Market Advisor 🌾
> **"Where and when should I sell my crop to get the best price — and will the trip actually pay for itself?"**
An AI-native **Decision Intelligence Platform** for rural Karnataka farmers. Instead of dumping raw mandi
tables on the screen, Krishi Market Advisor listens to the farmer's voice, does the freight math, checks
the live weather, and speaks the answer back in Kannada.
---
## 🚜 Why this exists
Traditional agricultural portals (e.g. *negilukrishi.in*) are excellent static bulletin boards, but they
share three limitations:
| Limitation | What it costs the farmer | How Krishi Market Advisor answers it |
|---|---|---|
| **High friction** — deep menus, typed queries, dense tables | Farmers with low literacy or no typing ability drop off | 🎙️ **Zero-click voice UX** — tap the mic, speak naturally, dashboard auto-fills |
| **Raw data, no intelligence** — gross prices only | A ₹300/qtl "better" mandi 50 km away can be a *net loss* after freight | 🚚 **Net Profit Matrix** — round-trip distance × vehicle freight, deducted per mandi |
| **Static context** — prices divorced from ground conditions | Crop decay, blocked roads, spoiled loads during rain | ⛅ **Live weather risk** — OpenWeather feeds the Hold-vs-Sell simulator |
**The core idea:** traditional portals expect the farmer to do the math. We do the math and say the
answer out loud.
---
## ✨ Feature Highlights
### 🎙️ Multimodal AI Voice Navigation (Zero-Click UX)
Farmers tap the microphone and speak naturally — Kannada, English, or a mix:
> *"ನನ್ನ ಬಳಿ ಶಿವಮೊಗ್ಗದಲ್ಲಿ 20 ಕ್ವಿಂಟಾಲ್ ಅಡಿಕೆ ಇದೆ"*
Raw audio bytes are piped directly into **Gemini Flash-Lite** (no intermediate STT layer). The model
natively extracts `district`, `crop`, `quantity`, `vehicle`, and `language` as structured JSON, which
instantly auto-fills the entire dashboard.
→ `src/phase5/voice_assistant.py`
### 🧠 Smart Audio Explanations
Gemini dynamically generates a localized **Kannada script** explaining *why* a mark …