How aniket8983-arch/god-s-plan_misc03 works
The product is an agricultural intelligence dashboard combining macro field mapping, crop/soil diagnostics, and conversational advice. A farmer loads the field grid and terrain, explores map layers and cells, uploads crop or soil evidence, and can combine those results with cell context for an AI-assisted analysis and chat. The graph preserves the documented Sentinel-2/NDVI/DEM pipeline and the separate visualization, inference, parsing, and advice stages. Some GIS pipeline internals and frontend API wiring are documented but not sampled; those links cite the README rather than implying source inspection.
Main entry points: ml_routes.py ML routes · App.tsx Dashboard · server.py FastAPI server · assistant_routes.py Assistant routes
Components 17
Field dashboard
- Dashboard
frontend/src/App.tsx - Field panels
frontend/src/components - 3D map canvas
frontend/src/components/ThreeCanvas.tsx
Geospatial mapping
- Terrain scene
frontend/src/three/TerrainScene.ts - Map overlays
frontend/src/three - Satellite GIS pipeline
scripts - Grid and terrain data
Crop diagnostics
- Crop inference
ml/inference.py - Inference service
backend/services/ml_service.py - Soil report parser
backend/services/soil_parser.py
Backend API
- FastAPI server
backend/server.py - ML routes
backend/routes/ml_routes.py - Assistant routes
backend/routes/assistant_routes.py
AI advisory
- Analysis context
backend/services/multimodal_engine.py - Groq chat service
backend/services/groq_service.py
Other components
- Farmer
- Groq Llama
Connections 22
- Farmer → Dashboard: uses
- Dashboard → Field panels: renders
frontend/src/App.tsx - Dashboard → 3D map canvas: renders
frontend/src/App.tsx - Dashboard → FastAPI server: fetches grid and terrain
frontend/src/App.tsx - FastAPI server → Grid and terrain data: reads
backend/server.py - 3D map canvas → Terrain scene: creates and updates
frontend/src/components/ThreeCanvas.tsx - 3D map canvas → Map overlays: applies overlays
frontend/src/components/ThreeCanvas.tsx - Satellite GIS pipeline → Grid and terrain data: produces
- Satellite GIS pipeline → Grid and terrain data: computes NDVI and grid
- Farmer → Field panels: uploads evidence
- Field panels → ML routes: submits analysis
- ML routes → Inference service: analyzes image
backend/routes/ml_routes.py - Inference service → Crop inference: loads and invokes
backend/services/ml_service.py - ML routes → Soil report parser: parses report
backend/routes/ml_routes.py - ML routes → Analysis context: builds combined context
backend/routes/ml_routes.py - ML routes → Assistant routes: stores analysis
backend/routes/ml_routes.py - Farmer → Assistant routes: chats
- Assistant routes → Groq chat service: requests response
backend/routes/assistant_routes.py - Groq chat service → Groq Llama: calls model
backend/services/groq_service.py - Analysis context → Groq chat service: supplies field context
- FastAPI server → ML routes: registers routes
backend/server.py - FastAPI server → Assistant routes: registers routes
backend/server.py