Skip to content
/ GNN-RAG Public

GNN-RAG: Graph Neural Retrieval for Large Language Modeling Reasoning

Notifications You must be signed in to change notification settings

cmavro/GNN-RAG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is the code for GNN-RAG: Graph Neural Retrieval for Large Language Modeling Reasoning.

alt GNN-RAG: The GNN reasons over a dense subgraph to retrieve candidate answers, along with the corresponding reasoning paths (shortest paths from question entities to answers). The retrieved reasoning paths -optionally combined with retrieval augmentation (RA)- are verbalized and given to the LLM for RAG

The directory is the following:

|----gnn folder has the implementation of different KGQA GNNs.

You can train your own GNNs or you can skip this folder and use directly the GNN output (retrieved answer nodes) that we computed (llm/results/gnn).

|----llm folder has the implementation for RAG-based KGQA with LLMs.

Please see details on how to reproduce results there.

Results: We append all the results for Table 2: See results/KGQA-GNN-RAG-RA or results/KGQA-GNN-RAG. You can look at the actual LLM generations, as well as the KG information retrieved ("input" key) in predictions.jsonl.

About

GNN-RAG: Graph Neural Retrieval for Large Language Modeling Reasoning

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published