Multi-dimensional Data Analysis and Applications Basing on LLM Agents and Knowledge Graph Interactions

Xi Wang, Xianyao Ling, Kun Li, Gang Yin, Liang Zhang, Jiang Wu, Jun Xu, Fu Zhang, Wenbo Lei, Annie Wang, Peng GongarXiv 2025 · DOI

Abstract

This paper presents a closed-loop framework for multi-dimensional data analysis that integrates Large Language Model (LLM) agents with Knowledge Graphs (KGs). By utilizing LLM agents to dynamically construct and update KGs from unstructured web data, the system provides a grounded "source of truth" for AI-driven analysis. An interactive visualization interface allows users to explore complex relationships and trigger deep, context-aware AI summaries, effectively reducing hallucinations and bridging the gap between macro-level mapping and micro-level technical insights.

Introduction

Data analysts currently face a significant trade-off between the reasoning capabilities of Large Language Models (LLMs) and the structural reliability of Knowledge Graphs (KGs). While LLMs excel at natural language processing, they are prone to hallucinations and lack real-time updates. Conversely, KGs offer a structured "source of truth" but are often static and difficult to navigate intuitively. Furthermore, traditional tools often decouple visualization from deep analytical reasoning. This research addresses these challenges by proposing a collaborative ecosystem where AI agents build the graph, the graph grounds the AI's reasoning, and users interact with both through a unified interface.

System Architecture

The proposed framework consists of a four-module "closed-loop" architecture designed to transform unstructured web data into actionable insights.

Figure 1: The four-module architecture of the proposed system, illustrating the flow from data preparation to intelligent analysis.
  1. Data Preparation Module: Employs an LLM-powered agent to perform iterative web searches based on user queries, parsing unstructured content into structured JSON formats (e.g., brands, models, prices).
  2. Knowledge Representation Module: Ingests structured data into a Neo4j graph database, establishing a schema of nodes and edges using Cypher queries.
  3. Visualization and Interaction Module: A D3.js-based frontend renders a force-directed graph, allowing users to manipulate the view and interact with specific nodes.
  4. Intelligent Analysis Module: When a user requests an "AI Product Summary," the system extracts context from the KG (the "fact anchor") and feeds it to a DeepSeek-V3 model. This ensures the generated report is grounded in verified, structured data.

Methodology and Data

The system was demonstrated using a bespoke product KG focused on IT hardware. Data was dynamically extracted from the internet, resulting in a graph containing 963 nodes (including 269 products and 147 brands) and 1,110 relationships. This approach moves away from static benchmarks toward a "web crawler on steroids" model that keeps the knowledge base current.

Results and Discussion

The framework was validated through a case study on "Computing Servers," specifically focusing on the Huawei TaiShan Server.

Figure 3: Visualization of the 'Computing Server' category, showing related product nodes and detailed metadata for the Huawei TaiShan Server.

Key findings include:

  • Fact Anchoring: By querying the KG before calling the LLM, the system provides a "skeleton" of facts that significantly reduces AI hallucinations.
  • Bidirectional Interaction: The LLM agent is responsible for constructing the KG, which in turn serves as the foundation for the user's deep-dive analysis.
  • Analytical Efficiency: The system successfully retrieved and visualized relevant nodes instantly. The "AI Product Summary" feature generated comprehensive technical reports within seconds, covering market positioning and application scenarios.
  • Enhanced User Experience: Interactive features like "Expand/Hide Node" prevented visual clutter, allowing for on-demand exploration of complex data structures.

Conclusion and Future Work

This research demonstrates the potential of combining LLM agents with interactive Knowledge Graphs for sophisticated data analysis. Future work will focus on real-time incremental updates to make the system truly self-adaptive, improving scalability for billion-node graphs using WebGL, and establishing formal quantitative frameworks to measure "insight discovery" efficiency. Additionally, the authors plan to explore multimodal inputs, such as voice and image-based interactions, to further enhance the user experience.

Summary updated

BibTeX
@misc{wang2025multi,
  author = {Xi Wang and Xianyao Ling and Kun Li and Gang Yin and Liang Zhang and Jiang Wu and Jun Xu and Fu Zhang and Wenbo Lei and Annie Wang and Peng Gong},
  title = {{Multi-dimensional Data Analysis and Applications Basing on LLM Agents and Knowledge Graph Interactions}},
  year = {2025},
  eprint = {2510.15258},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.15258},
}
Figure