ArgoVision is a comprehensive, AI-powered Progressive Web App (PWA) designed to empower farmers by providing actionable insights, predictive analytics, and real-time data to maximize agricultural yield and profitability.
🔗 Live Demo: https://agro-vision-frontend.vercel.app/
-
🤖 Agentic AI Assistant
An intelligent, context-aware AI agent that connects all predictive models and data sources to answer farmers' queries intuitively. -
🌱 Crop Prediction
Recommends the most suitable crops based on soil metrics and environmental conditions. -
🧪 Fertilizer Prediction
Suggests optimal fertilizers to improve soil health and crop growth. -
📈 Market Price Prediction
Forecasts future market prices for crops to help farmers make informed selling decisions. -
🌦️ Real-Time Weather
Provides accurate, up-to-date weather forecasts to plan farming activities. -
🌍 Multilingual Support
Accessible to farmers across different regions in their native languages. -
📱 PWA Ready
Installable on any mobile device for a seamless, app-like experience even with spotty internet connectivity.
The repository is organized into three main directories:
- Framework: React.js
- Deployment: Vercel
- Role: Handles user interactions, displays PWA features, multilingual UI, and presents AI predictions & weather data seamlessly.
- Framework: FastAPI (Python)
- Deployment: Hugging Face Spaces
- Role: Manages the Agentic AI logic, fetches real-time weather data, and acts as a gateway to specialized machine learning models.
- Role: Serves as the informational landing page for the project, explaining benefits, PWA installation, and documentation.
- Frontend: React, Progressive Web App (PWA) APIs
- Backend: FastAPI, Python
- AI / Machine Learning: Custom Models (Crop, Fertilizer, Market) deployed on Hugging Face
- Orchestration: Agentic AI workflow for seamless tool usage
- Hosting: Vercel (Frontend), Hugging Face (Backend & Models)
The backend is hosted on Hugging Face Spaces and exposes several key RESTful APIs powered by FastAPI.
🔗 API Docs (Swagger UI): View Interactive Docs
- Description:
The main conversational endpoint that connects farmers to the Agentic AI.
Interprets queries in multiple languages and dynamically routes them to appropriate predictive models.
-
Description:
Accepts soil and environmental data:- Nitrogen
- Phosphorous
- Potassium
- Temperature
- Humidity
- pH
- Rainfall
Returns the most optimal crop recommendation.
- Description:
Suggests the best fertilizer based on:- Current crop type
- Soil nutrient levels
-
Description:
Returns:- Market price forecasts
- Historical trends
Helps farmers with financial planning.
- Description:
Fetches real-time localized weather data and forecasts for better farming decisions.
Note: Exact endpoint paths and payload structures can be verified via the interactive
/docsendpoint.
- Node.js (v16+)
- Python (3.9+)
git clone https://github.com/your-username/ArgoVision.git
cd ArgoVisioncd backend
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
pip install -r requirements.txt
uvicorn main:app --reload
cd ../frontend
npm install
npm start
We welcome contributions! Feel free to submit a Pull Request.
For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the MIT License — see the LICENSE file for details.