nano-graphrag

nano-graphrag

Simple, easy-to-hack GraphRAG

Description

Microsoft's GraphRAG works well but its codebase is massive and hard to adapt. nano-graphrag is a simple, easy-to-hack GraphRAG implementation in around a thousand lines.

It keeps knowledge graph building and global and local retrieval, with swappable LLMs, vector stores and graph databases.

Features



Small code:Easy to hack.

Knowledge graph:Entities and relations.

Retrieval:Global and local.

Swappable:Models and storage.
Tags:ragllm