Skip to content

Repository for the implementation for the poster - "Toward Exploring Knowledge Graphs with LLMs", SEMANTiCS'24.

Notifications You must be signed in to change notification settings

parklize/LLM4SPARQL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Toward Exploring Knowledge Graphs with LLMs

This repository contains the implementation for the poster - "Toward Exploring Knowledge Graphs with LLMs", SEMANTiCS'24.

Abstract

Interacting with knowledge graphs (KGs) is challenging for non-technical users with information needs who are unfamiliar with KG-specific query languages such as SPARQL and the underlying KG schema. Previous KG question answering systems require ground-truth pairs of questions and queries or fine tuning (Large) Language Models (LLMs) for a specific KG, which is time-consuming and demands deep expertise. In this poster, we present a framework for exploring KGs for question answering using LLMs in a zero-shot setting for non-technical end users, without the need for ground-truth pairs of questions and queries or fine-tuning LLMs. Additionally, we evaluate an example implementation in a simple yet challenging setting using LLMs exclusively based on the framework, without the extra effort of maintaining the embeddings or indexes of entities from KG for retrieving relevant ones to a given question. We share preliminary experimental results indicating that exploring a KG using LLM-generated SPARQL queries with reasonable complexity is possible in such a challenging setting.

Main environments

  • Python 3.11.0
  • Others can be found in requirements.txt

Folder structure

├── data          # the folder contains data used for experiments
├── results       # result folder 
requirements.txt  # packages used: output from ```pip freeze > requirements.txt```
data_utils.py	  # data utils	
prompts.py	  # prompt templates 
main.py	          # main file for running experiments

Citation

Guangyuan Piao, et al. "Toward Exploring Knowledge Graphs with LLMs", 20th International Conference on Semantic Systems, 2024. [BibTex]

About

Repository for the implementation for the poster - "Toward Exploring Knowledge Graphs with LLMs", SEMANTiCS'24.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages