Analytics Graph Query Solver (AGQS): Transforming Natural Language Queries into Actionable Insights

Debojyoti Saha, Krishna Singh, Moushumi Mahato, Javaid Nabi


Abstract
In today’s era, data analytics is crucial because it allows organizations to make informed decisions based on the analysis of large amounts of data. The evolving landscape of data analytics presents a growing challenge in effectively translating natural language queries into actionable insights. To address this challenge, we introduce a novel system that seamlessly integrates natural language processing (NLP), graph-based feature representation, and code generation. Our method, called Analytics Graph Query Solver (AGQS), utilizes large language models (LLMs) to construct a dynamic graph representing keywords and engineered features. AGQS transforms textual input queries into structured descriptions and generates corresponding plans. These plans are executed stepwise to create a unified code, which is subsequently applied to our in-house virtual assistant dataset to fulfill the user’s query. Furthermore, a robust verification module ensures the reliability of the obtained results. Through experimentation, our system achieved an accuracy of 62.2%, outperforming models like GPT-4 (50.2%), Graph Reader (56.6%), Mistral3 7B (38.6%), and Llama 7B (37.6%). Overall, our approach highlights the importance of feature generation in textual query resolution and demonstrates notable improvements in accessibility and precision for data analytics. With this method, we aim to present a solution for converting natural language queries into actionable steps, ultimately generating code that provides data insights. This approach can be utilized across different datasets, empowering developers and researchers to gain valuable insights effortlessly.
Anthology ID:
2024.icon-1.63
Volume:
Proceedings of the 21st International Conference on Natural Language Processing (ICON)
Month:
December
Year:
2024
Address:
AU-KBC Research Centre, Chennai, India
Editors:
Sobha Lalitha Devi, Karunesh Arora
Venue:
ICON
SIG:
Publisher:
NLP Association of India (NLPAI)
Note:
Pages:
537–553
Language:
URL:
https://aclanthology.org/2024.icon-1.63/
DOI:
Bibkey:
Cite (ACL):
Debojyoti Saha, Krishna Singh, Moushumi Mahato, and Javaid Nabi. 2024. Analytics Graph Query Solver (AGQS): Transforming Natural Language Queries into Actionable Insights. In Proceedings of the 21st International Conference on Natural Language Processing (ICON), pages 537–553, AU-KBC Research Centre, Chennai, India. NLP Association of India (NLPAI).
Cite (Informal):
Analytics Graph Query Solver (AGQS): Transforming Natural Language Queries into Actionable Insights (Saha et al., ICON 2024)
Copy Citation:
PDF:
https://aclanthology.org/2024.icon-1.63.pdf