Chatty-KG: A Multi-Agent AI System for On-Demand Conversational Question Answering over Knowledge Graphs

Reham Omar, Abdelghny Orogat, Ibrahim Abdelaziz, Omij Mangukiya, Panos Kalnis, Essam Mansour

TL;DR

Chatty-KG is a training-free, multi-agent framework that allows users to have natural, multi-turn conversations with Knowledge Graphs (KGs). By using specialized LLM agents to translate dialogue into precise SPARQL queries, it achieves state-of-the-art accuracy and low latency without the need for expensive data preprocessing or model fine-tuning.

What Problem Does This Paper Address?

While Large Language Models (LLMs) are excellent conversationalists, they struggle with factual accuracy (hallucinations) and lack access to private or rapidly evolving enterprise data. Knowledge Graphs (KGs) provide the perfect factual "ground truth," but interacting with them usually requires expertise in formal query languages like SPARQL.

Existing solutions fall into two camps, both with flaws:

  1. Traditional KGQA systems: These are often rigid, support only single-turn questions, and require heavy, domain-specific fine-tuning.
  2. Graph-RAG (Retrieval-Augmented Generation): These systems often "flatten" the graph into text strings, losing the rich structural relationships that make KGs valuable in the first place.

The authors introduce Chatty-KG to provide a middle ground: a system that is as flexible as a chatbot but as precise as a database query engine.

Methods

Chatty-KG uses a hierarchical multi-agent architecture orchestrated via the LangGraph framework. Instead of one giant model doing everything, the task is broken down into specialized agents:

  • Contextual Understanding Module:
    • Classifier Agent: Determines if a question is standalone or depends on previous turns.
  • Rephraser Agent: Rewrites context-dependent questions (e.g., "When was he born?") into standalone ones ("When was Daniel Radcliffe born?") using dialogue history.
  • QIR Agent: Extracts semantic triples (Subject-Predicate-Object) to create a Question Intermediate Representation (QIR).
  • Query Generation & Answer Retrieval Module:
    • Matching Agent: Performs entity and relation linking to map natural language to specific KG identifiers (URIs).
  • Query Planning Agent: Generates and filters candidate SPARQL queries.
  • Assertion-Based Validation: A key novelty where agents "self-correct." If a generated triple or query fails a structural or semantic check, the system retries the step (up to a set threshold) to ensure reliability.

Datasets

The system was evaluated across five diverse, real-world Knowledge Graphs:

  • General Knowledge: DBpedia, YAGO, and Wikidata.
  • Academic/Domain Specific: DBLP and Microsoft Academic Graph (MAG).

Evaluation benchmarks included QALD-9 and LC-QuAD 1.0 for single-turn QA, and a newly generated benchmark of 20 dialogues per KG (approx. 100 questions each) to test multi-turn conversational capabilities.

Key Insights and Ideas

  • Structure Preservation is Key: By generating SPARQL queries rather than serializing graph data into text, Chatty-KG avoids the "information loss" common in standard RAG systems.
  • Modularity Equals Adaptability: Because the system is training-free, it can be deployed on a new KG immediately. Furthermore, the underlying LLM can be swapped (e.g., from GPT-4o to an open-weight model like Phi-4) without re-engineering the entire pipeline.
  • The Power of "Retries": The assertion-based validation mechanism significantly reduces hallucinations. By checking if a selected entity actually exists in the KG before proceeding, the system prevents "cascading errors."
  • Efficiency through Filtering: The Query Planning Agent uses LLMs to filter out irrelevant candidate predicates before execution, which drastically reduces the number of queries sent to the database.

Key Results

  • Superior Accuracy: Chatty-KG outperformed state-of-the-art baselines (like KGQAn and EDGQA) across all benchmarks. On the DBLP dataset, it achieved nearly 3x the accuracy of previous systems.
  • Multi-turn Success: In conversational settings, it achieved up to +87% higher Precision@1 on YAGO compared to existing conversational KGQA baselines.
  • Speed and Scalability: On the MAG dataset (the largest tested), Chatty-KG's average response time was 3.1 seconds, compared to 19.4 seconds for the leading baseline—a nearly 6x speedup.
  • LLM Agnostic: The system remains highly effective even when using smaller, open-weight models like Mistral-7B or Llama-3.1-8B, making it viable for local, private deployments.

Limitations and Future Work

  • Entity Linking Ambiguity: The system can still struggle when multiple entities have very similar names (e.g., linking "China" to the country vs. the "Emperor of China").
  • Predicate Complexity: In KGs with tens of thousands of predicates (like DBpedia), selecting the exact right relationship remains a challenge.
  • KG Coverage: Like all KGQA systems, Chatty-KG is limited by the data actually present in the graph; it cannot answer questions if the underlying facts are missing.
  • Future Directions: The authors suggest exploring more advanced "agentic" reasoning for complex, multi-hop questions that require aggregating data from multiple parts of a massive graph.

Summary updated

BibTeX
@article{omar2026chatty,
  author = {Reham Omar and Abdelghny Orogat and Ibrahim Abdelaziz and Omij Mangukiya and Panos Kalnis and Essam Mansour},
  title = {{Chatty-KG: A Multi-Agent AI System for On-Demand Conversational Question Answering over Knowledge Graphs}},
  journal = {Proc. ACM Manag. Data},
  year = {2026},
  doi = {10.1145/3786632},
}
Figure