Krishi Sahayak v2.0.0
Pre-release
Pre-release
πΎ Krishi Sahayak v2.0.0 β Major Release
A complete rewrite of the AI Agriculture Assistant, built from the ground up with modern tools, a stunning UI, and powerful new capabilities.
β¨ What's New
- πΈ Image-Based Crop Diagnosis β Upload a photo and get instant AI analysis of diseases, pests, and nutrient deficiencies using the Llama 4 Scout vision model.
- ποΈ Groq TTS β Natural-sounding voice output via Groq Orpheus (replaced gTTS).
- π£οΈ Groq STT β Speech-to-text via Groq Whisper for English, Hindi, and Hinglish (replaced HuggingFace).
- β‘ Prompt Caching β Automatic caching on Groq for faster responses and 50% cost savings.
- π‘ In-Memory Fallback β Conversation memory works even without Redis (Redis is now optional).
- π¨ Glassmorphism UI β Frosted glass panels, backdrop blur, and gradient mesh background.
- π Dark/Light Theme Toggle β One-click switch with localStorage persistence.
- πΌοΈ Image Preview β Upload button with thumbnail preview before sending.
- π Cache Badge β Shows hit rate on bot messages.
- π§Ή Post-Processing Sanitizer β Strips markdown formatting from LLM output for clean text.
- π SEO Package β robots.txt, sitemap.xml, llms.txt, Open Graph, Twitter Cards, JSON-LD.
- π³ Deployment Ready β Dockerfile, render.yaml, gunicorn.conf.py for Render/Docker.
- π
.env.exampleβ Template for quick setup. - π¦ uv Support β Full dependency management via pyproject.toml.
π§ Changes
- Migrated from monolithic
app.pyto class-basedapp/package structure. - Replaced
openaiSDK withgroqSDK for all LLM interactions. - Replaced LangChain wrapper with direct Groq SDK calls.
- System prompt rewritten with XML + Chain-of-Thought (CoT) format.
- Response length increased β more thorough, actionable answers.
- UI completely redesigned (Bootstrap 5 β custom glassmorphism).
ποΈ Removed
asgi.pyβ no longer using uvicorn (Flask dev server).gTTSdependency β replaced by Groq Orpheus TTS.langchain/langchain-groqdependencies β replaced by direct Groq SDK.openaidependency β replaced by Groq SDK.
π Fixed
- Model no longer generates markdown (
**bold**) β stronger prompt + post-processing strip. - Redis connection failure no longer breaks the app β graceful in-memory fallback.
Live Demo β llm-agri-bot.onrender.com
Built with β€οΈ for Indian farmers. Ask anything about crops, pests, soil, weather, and government schemes.