Projects

KisanSathi — Six AI Farm Experts, Keyless and Local

Active
FastAPIPython 3.11Pydantic 2httpxNext.js 16React 19Tailwind CSS 4Ollama (qwen3:14b)Open-MeteoAgmarknet via data.gov.inpytest
Product demo

Problem

Farmer-facing AI tools die at the API-key step, answer in English, and hand back generic advice with no live numbers behind it. A smallholder asking when to sell or how to treat yellowing wheat leaves gets a paragraph, not a decision.

Business Impact

India has more smallholder farmers than any advisory service can staff, and the ones who need advice most are furthest from a key, a card, or reliable bandwidth. A keyless multi-agent assistant that answers in Hindi with today's mandi price is deployable on a village kiosk, not just a demo laptop.

System Approach

  • Router agent classifies agent, language, place, and commodity in a single fast LLM call
  • Six specialist agents defined declaratively in a registry — key, name, emoji, system prompt, optional tools
  • Live tools per domain: Open-Meteo 7-day forecast, Agmarknet daily prices via data.gov.in
  • FastAPI backend streams answers; Next.js 16 UI shows the pipeline live — expert picked, language detected, tokens arriving
  • Adding an agent is one registry entry; router, API, and UI pick it up automatically
  • pytest with async mode for the router and tool layer

Key Decisions & Trade-offs

  • Keyless by default — most farmer-facing tools die at the API-key step, so that step had to go
  • Local Ollama over a hosted model so answers work offline-ish and no farmer data leaves the machine
  • Router plus specialists over one big prompt — domain tools only load where they belong
  • Answer in the language asked, not English with a translation toggle
  • State honest limits in the UI: LLM advice can be wrong, and pesticide doses or big selling calls should be confirmed at the local Krishi Vigyan Kendra

Current Status

Public and open source (MIT) at github.com/rohitguta2432/kisansathi. All six agents live with the router, streaming UI, and both live data tools working keyless; pytest suite green. Built to be forked — translate it, add crops, add agents, put it on a village kiosk.

Roadmap

  • Voice input and spoken answers for low-literacy users
  • More crops and region-specific pest libraries
  • Offline mandi price cache for intermittent connectivity

What I'd Improve Next

  • A hosted instance with a small bundled model so no Ollama install is required
  • Wider mandi coverage by falling back across neighbouring districts

Explore More