AI-Powered Data Visualization Agent: An Interactive Approach Using Groq LLM and E2B Code Interpreter

Authors

  • Adarsh Kaushal
  • Tabitha Janumala

Keywords:

E2B code interpreter, Large language models, Natural language processing, Sandboxed execution environment, Streamlit

Abstract

The increasing complexity and volume of datasets in the fields of data science and machine learning have introduced significant challenges in terms of data analysis and visualization. As traditional methods of visualizing and interpreting data often fail to meet the growing demands of modern analytics, there has been a pressing need to develop intelligent and interactive tools that can simplify this process. This research delves into the design, development, and implementation of an AI-powered data visualization agent, which integrates cutting-edge technologies such as the Groq AI large language model (LLM) and an innovative E2B (Engine to Backend) code interpreter. The core functionality of the agent is to provide a seamless, interactive user experience for analyzing complex datasets. The system enables users to upload their datasets, query for actionable insights, and interactively explore their data through advanced visualizations. In addition to traditional visualizations, the system generates AI-powered Python scripts tailored to the specific needs of the user, which are then executed in a secure and sandboxed environment to ensure the system’s integrity and prevent unintended consequences from running arbitrary code. This paper explores the underlying methodologies involved in the development of such a system, including the integration of Groq’s specialized hardware accelerators to optimize AI performance, the design of the LLM for generating data queries and visualizations, and the creation of a safe execution environment for running Python code. The integration of the E2B code interpreter plays a key role in ensuring smooth communication between the user interface and the back-end infrastructure, facilitating efficient data handling and execution of user queries.

References

T. Brown et al., “Language models are few-shot learners,” ArXiv (Cornell University), vol. 4, May 2020, doi: https://doi.org/10.48550/arxiv.2005.14165

A. Vaswani et al., “Attention is all you need,” 31st Conference on Neural Information Processing Systems (NIPS 2017), Long Beach, CA, USA, Dec. 2017. Available at: https://proceedings.neurips.cc/paper_files/paper/2017/file/3f5ee243547dee91fbd053c1c4a845aa-Paper.pdf

F. Pedregosa et al, “Scikit-learn: Machine learning in Python,” Journal of Machine Learning Research, vol. 12, pp. 2825-2830, Oct. 2011. Available at: https://www.jmlr.org/papers/volume12/pedregosa11a/pedregosa11a.pdf?source=post_page

W. McKinney, Python for Data Analysis: Data Wrangling with Pandas, NumPy, and IPython. Sebastopol, CA, USA: O'Reilly Media, 2017.

A. AlSobeh, A. Shatnawi, B. Al-Ahmad, A. Aljmal, and S.Khamaiseh, “AI-Powered AOP: Enhancing runtime monitoring with large language models and statistical learning,” (IJACSA) International Journal of Advanced Computer Science and Applications, vol. 15, no. 11, pp. 121-133, 2024.

C. Wang, J. Thompson, and B. Lee, "Data Formulator: AI-Powered Concept-Driven Visualization Authoring," in IEEE Transactions on Visualization and Computer Graphics, vol. 30, no. 1, pp. 1128-1138, Jan. 2024, doi: https://doi.org/10.1109/TVCG.2023.3326585

Wikipedia Contributors, “Groq,” Wikipedia, Mar. 13, 2025. https://en.wikipedia.org/wiki/Groq

Published

2025-04-15

How to Cite

Adarsh Kaushal, & Tabitha Janumala. (2025). AI-Powered Data Visualization Agent: An Interactive Approach Using Groq LLM and E2B Code Interpreter. Advance Research in Communication Engineering and Its Innovations, 31–38. Retrieved from https://matjournals.net/engineering/index.php/ARCEI/article/view/1712