← all repositories
FlowElement-ai/m_flow

RAG that retrieves by reasoning through memory paths

It exists because similarity is not relevance: it scores knowledge by evidence paths through a structured memory graph, not vector distance.

m_flow
Collecting fresh signals — velocity needs a few days of history.
collecting data…
star history

What it does

M-flow is a retrieval engine that organizes knowledge into a four-layer cone graph: Episode, Facet, FacetPoint, and Entity. A query enters through vector search at whichever granularity matches its precision, then the graph propagates evidence along typed, semantically weighted edges to score and return coherent memory bundles. The system is designed to retrieve by reasoning chains rather than flat similarity.

The interesting bit

The project treats the graph itself as the scoring engine, not merely a structural aid. It explicitly distinguishes similarity from relevance: a query anchors at a fine-grained node and the graph routes through facets to the broader episode containing the full context, modeling recall as path-cost optimization rather than vector ranking.

Key highlights

  • Unified four-layer cone graph connects episodic summaries, topical facets, atomic facts, and named entities in one traversable structure.
  • Retrieval scores by the strongest evidence path, penalizing broad or weak associations while rewarding coherent chains.
  • Coreference resolution runs at ingestion, resolving pronouns into concrete antecedents before indexing so cross-turn references remain retrievable.
  • Optional face-aware partitioning routes ingestion and queries to person-specific memory datasets via real-time camera recognition.
  • Semantic edges carry natural-language descriptions and act as first-class signals in retrieval scoring.

Caveats

  • The README references “reported benchmarks” but does not surface any specific numbers or comparative metrics in the visible text.
  • Face-aware partitioning depends on an optional external face-recognition repository, so that capability is not self-contained.

Verdict

Worth a look if you are building agent memory or RAG systems where contextual coherence matters more than keyword overlap. Pass if you need a drop-in vector replacement with published benchmark tables.

Frequently asked

What is FlowElement-ai/m_flow?
It exists because similarity is not relevance: it scores knowledge by evidence paths through a structured memory graph, not vector distance.
Is m_flow open source?
Yes — FlowElement-ai/m_flow is open source, released under the Apache-2.0 license.
What language is m_flow written in?
FlowElement-ai/m_flow is primarily written in Python.
How popular is m_flow?
FlowElement-ai/m_flow has 4.4k stars on GitHub.
Where can I find m_flow?
FlowElement-ai/m_flow is on GitHub at https://github.com/FlowElement-ai/m_flow.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.