#2727th of 33 in RAG and search

nano-graphrag

Compact Python GraphRAG library with swappable LLM, vector and graph storage

Releases and problems feed (RSS)

Stars
4k
License
MIT
Last commit
Jan 2026
Last release
Oct 2024
Language
Python
Stars, last 30 weeks+239
26 Apr 2026: 3,774 stars3 May 2026: 3,781 stars10 May 2026: 3,794 stars17 May 2026: 3,800 stars24 May 2026: 3,809 stars31 May 2026: 3,819 stars7 Jun 2026: 3,827 stars14 Jun 2026: 3,842 stars21 Jun 2026: 3,858 stars28 Jun 2026: 3,870 stars5 Jul 2026: 3,880 stars12 Jul 2026: 3,900 stars19 Jul 2026: 3,907 stars26 Jul 2026: 3,915 stars2 Aug 2026: 3,925 stars9 Aug 2026: 3,938 stars16 Aug 2026: 3,943 stars23 Aug 2026: 3,951 stars30 Aug 2026: 3,954 stars6 Sept 2026: 3,962 stars13 Sept 2026: 3,967 stars20 Sept 2026: 3,969 stars27 Sept 2026: 3,973 stars4 Oct 2026: 3,977 stars11 Oct 2026: 3,987 stars18 Oct 2026: 3,995 stars25 Oct 2026: 4,001 stars1 Nov 2026: 4,002 stars8 Nov 2026: 4,002 stars15 Nov 2026: 4,011 stars22 Nov 2026: 4,013 stars

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
Also in RAG and search
RankProjectScore
#25llm-answer-enginePerplexity-style Next.js answer engine over Brave search results5k starsMIT36 out of 100
#26ragbitsModular Python toolkit for LLM prompts, RAG ingestion, agents and chat APIs1.7k starsMIT33 out of 100
#28nextjs-openai-doc-searchBuild-time embeddings of your MDX docs into Supabase pgvector1.7k starsApache-2.030 out of 100
#29azure-search-openai-demo-csharp.NET RAG chat sample over your documents with Azure OpenAI and AI Search846 starsMIT30 out of 100
#30lightningragGo and Vue RAG platform with knowledge bases, agent canvas and admin UI456 starsApache-2.022 out of 100