#2727th of 33 in RAG and search
nano-graphrag
Compact Python GraphRAG library with swappable LLM, vector and graph storage
- Stars
- 4k
- License
- MIT
- Last commit
- Jan 2026
- Last release
- Oct 2024
- Language
- Python
3,774 on 26 Apr 20264,013 on 22 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
nano-graphrag is a Python library that builds a knowledge graph from text, generates community reports, and answers queries in global, local or naive RAG modes. The core is about 1100 lines excluding tests and prompts, with async methods and type hints. LLMs, embeddings, vector stores and graph storage can be replaced with your own implementations.
Who it is for: Python developers who want a hackable GraphRAG core to embed or modify
Strengths
- About 1100 lines of core code, easy to read and modify
- Pluggable storage: nano-vectordb, hnswlib, milvus-lite, faiss, networkx, Neo4j
- Runs on OpenAI, Azure OpenAI, Bedrock, DeepSeek or ollama with local embeddings
- Incremental insert dedupes chunks by md5 hash; async variant of every method
Weaknesses
- Does not implement the covariates feature of the original GraphRAG
- Global search uses only top-K communities (default 512), unlike the original
- Each insert recomputes communities and regenerates community reports
- Library only, no server or UI; last release was 2024-10-01
What it needs
- Python, OpenAI, Azure OpenAI, Amazon Bedrock, DeepSeek
- Needs OpenAI API key (default), Neo4j (optional)
What changed
From the release notes. No flag means the note does not say so, not that the upgrade is safe.
Also in RAG and search
See all 33| Rank | Project | Score |
|---|---|---|
| #25 | llm-answer-enginePerplexity-style Next.js answer engine over Brave search results | 36 out of 100 |
| #26 | ragbitsModular Python toolkit for LLM prompts, RAG ingestion, agents and chat APIs | 33 out of 100 |
| #28 | nextjs-openai-doc-searchBuild-time embeddings of your MDX docs into Supabase pgvector | 30 out of 100 |
| #29 | azure-search-openai-demo-csharp.NET RAG chat sample over your documents with Azure OpenAI and AI Search | 30 out of 100 |
| #30 | lightningragGo and Vue RAG platform with knowledge bases, agent canvas and admin UI | 22 out of 100 |