Skip to content

Krishi Sahayak v2.0.0

Pre-release
Pre-release

Choose a tag to compare

@mohammed97ashraf mohammed97ashraf released this 21 Jun 20:13

🌾 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.py to class-based app/ package structure.
  • Replaced openai SDK with groq SDK 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).
  • gTTS dependency β€” replaced by Groq Orpheus TTS.
  • langchain / langchain-groq dependencies β€” replaced by direct Groq SDK.
  • openai dependency β€” 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.