Skip to content

Add GraphRAG retrieval (knowledge graph-based) #160

Closed

Description

@AmitoVrito

Description

Add a GraphRAGRetriever — builds a knowledge graph from documents and uses graph traversal + community detection for retrieval.

What to do

  • Create src/synapsekit/retrieval/strategies/graph_rag.py
  • Extract entities and relationships using LLM → build knowledge graph
  • Community detection (Leiden algorithm) to create hierarchical summaries
  • For local queries: search entity neighborhoods
  • For global queries: use community summaries
  • Add tests (mock LLM)

Reference

  • GraphRAG paper: Microsoft Research, 2024

Activity

  1. AmitoVrito commented on Mar 12, 2026

    @AmitoVrito
    CollaboratorAuthor

    Thanks for your interest! I will assign it to you. Before you start, could you give the repo a ⭐? It really helps with visibility for a new project. Looking forward to your PR!

  2. added
    enhancement
    on Mar 12, 2026
  3. wu-xiaochen commented on Mar 18, 2026

    @wu-xiaochen

    Interesting project! For GraphRAG, consider combining Neo4j with a reasoning layer (like Apache Jena) for better query understanding. I am building ontology-platform - an enterprise ontology reasoning engine that might be relevant to your work.

  4. AmitoVrito commented on Mar 19, 2026

    @AmitoVrito
    CollaboratorAuthor

    Done — GraphRAGRetriever + KnowledgeGraph shipped in v1.1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions