hhy-huang/HiRAG

[EMNLP'25 findings] This is the official repo for the paper, HiRAG: Retrieval-Augmented Generation with Hierarchical Knowledge.

46
/ 100
Emerging

Organizes retrieved documents into local, global, and bridge knowledge layers within a graph database, enabling multi-level contextual retrieval that significantly outperforms flat naive RAG and graph-based approaches across comprehensiveness, empowerment, and diversity metrics. Supports LLM-agnostic integration through pluggable APIs (DeepSeek, ChatGLM, OpenAI) and batch async embedding with configurable caching, while providing modular retrieval modes (hierarchical, local-only, global-only, bridge-only) for controlled knowledge access. Includes evaluation pipelines on the UltraDomain benchmark across specialized domains (Mix, CS, Legal, Agriculture) with LLM-based assessment scoring.

522 stars.

No Package No Dependents
Maintenance 6 / 25
Adoption 10 / 25
Maturity 9 / 25
Community 21 / 25

How are scores calculated?

Stars

522

Forks

83

Language

Python

License

MIT

Last pushed

Nov 19, 2025

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/rag/hhy-huang/HiRAG"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.