LinkQ: An LLM-Assisted Visual Interface for Knowledge Graph Question-Answering

Harry Li,Gabriel Appleby,Ashley Suh
2024-06-07
Abstract:We present LinkQ, a system that leverages a large language model (LLM) to facilitate knowledge graph (KG) query construction through natural language question-answering. Traditional approaches often require detailed knowledge of complex graph querying languages, limiting the ability for users -- even experts -- to acquire valuable insights from KG data. LinkQ simplifies this process by first interpreting a user's question, then converting it into a well-formed KG query. By using the LLM to construct a query instead of directly answering the user's question, LinkQ guards against the LLM hallucinating or generating false, erroneous information. By integrating an LLM into LinkQ, users are able to conduct both exploratory and confirmatory data analysis, with the LLM helping to iteratively refine open-ended questions into precise ones. To demonstrate the efficacy of LinkQ, we conducted a qualitative study with five KG practitioners and distill their feedback. Our results indicate that practitioners find LinkQ effective for KG question-answering, and desire future LLM-assisted systems for the exploratory analysis of graph databases.
Computation and Language,Artificial Intelligence,Machine Learning
What problem does this paper attempt to address?
The problem that this paper attempts to solve is how to use large - language models (LLMs) to simplify the query construction process of knowledge graphs (KGs), enabling non - expert users to obtain valuable information by asking questions in natural language. Traditional methods usually require users to have in - depth knowledge of complex graph query languages, which limits the ability of users (even experts) to obtain valuable insights from knowledge - graph data. The paper proposes a system named LinkQ. This system uses LLMs to interpret users' natural - language questions and convert them into well - structured KG queries. In this way, LinkQ aims to prevent LLMs from generating false or incorrect information, while providing an interactive interface that allows users to evaluate the accuracy of the queries generated by LLMs, thereby improving the reliability and efficiency of the queries.