Skip to content

Vinit1120/KhetSaathiAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KhetSaathiAI - Premium Agricultural AI Platform

KhetSaathiAI is a state-of-the-art agricultural diagnostic and intelligence platform designed to empower farmers with AI-driven insights. It provides plant disease detection, weather forecasts, real-time mandi prices, and personalized crop recommendations.

📸 Screenshots

🏠 Home Page

Home Page

🔐 Login Page

Login Page

📊 Dashboard

Dashboard

🏗️ Project Structure

The project is organized as a monorepo:

  • /frontend: React + Vite application. It includes a built-in Express proxy server (server.ts) for handling SMTP (emails) and secure API communications.
  • /backend: Python FastAPI service for AI model orchestration, agricultural data processing, and predictive analytics.

🚀 Getting Started

1. Prerequisites

  • Node.js (v18+)
  • Python (3.9+)
  • Firebase Account (for Authentication and Database)
  • API Keys: Groq (Llama 3), Gemini (Vision), and OpenWeatherMap (optional/integrated).

2. Environment Configuration

  1. Copy the root .env.example to a new file named .env.
    cp .env.example .env
  2. Open .env and fill in your API keys and credentials.
  3. The system is designed to read the .env from the root or sub-directories depending on your environment setup.

3. Installation & Running

💻 Frontend (Terminal 1)

cd frontend
npm install
npm run dev

The frontend will be available at http://localhost:5173.

🐍 Backend (Terminal 2)

cd backend
pip install -r requirements.txt
python app.py

The backend API will run on http://localhost:8000.


✨ Key Features

  • 🌿 AI Agricultural Assistant: A specialized LLM (Llama 3 via Groq) tailored for farming queries.
  • 🔍 Disease Diagnosis: Multi-modal AI (Gemini Vision) to detect crop diseases from images.
  • 📊 Real-time Mandi Prices: Integration with market data for crop price forecasting.
  • 🌦️ Smart Weather Updates: Localized weather alerts specifically for agricultural needs.
  • 🗣️ Voice Support: Integrated Speech-to-Text and Text-to-Speech for farmer accessibility.
  • 🌍 Multi-lingual: Seamless support for English and Hindi (हिन्दी).

🛠️ Tech Stack

  • Frontend: React, Vite, Tailwind CSS, Motion (Framer Motion), Lucide Icons.
  • Backend: Python, FastAPI, Groq SDK, Google Generative AI, Pandas, Scikit-learn.
  • Database/Auth: Firebase.
  • Proxy/Email: Node.js, Express, Nodemailer.

📂 Cleanup & Maintenance

Unnecessary development scripts and temporary folders have been removed to ensure a clean repository structure for production and GitHub sharing.


📜 License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors