The Tech Stack
Built with Flask & Python on the backend for secure processing, and Vanilla JavaScript & Chart.js on the frontend for lightning-fast graph rendering.
1. Dual-Compute Rendering
To prevent server lag, when you upload a CSV, JS parses and mathematical calculates the sums natively in your browser via the `FileReader` API, instantly piping the data into `Chart.js` locally.
2. Asynchronous Flask Syncing
Simultaneously, a background `fetch()` request sends the exact same file to the Python Backend (`/api/esg/upload`), algorithmic algorithms process the arrays, and it is stored securely in Flask's stateless global variable memory.
3. Natural Language Processing
When you query the Chat Assistant, a payload is forwarded to `/api/esg/ask`. Flask bridges your string query alongside the memory-cached dataset explicitly into an NLP LLM, resulting in incredibly precise contextual intelligence.