DOE OSTI · 3365574
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.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Chaturvedi, Sarthak [Pacific Northwest National Laboratory (PNNL), Richland, WA (United States)], Kwon, Kyung-bin [Pacific Northwest National Laboratory (PNNL), Richland, WA (United States)], Abhyankar, Shrirang G. [Pacific Northwest National Laboratory (PNNL), Richland, WA (United States)] (ORCID:0009000311840013), Mattoo, Palak [Pacific Northwest National Laboratory (PNNL), Richland, WA (United States)], Thurber, Travis B. [Pacific Northwest National Laboratory (PNNL), Richland, WA (United States)] (ORCID:0000000243709971), Wan, Heng [Pacific Northwest National Laboratory (PNNL), Richland, WA (United States)], Burleyson, Casey D. [Pacific Northwest National Laboratory (PNNL), Richland, WA (United States)] (ORCID:0000000162189361), Voisin, Nathalie [Pacific Northwest National Laboratory (PNNL), Richland, WA (United States)] (ORCID:000000026848449X). 2026-05-29. GridCoPilot for Thermal Events: An LLM-Based Platform for Power Grid Reliability Analysis. https://doi.org/10.2172/3365574
Cite the original work for its findings. Save a collection to share your selection of sources.