How shyamsanjayg/agrivision-smart-farming works
This is a Streamlit smart-agriculture consultant. A user can chat for agriculture-focused advice, optionally informed by live farm weather, or upload GeoJSON to inspect a mapped, zoned plot. The excerpts show the app entry point, weather HTTP lookup, chat prompt enrichment, GeoJSON parsing, and map rendering in one file. Other implementation details are omitted because the source is only partially sampled; the graph keeps the distinct capabilities without assuming unseen internal calls.
Main entry points: chatbot.py Streamlit interface
Components 9
Agriculture app
- Streamlit interface
chatbot.py - Agri-Guru chat
chatbot.py - Weather lookup
chatbot.py - GeoJSON plot analysis
chatbot.py - Plot zoning
chatbot.py - Interactive farm map
chatbot.py
External services
- Groq LLM
- AgroMonitoring API
Other components
- Farmer
Connections 10
- Farmer → Streamlit interface: uses
README.md - Streamlit interface → Agri-Guru chat: routes chat
chatbot.py - Agri-Guru chat → Groq LLM: requests advice
chatbot.py - Streamlit interface → Weather lookup: fetches weather
chatbot.py - Weather lookup → AgroMonitoring API: requests conditions
chatbot.py - Streamlit interface → GeoJSON plot analysis: parses upload
chatbot.py - GeoJSON plot analysis → Plot zoning: splits polygon
chatbot.py - Streamlit interface → Interactive farm map: renders zones
chatbot.py - Weather lookup → Agri-Guru chat: enriches prompt
chatbot.py - Plot zoning → Interactive farm map: maps zones
chatbot.py