LLM-Based Frameworks for Power Engineering from Routine to Novel Tasks

Authors:

Abstract
The digitalization of energy sectors has expanded the coding responsibilities for power engineers and researchers. This research article explores the potential of leveraging Large Language Models (LLMs) to alleviate this burden. Here, we propose LLM-based frameworks for different programming tasks in power systems. For well-defined and routine tasks like the classic unit commitment (UC) problem, we deploy an end-to-end framework to systematically assess four leading LLMs—OpenAI ChatGPT 3.5, OpenAI ChatGPT 4.0, Anthropic Claude 2.0 and Google Bard in terms of success rate, consistency, robustness and learning rate. For complex tasks with limited prior knowledge, we propose a human-in-the-loop framework to enable engineers and LLMs to collaboratively solve the problem through interactive-learning of method recommendation, problem decomposition, subtask programming and synthesis. Through a comparative study between two frameworks, we find that human-in-the-loop features like web access, problem decomposition with field knowledge and human-assisted code synthesis are essential as LLMs currently still fall short in acquiring domain-specific knowledge to complete a holistic problem-solving project.