Karsh.Ai is an intelligent agricultural dashboard designed to empower rural farmers by bridging the technology gap. It provides data-driven insights, personalized government scheme recommendations, and real-time alerts to ensure sustainable farming and financial security.
🌐 Live Demo: karshai-for-farmers.streamlit.app
- Personalized Matching: Enter your annual income and landholding size to find eligible central and state government schemes.
- Smart Filtering: Categorizes schemes into subsidies, loans, and direct benefits.
- Up-to-date Data: Powered by a comprehensive database of agricultural incentives.
- Location-Based Insights: Suggests the best crops to plant based on your specific district in Kerala.
- Economic Forecasting: Estimates potential earnings and provides planting schedules based on the current month and land size.
- Machine Learning Powered: Uses historical data to predict optimal crop yields.
- Multilingual Support: Interact with the dashboard in English or Malayalam.
- Expert Advice: Ask questions about fertilizers, irrigation, or disease control.
- Fast Responses: Powered by Groq (Llama 3.3) for near-instant answers.
- Disease Detection: Upload photos of your crops to identify pests or diseases instantly.
- Expert Recommendations: Get immediate advice on treatment and preventive measures based on image analysis.
- Weather Forecasting: Provides a detailed 48-hour outlook for your district.
- Calamity Alerts: Real-time warnings for extreme rain, wind, or heatwaves that could affect your harvest.
- Frontend: Streamlit (for a fast, interactive web interface)
- AI/LLM: Groq & Gemini (for high-speed intelligent query handling)
- ML Models: Scikit-Learn (for crop prediction algorithms)
- Natural Language:
gTTS&deep-translator(for Malayalam support) - Data Handling: Pandas & JSON
- Styling: Custom CSS with Glassmorphism aesthetics
To run Karsh.Ai locally, follow these steps:
-
Clone the Repository:
git clone https://github.com/SRDxRestricted/Karsh.Ai cd Karsh.Ai -
Set up Virtual Environment:
uv venv source .venv/bin/activate # On Windows: .venv\Scripts\activate
-
Install Dependencies:
uv sync # OR pip install -r requirements.txt -
Configure API Keys:
- Create a folder named
.streamlitin the root directory. - Create a file named
secrets.tomlinside that folder. - Add your API keys (Groq is recommended for higher limits):
GROQ_API_KEY = "your_groq_key_here" GEMINI_API_KEY = "your_gemini_key_here"
- Note: This file is already in .gitignore and will not be pushed to GitHub.
- Create a folder named
-
Run the Application:
streamlit run app.py
├── app.py # Main landing page & Dashboard
├── auth.py # User authentication logic
├── theme.py # UI/UX design tokens & Global CSS
├── pages/ # Multipage Streamlit application
│ ├── 1_Malayalam_Chatbot.py
│ ├── 2_Crop_Predictor.py
│ ├── 3_Govt_Scheme_Finder.py
│ └── 4_Plant_Identifier.py
├── scheme_recommender/ # Logic & Data for govt schemes
├── early_warning_system/ # Weather monitoring & Alerts
├── imageProcessing/ # Plant disease identification logic
└── Malayalam TTS/ # Voice processing assets
We welcome contributions from the community! Whether it's adding new schemes, improving the ML models, or translating to more languages:
- Fork the repo.
- Create a new branch.
- Commit your changes.
- Open a Pull Request.
Built with ❤️ for the farming community.
This project is licensed under the MIT License - see the LICENSE file for details.