Work · 05 of 9

KisanMind

Five-node LangGraph advisor for farmers with Hindi and Marathi voice, built in 24 hours

Role
AI service (agents, orchestration, voice, tests) and frontend wiring
Team
Ved Kumar Singh, Nimit Jain, Parth Kshirsagar
Period
Apr 2026
Status
hackathon
Stack
  • Python
  • FastAPI
  • LangGraph
  • LangChain
  • Gemini 2.0 Flash
  • Sarvam AI
  • Groq Whisper
  • Next.js 15
  • MongoDB
  • Vercel
  • Render
altahackathon.vercel.app
KisanMind, the advisor interface, captured 2026-09-15
KisanMind, the advisor interface. Captured from the live site on 2026-09-15.

Top 2 of about 40 teams, HackWarts by Alta School of Technology

Problem

A smallholder farmer deciding what to plant needs soil, weather, mandi prices and scheme eligibility at once, and that information lives in four places and two languages. HackWarts gave us 24 hours. I took the AI service; Ved, Nimit and Parth took the Next.js app and the Node backend.

The pipeline

Farmer profiletext or voiceWeathergeocode, Open-MeteoCroprules → score → LLMre-rankMarketmandi, MSP, windowInsightsrisk, action planFinancialschemes, credit, ROI
A LangGraph state graph. Each node reads the shared state and writes one key.

The crop node is deliberately not an LLM call. It loads a catalogue of twenty-plus crops, eliminates by rules (soil, season, water, budget) and records why each crop was rejected, scores the survivors, and only then asks Gemini to re-rank the top three with reasoning. That makes the recommendation explainable and testable: 152 test functions cover the agents, the graph, the weather service, the chat router and the voice path, and they were written during the hackathon, not after.

Voice, in 24 hours

BeforeAfter
Speech to textBrowser webm/opus rejected by the STT APIFile tuple with the right MIME, mp4 preferred, codec stripped; Sarvam Saaras first, Groq Whisper fallback
Hindi transcriptsCame back in Urdu scriptUrdu to Devanagari correction and per-session response language
Text to speechTruncated long answers, no fallbackSarvam Bulbul with a length cap, ElevenLabs fallback
Config.env lost on uvicorn reloadAbsolute-path load_dotenv

What is missing

Evaluation. The pipeline has tests but no measured quality: no agreement rate against an agronomy reference, no word-error rate on Hindi speech. Until a 30-profile evaluation set exists and its results are published here, this page does not carry a measured mark. That is the next piece of work on this project.

Learned: Voice for people who don't type: every layer needs a fallback.

keysKeyboard
j / k
next / previous row
Enter
open the focused row
⌘K or /
search, or ask this site
g then h w a c
go home, work, about, contact
t
toggle light and dark
Esc
close the palette or this map
?
this map