Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

DataArcTech/GraphSearch

Repository files navigation

GraphSearch: An Agentic Deep Searching Workflow for Graph Retrieval-Augmented Generation


πŸ“„ Paper & Resources

arXiv hf_dataset License: MIT


πŸš€ Environment Setup

We recommend that building an individual environment for each GraphRAG method, for example:

conda create -n lightrag python=3.11
cd lightrag
pip install lightrag-hku
conda create -n hypergraphrag python=3.11
conda activate hypergraphrag
git clone git@github.com:LHRLAB/HyperGraphRAG.git
cd HyperGraphRAG
pip install -r requirements.txt
pip install -e .

πŸ“ Folders and Files


β”œβ”€β”€ assets/
β”œβ”€β”€ datasets/
β”‚ β”œβ”€β”€ contexts/
β”‚ β”‚ β”œβ”€β”€ 2wikimultihopqa.txt
β”‚ β”‚ β”œβ”€β”€ agriculture.txt
β”‚ β”‚ β”œβ”€β”€ hotpotqa.txt
β”‚ β”‚ β”œβ”€β”€ hypertension.txt
β”‚ β”‚ β”œβ”€β”€ legal.txt
β”‚ β”‚ └── musique.txt
β”‚ └── questions/
β”‚ β”œβ”€β”€ 2wikimultihopqa.json
β”‚ β”œβ”€β”€ agriculture.json
β”‚ β”œβ”€β”€ hotpotqa.json
β”‚ β”œβ”€β”€ hypertension.json
β”‚ β”œβ”€β”€ legal.json
β”‚ └── musique.json
β”œβ”€β”€ deepsearch/
β”‚ β”œβ”€β”€ components.py
β”‚ └── prompts.py
β”œβ”€β”€ grag_initializers/
β”‚ β”œβ”€β”€ __init__.py
β”‚ β”œβ”€β”€ hypergraphrag.py
β”‚ β”œβ”€β”€ lightrag.py
β”‚ β”œβ”€β”€ minirag.py
β”‚ └── pathrag.py
β”œβ”€β”€ graphkb/
β”‚ └── lightrag/
β”‚ β”œβ”€β”€ 2wikimultihopqa/
β”‚ β”œβ”€β”€ hotpotqa/
β”‚ └── musique/
β”œβ”€β”€ README.md
β”œβ”€β”€ __init__.py
β”œβ”€β”€ build_graph.py
β”œβ”€β”€ config.py
β”œβ”€β”€ graphrags.py
β”œβ”€β”€ infer.py
└── utils.py

πŸ” Graph Construction and Inference

Build Graph KB:

python build_graph.py -d musique -g lightrag

Inference:

python infer.py -d musique -m graphsearch -g lightrag

πŸ“– Citation

If you find this work useful, please cite:

@article{yang2025graphsearch,
 title={GraphSearch: An Agentic Deep Searching Workflow for Graph Retrieval-Augmented Generation},
 author={Yang, Cehao and Wu, Xiaojun and Lin, Xueyuan and Xu, Chengjin and Jiang, Xuhui and Sun, Yuanliang and Li, Jia and Xiong, Hui and Guo, Jian},
 journal={arXiv preprint arXiv:2509.22009},
 year={2025}
}

About

GraphSearch: An Agentic Deep Searching Workflow for Graph Retrieval-Augmented Generation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /