# 🌱 FarmaBuddy – AI Powered Smart Farming Assistant
**CRS Artificial Intelligence – Formative Assessment 2
**Course:** Generative A.I
**Team:** Jashith Rathod, Nishtha Shah, Naman Shreshtha
---
## 📌 Project Overview
FarmaBuddy is a Generative AI-powered web application built using **Streamlit** and **Google Gemini 1.5 API**.
The system provides region-specific, actionable farming advice to farmers in:
- 🇮🇳 India
- 🇬🇠Ghana
- 🇨🇦 Canada
The assistant formats AI responses clearly and includes reasoning behind each recommendation to improve farmer trust and usability.
This project transforms the FA-1 storyboard into a fully functional and deployed AI application.
---
## 🎯 Intended Learning Outcomes Achieved
- âś” Format and refine outputs generated by Gemini for clarity and real-world usability
- âś” Evaluate and optimize model outputs using prompt engineering
- âś” Deploy a working AI web application using Streamlit Cloud
- âś” Implement user interaction monitoring and feedback collection
---
## 🚀 Live Deployment Link
đź”— **Streamlit App URL:**
xdymq9ydmjn9xnab2qrigi.stre…
---
## đź› Technologies Used
- Python
- Streamlit
- Google Gemini 1.5 API
- Pandas
- GitHub
- Streamlit Cloud
---
## đź“‚ Project Structure
FarmaBuddy/
│
├── app.py
├── requirements.txt
├── README.md
---
## 📦 requirements.txt
streamlit
google-generativeai
requests
pandas
matplotlib
---
## 🧠Step 4 – Output Formatting & Reasoning
To ensure clarity and usefulness:
- Gemini outputs are structured into bullet points.
- Each recommendation includes a justification (“why” explanation).
- Technical language is simplified.
- Advice is region-aware and crop-stage specific.
### 📍 Example Prompt Tested
**Input:**
“What to grow in Rajasthan in August?”
**Formatted Output:**
- **Pearl Millet** – Drought-resistant and thrives in arid soil.
- **Cluster Bean** – Suitable for sandy soil with low irrigation.
- **Green Gram** – Short crop cycle fits monsoon season.
Each suggestion i …