ChatVis: Automating Scientific Visualization with a Large Language Model
Authors:
- 17 November 2024
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 49-55
Abstract
We develop an iterative assistant we call "ChatVis" that can synthetically generate Python scripts for data analysis and visualization using a large language model (LLM). The assistant allows a user to specify the operations in natural language, attempting to generate a Python script for the desired operations, prompting the LLM to revise the script as needed until it executes correctly. The iterations include an error detection and correction mechanism that extracts error messages from the execution of the script and subsequently prompts LLM to correct the error. Our method demonstrates correct execution on five canonical visualization scenarios, comparing results with ground truth. We also compared our results with scripts generated by several other LLMs without any assistance. In every instance, ChatVis successfully generated the correct script, whereas the unassisted LLMs failed to do so. The code is available on GitHub: https://github.com/tanwimallick/ChatVis/.Keywords
All Related Versions
Funding Information
- U.S. Department of Energy
- Office of Science
- Advanced Scientific Computing Research
This publication has 13 references indexed in Scilit:
- HPC-GPT: Integrating Large Language Model for High-Performance Computing2023
- LM4HPC: Towards Effective Language Model Application in High-Performance Computing2023
- High Performance Visualization2012
- The Visualization Toolkit2005
- Overview of Flow Visualization2005
- Overview of Volume Rendering2005
- An evaluation of reconstruction filters for volume rendering2002
- Marching cubes1998
- Visualization in scientific computingACM SIGBIO Newsletter, 1988
- Properties of n-dimensional triangulationsComputer Aided Geometric Design, 1986