Towards Open-World Retrieval-Augmented Generation on Knowledge Graph: A Multi-Agent Collaboration Framework (WWW2026)
Our paper has been accepted for publication at WWW 2026!
data/: DatasetsFreebase/: Directory for storing the knowledge graph and its index filesfreebase_qa/: Source coderequirements.txt: Project dependencies and environment configuration
All commands in this section should be executed from within the Freebase/ directory.
- Follow the data download and preprocessing steps outlined in the Freebase Setupguide. Please ensure that the
virtuososervice is running throughout the subsequent testing process. The service can be started in the background using the../bin/virtuoso-tcommand. - Run
filter_entities.pyto extract all entity names. - Run
build_index.pyto build the search index.
- Before execution, you must configure your Large Language Model (LLM) deployment by modifying the
run_llmfunction inllm_handler.py. You can find the function at this link. - Execute the following commands to run the main script:
pip install -r requirements.txt
cd ../freebase_qa/
python main.py dataset webqsp --LLM gpt-4o-mini --openai_api_keys 'your_keys' --url 'your_llm_url' --engine 'azure_openai' --method rage
The --LLM argument is used for logging and naming result files. It does not change the model actually deployed by the run_llm function. To switch to a different LLM, you must modify both this argument and the implementation within run_llm.
We employed a consistent set of parameters for all experiments conducted on the datasets, as detailed below:
--width 3
--depth 3
--relation_num 5
--agent_count 3
If you are interested or inspired by this work, you can cite us by:
@misc{xu2025openworldretrievalaugmentedgenerationknowledge,
title={Towards Open-World Retrieval-Augmented Generation on Knowledge Graph: A Multi-Agent Collaboration Framework},
author={Jiasheng Xu and Mingda Li and Yongqiang Tang and Peijie Wang and Wensheng Zhang},
year={2025},
eprint={2509.01238},
archivePrefix={arXiv},
primaryClass={cs.AI},
url={https://arxiv.org/abs/2509.01238},
}