AGENTiGraph: A Multi-Agent Knowledge Graph Framework for Interactive, Domain-Specific LLM Chatbots

Xinjie Zhao, Moritz Blum, Fan Gao, Yingjian Chen, Boming Yang, Luis Marquez-Carpintero, Monica Pina-Navarro, Yanran Fu, So Morikawa, Yusuke Iwasawa, Yutaka Matsuo, Chanjun Park, Irene Li

Abstract

Large Language Models (LLMs) frequently struggle with factual reliability, data provenance, and the management of proprietary, rapidly evolving information. While Knowledge Graphs (KGs) provide a structured and transparent alternative, their reliance on complex query languages like SPARQL or Cypher creates a significant barrier for non-technical domain experts. This paper introduces AGENTiGraph, a multi-agent framework designed to bridge this accessibility gap. By orchestrating specialized LLM agents to manage and query KGs through natural language, AGENTiGraph enables users to interact with structured databases as intuitively as a standard chatbot. Our evaluation demonstrates that this framework significantly improves classification accuracy and execution success rates over zero-shot LLM baselines.

1. Introduction

Despite the transformative potential of LLMs, their deployment in high-stakes domains—such as law or medicine—is often hindered by "hallucinations" and a lack of transparency. Knowledge Graphs (KGs) offer a robust solution by providing a logically consistent structure for data. However, the technical expertise required to manipulate KGs remains a bottleneck.

AGENTiGraph addresses this "execution divide" by providing a system where users can build, manage, and query domain-specific KGs using simple natural language. The framework transforms the user experience from technical database management to a conversational interaction, ensuring that professionals can leverage proprietary data without programming knowledge.

2. Methodology

The core of AGENTiGraph is a modular multi-agent pipeline. Rather than utilizing a single prompt for all operations, the system decomposes tasks into seven specialized stages to ensure precision and reliability:

  1. User Intent Interpretation: Employs Few-Shot and Chain-of-Thought (CoT) reasoning to accurately identify user objectives.
  2. Key Concept Extraction: Utilizes Named Entity Recognition (NER) and maps entities to the graph using BERT-derived semantic similarity to ensure alignment with existing data.
  3. Task Planning: Breaks down the interpreted intent into a logical sequence of executable steps.
  4. KG Interaction: Bridges natural language and structured data by generating formal Cypher queries using the ReAct framework.
  5. Reasoning: Applies logical inference to the data retrieved from the database.
  6. Response Generation: Synthesizes findings into a coherent, context-aware natural language response.
  7. Dynamic Knowledge Integration: Features an "Update Agent" capable of adding new entities and relationships to the Neo4j database in real-time.

To enhance user interaction, the system offers a dual-mode interface: a "Chatbot Mode" for standard conversation and an "Exploration Mode" for interactive visual navigation of the graph structure.

3. Experimental Setup

The framework was evaluated using an expanded version of the TutorQA dataset, focusing on educational scenarios within the Natural Language Processing (NLP) domain. The evaluation comprised 3,500 total queries, structured as follows:

  • Task-Specific Queries: 500 queries each for six tasks, including Relation Judgment, Prerequisite Prediction, Path Searching, Concept Clustering, Subgraph Completion, and Idea Hamster.
  • Free-form Queries: 500 queries designed to test general system flexibility.

4. Results and Discussion

Experimental results indicate that AGENTiGraph significantly outperforms standard zero-shot LLM baselines. Using GPT-4o as the backbone, the system achieved a 95.12% classification accuracy and a 90.45% execution success rate, compared to 83.34% and 77.12%, respectively, for the zero-shot baseline.

4.1 Orchestration and Model Performance

A key insight from the study is that the agentic framework "amplifies" the capabilities of smaller models. For instance, LLaMa 3.1-8b, when integrated into the AGENTiGraph framework, outperformed the zero-shot performance of much larger models like GPT-4. This suggests that multi-step task planning and specialized orchestration are more critical for KG interaction than raw model size.

4.2 User Experience and Transparency

In a user study, AGENTiGraph received an overall satisfaction rating of 6.0/7.0. Approximately 64% of users preferred AGENTiGraph's responses over standard ChatGPT-4o, citing more concise and contextually focused answers. The "Exploration Mode" proved vital for transparency, allowing users to audit the LLM’s reasoning by visually verifying relationships within the graph, thereby mitigating the impact of potential hallucinations.

5. Limitations and Future Work

While the system performed well, some users (10%) noted that explanations for highly complex tasks were occasionally too brief. Additionally, the "Path Searching" task received the lowest satisfaction score (5.9/7), with users requesting more granular visual details during navigation.

Future research will focus on expanding the framework's evaluation into high-stakes environments, such as legal and medical domains, where data privacy and factual precision are paramount. We also aim to refine the visualization tools to provide deeper insights into complex graph traversals.

6. Conclusion

AGENTiGraph demonstrates that a multi-agent approach can effectively bridge the gap between the conversational flexibility of LLMs and the structural integrity of Knowledge Graphs. By automating the technical complexities of KG management, the framework empowers non-technical users to maintain and query sophisticated databases with high accuracy and transparency.

Summary updated

BibTeX
@inproceedings{zhao2025agentigraph,
  author = {Xinjie Zhao and Moritz Blum and Fan Gao and Yingjian Chen and Boming Yang and Luis Marquez-Carpintero and Monica Pina-Navarro and Yanran Fu and So Morikawa and Yusuke Iwasawa and Yutaka Matsuo and Chanjun Park and Irene Li},
  title = {{AGENTiGraph: A Multi-Agent Knowledge Graph Framework for Interactive, Domain-Specific LLM Chatbots}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2025},
}
Figure