flowelement-xinliuyuansu/m_flow

A bio-inspired cognitive memory engine — a new paradigm for Graph RAG.

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 56 minutes ago
Added to GitGenius on September 15th, 2026
Created on March 31st, 2026
Open Issues & Pull Requests: 13 (+0)
GitHub issues: Enabled
Number of forks: 258
Total Stargazers: 4,507 (+2)
Total Subscribers: 93 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 7.8 hours
Mean response time: 38.0 hours
90th percentile: 8.5 days
Tracked items: 8

Most active contributors

Sign in to see contributor activity.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 0
New in 7 days: 0
Closed in 7 days: 0
Avg open age: N/A days
Stale 30+ days: 0
Stale 90+ days: 0

Recent activity

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

Top labels

  • enhancement (4)
  • Stale (3)
  • bug (2)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

M-flow is a retrieval-augmented generation system that uses graph topology as its primary scoring engine rather than vector similarity alone.

M-flow addresses the limitation that traditional RAG systems rely heavily on vector similarity matching, which can conflate similarity with relevance. The tool solves this by organizing knowledge into a four-layer cone graph—Episode, Facet, FacetPoint, and Entity—where queries anchor at the granularity level that matches their specificity. Once anchored, evidence propagates along semantically weighted edges through the graph structure, scoring results by the strongest chain of reasoning that connects the query to potential answers. This path-cost approach treats relevance as a coherent chain of evidence rather than a proximity score, allowing the system to distinguish between textually similar but contextually unrelated information.

Adoption suits teams building agentic systems or long-term memory layers where reasoning chains matter more than keyword overlap. The tool is particularly valuable when queries require understanding causal or episodic relationships rather than simple fact retrieval. M-flow integrates with large language models and supports vector search as an entry point, but differs fundamentally from traditional GraphRAG systems by making the graph decisive in scoring rather than merely supportive for organization and summarization.

The project maintains active development with regular updates to its core retrieval architecture and example implementations. Documentation includes detailed architectural specifications and practical examples demonstrating the path-cost mechanism. The codebase is written in Python and the team provides integration points including Model Context Protocol support and skill packages for agent frameworks.