GraphQAG: A Knowledge-Graph-Guided Visual Analytics Framework for Question-Answer Pairs Generation
Yize Li, Ruiqi Yu, Tianya Pan, Ningxin Li, Songyue Li, Xiangyang Wu, Jinchang Li, Zhiguang Zhou
Abstract
Question-answer (QA) pairs are widely used in knowledge base construction, question-answering systems, and the post-training of large language models (LLMs). However, important knowledge in long documents is often distributed across multiple paragraphs and connected through complex entity relationships. Such fragmented and relational knowledge poses substantial challenges for existing QA generation methods, which often fail to adequately cover core document content, cross-paragraph semantic connections, and multi-entity relationships. We present GraphQAG, a knowledge graph-guided visual analytics framework for generating high-quality QA pairs from long documents. GraphQAG follows a three-stage workflow. First, it constructs a document knowledge graph by segmenting the document into paragraphs and extracting salient entities and relations. Second, it builds a graph-based generation space from entities, relations, and multi-hop paths to constrain and guide LLM-based QA generation. Third, it uses the knowledge graph as an interactive visual representation, enabling users to explore document knowledge structures, inspect the coverage and evidence provenance of generated QA pairs, and iteratively refine the QA pair set through graph-based interactions. We evaluated GraphQAG through a user study with 16 participants, two case studies, and expert interviews. The results indicate that GraphQAG effectively supports users in identifying knowledge coverage gaps, examining generated QA pairs, and refining the QA pair set. These findings demonstrate the usefulness of combining knowledge graphs, LLM-based generation, and visual analytics for producing more comprehensive and trustworthy QA pairs from long documents.
Create a lesson
Related papers
LiverPlan: A Stage-Adaptive Immersive Visual Analytics Framework for Anatomical Liver Surgical Planning
Shared title terminology · Qixuan Liu, Shi Qiu, Xiwen Wu et al.
CompoVista: A Composition-Graph-Based Visual Analytics System for Compositional Analysis of Traditional Chinese Paintings
Shared title terminology · Dekun Qian, Ruiqi Yu, Li Ye et al.
Sidewalk Stewards: A Visual Analytics Approach for Interactive Topology Repair of Sidewalk Networks
Shared title terminology · Stefan Cobeli, Leonardo Ferreira, Logan Loch et al.
Sangyadhi: An Analytical Framework for Diagnosing and Investigating Collective Care
Shared title terminology · Shyama Sastha Krishnamoorthy Srinivasan, Mohan Kumar, Pushpendra Singh
Agentic Dashboards: A New Design Paradigm for Visual Analytics
Shared title terminology · Sam Yu-Te Lee, Yun-Hsin Kuo, Kwan-Liu Ma
Branching Visual Inquiry in a Generative Visual Browser: A Matched Walkthrough Study
Shared title terminology · Hanjing Shi, Kimberly Wang, Dominic DiFranzo