May 30, 2026
Report

GridCoPilot for Thermal Events: An LLM-Based Platform for Power Grid Reliability Analysis

Abstract

Large Language Models show promise for translating natural language into database queries, but deploying such systems in safety-critical domains requires high reliability. We present an application of GridCoPilot to thermal event analysis (heatwaves and coldwaves) that affect power grid reliability. Our approach uses a LangChain SQL Agent to translate natural language queries into auditable SQL statements, with deterministic visualization routines that parse the structured query results. We introduce structural framing as a design principle, we integrate a NERC-region-level event library with county-level meteorology and decompose the combined data into three relational tables (event metadata, county-level event details, and a county-to-NERC subregion mapping), using prompt-guided joins to direct the model toward correct multi-table queries. For two core analytical patterns (identifying worst events by region and by region-year), the system achieved 100% SQL accuracy across all 16 NERC subregions and both event types (64 queries total). These results validate the approach for target use cases, though performance on diverse natural language formulations requires further investigation. We discuss design trade-offs, failure modes including JSON output truncation, and pathways for extending this approach to other hazard domains.

Published: May 30, 2026

Citation

Chaturvedi S., K. Kwon, S.G. Abhyankar, P. Mattoo, T.B. Thurber, H. Wan, and C.D. Burleyson, et al. 2026. GridCoPilot for Thermal Events: An LLM-Based Platform for Power Grid Reliability Analysis. Richland, WA: Pacific Northwest National Laboratory. PNNL-39202.

Research topics