gusye1234/nano-graphrag

A simple, easy-to-hack GraphRAG implementation

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 23 minutes ago
Added to GitGenius on September 17th, 2026
Created on July 25th, 2024
Open Issues & Pull Requests: 84 (+0)
GitHub issues: Enabled
Number of forks: 427
Total Stargazers: 3,990 (+0)
Total Subscribers: 19 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 11.3 hours
Mean response time: 12.4 days
90th percentile: 33.0 days
Tracked items: 72

Most active contributors

Sign in to see contributor activity.

How this project is maintained

96% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Three people close 66% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 67
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 612 days
Stale 30+ days: 67
Stale 90+ days: 67

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • good first issue (2)
  • bug (1)
  • enhancement (1)
  • help wanted (1)
  • wechat (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

Nano-graphrag is a Python library that provides a lightweight implementation of GraphRAG, a retrieval-augmented generation approach that uses knowledge graphs to improve question-answering over documents.

The project addresses the complexity of the official GraphRAG implementation by offering a simpler, more readable codebase that retains core functionality while reducing the barrier to understanding and modifying the system. It achieves this through a minimal footprint of approximately 1100 lines of code, excluding tests and prompts, while maintaining asynchronous operations and full type annotations. The tool supports multiple LLM providers including OpenAI, Azure OpenAI, and Amazon Bedrock, as well as local alternatives using transformers and Ollama for users without API keys.

Developers should choose this tool if they need a GraphRAG implementation that prioritizes code clarity and hackability over feature maximalism. It suits projects where understanding and customizing the RAG pipeline matters more than relying on a comprehensive framework. The tool supports both batch and incremental document insertion, with incremental insertion avoiding duplicate computation while recomputing graph communities. It also provides naive RAG as an alternative query mode. The project is portable across different storage backends including Faiss and Neo4j, making it adaptable to various deployment scenarios.

Almost all open issues are raised by external users rather than the core team, indicating a substantial base of adopters using the tool in real-world contexts. Maintainers typically respond to new issues and pull requests within a day. Work in the issue tracker is dominated by bug reports, enhancement requests, and WeChat-related discussions.