In this work, we present an architecture that seamlessly integrates a large language model (LLM) with MATLAB-based simulation code to support the design and analysis of Renewable Energy Communities (RECs). Users interact via a Telegram chatbot powered by a retrieval-augmented GPT-4.1-nano model, which translates natural-language requests into JSON inputs. These JSON payloads are consumed by a MATLAB 2024b-implemented REC simulator, which leverages PVGIS irradiation data, average domestic consumption profiles from the Italian regulatory authority, and 2024 day-ahead market prices to compute both individual and collective benefits under varied community configurations and load-shifting scenarios. Simulation outputs return as JSON, are parsed by the LLM, and rendered as human-readable summaries. This tight coupling combines the LLM's conversational flexibility and contextual understanding with conventional codes's deterministic numerical rigor, eliminating 'black-box' uncertainty in complex calculations while preserving natural-language usability. Case studies demonstrate robust performance, error resilience, and markedly improved JSON fidelity via prompt engineering.

GPT-Powered Chatbot for Dissemination and Simulation of Renewable Energy Communities / Becchi, Lorenzo; Bindi, Marco; Intravaia, Matteo; Lozito, Gabriele Maria; Piccirilli, Maria Cristina; Marconi, Riccardo; Cacciavillani, Vittoria. - ELETTRONICO. - (2025), pp. 1-6. ( 2025 IEEE International Conference on Environment and Electrical Engineering and 2025 IEEE Industrial and Commercial Power Systems Europe, EEEIC / I and CPS Europe 2025 grc 2025) [10.1109/eeeic/icpseurope64998.2025.11169160].

GPT-Powered Chatbot for Dissemination and Simulation of Renewable Energy Communities

Becchi, Lorenzo;Bindi, Marco;Intravaia, Matteo;Lozito, Gabriele Maria;Piccirilli, Maria Cristina;
2025

Abstract

In this work, we present an architecture that seamlessly integrates a large language model (LLM) with MATLAB-based simulation code to support the design and analysis of Renewable Energy Communities (RECs). Users interact via a Telegram chatbot powered by a retrieval-augmented GPT-4.1-nano model, which translates natural-language requests into JSON inputs. These JSON payloads are consumed by a MATLAB 2024b-implemented REC simulator, which leverages PVGIS irradiation data, average domestic consumption profiles from the Italian regulatory authority, and 2024 day-ahead market prices to compute both individual and collective benefits under varied community configurations and load-shifting scenarios. Simulation outputs return as JSON, are parsed by the LLM, and rendered as human-readable summaries. This tight coupling combines the LLM's conversational flexibility and contextual understanding with conventional codes's deterministic numerical rigor, eliminating 'black-box' uncertainty in complex calculations while preserving natural-language usability. Case studies demonstrate robust performance, error resilience, and markedly improved JSON fidelity via prompt engineering.
2025
Conference Proceedings - 2025 IEEE International Conference on Environment and Electrical Engineering and 2025 IEEE Industrial and Commercial Power Systems Europe, EEEIC / I and CPS Europe 2025
2025 IEEE International Conference on Environment and Electrical Engineering and 2025 IEEE Industrial and Commercial Power Systems Europe, EEEIC / I and CPS Europe 2025
grc
2025
Becchi, Lorenzo; Bindi, Marco; Intravaia, Matteo; Lozito, Gabriele Maria; Piccirilli, Maria Cristina; Marconi, Riccardo; Cacciavillani, Vittoria...espandi
File in questo prodotto:
Non ci sono file associati a questo prodotto.

I documenti in FLORE sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificatore per citare o creare un link a questa risorsa: https://hdl.handle.net/2158/1438364
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 0
  • ???jsp.display-item.citation.isi??? ND
social impact