hhy-huang/HiRAG
[EMNLP'25 findings] This is the official repo for the paper, HiRAG: Retrieval-Augmented Generation with Hierarchical Knowledge.
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.
Stars
522
Forks
83
Language
Python
License
MIT
Category
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.
Compare
Higher-rated alternatives
ictnlp/FlexRAG
FlexRAG: A RAG Framework for Information Retrieval and Generation.
VectorInstitute/fed-rag
A framework for fine-tuning retrieval-augmented generation (RAG) systems.
NirDiamant/RAG_Techniques
This repository showcases various advanced techniques for Retrieval-Augmented Generation (RAG)...
RUC-NLPIR/FlashRAG
⚡FlashRAG: A Python Toolkit for Efficient RAG Research (WWW2025 Resource)
gomate-community/TrustRAG
TrustRAG:The RAG Framework within Reliable input,Trusted output