m-flow
Operate M-flow memory, graph-routed retrieval, ingestion pipelines, service integrations, MCP, and storage backends for the mflow-ai package.
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-08
- Stars
- ★ 11
- Forks
- 3
01 前言 Front Matter
- name
- m-flow
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Operate M-flow memory, graph-routed retrieval, ingestion pipelines, service integrations, MCP, and storage backends for the mflow-ai package.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/configuration.md5.0 KB
- 参考文档references/repo-provenance.md2.5 KB
- 参考文档references/repo-routing-metadata.json492 B
- 参考文档references/troubleshooting.md5.1 KB
03 SKILL.md 正文
M-flow
Use this repo skill when a task involves M-flow / mflow-ai: persistent memory
for agents, graph-routed RAG, episodic/procedural memory, the m_flow Python
package, the mflow CLI, the FastAPI service, web UI, MCP server, or storage
backend configuration.
Fast orientation
M-flow stores knowledge as layered memory, then retrieves by graph-routed Bundle Search. The common in-process workflow is:
await m_flow.add(...)orawait m_flow.ingest(...)to register data.await m_flow.memorize(...)to build Episode / Facet / FacetPoint / Entity graph memory.await m_flow.query(...)orawait m_flow.search(...)to retrieve context or an LLM-written answer.
Install the public package with pip install mflow-ai, or install a checkout
with pip install -e .. Python 3.10-3.13 is supported by project metadata; use
Python 3.11 when choosing a conservative inspection/development runtime.
Minimal checks:
python -c "import m_flow; print(m_flow.__version__)"
mflow --help
python scripts/check_mflow_env.py
Route by task
| If the user asks about... | Read |
|---|---|
| Python APIs, CLI commands, add/memorize/query/ingest, datasets, manual graph insertion, delete/update/prune, config facade | sub-skills/core-memory-api/SKILL.md |
Input formats, loader selection, preferred_loaders, chunking, content_type, content routing, procedural learning, custom pipelines |
sub-skills/ingestion-pipelines/SKILL.md |
Recall modes, SearchConfig, episodic Bundle Search, graph/vector/relational/cache backend tuning, empty/noisy results, Cypher |
sub-skills/retrieval-graph-search/SKILL.md |
| FastAPI, web UI, Docker Compose, auth, settings, MCP, cloud sync, workers, face-aware playground, service status | sub-skills/service-integrations/SKILL.md |
| Cross-cutting environment variables, optional extras, credential/service prerequisites | references/configuration.md |
| Install/import, credentials, DB locks, optional dependency, logging, or safe-operation recovery | references/troubleshooting.md |
| Staleness and source snapshot checks | references/repo-provenance.md |
Operating guardrails
- M-flow API calls are mostly asynchronous; wrap examples in
asyncio.run()or use an existing event loop. TRIPLET_COMPLETIONand graph construction need LLM/embedding credentials;EPISODIC,PROCEDURAL,CHUNKS_LEXICAL, andCYPHERretrieve from data that must already be memorized.- Defaults are local file-backed storage: SQLite relational metadata, LanceDB vectors, and Kuzu graph storage. External services need matching extras, environment variables, and service health checks.
- Do not run destructive operations (
delete,prune, hard deletion, DB migrations, service stop/kill) without explicit user scope and confirmation. - Treat optional browser scraping, face recognition, cloud sync, MCP remote API mode, Modal workers, and external DB providers as optional surfaces; verify credentials/services before claiming they work.
- Keep generated helper scripts safe by default. Use live workflow flags only when the user accepts local storage writes and credential use.
04 同仓库更多 Skills
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
python-api
Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP/mAP semantics, and source-style import diagnostics.
file-evaluation
Folder-based PASCAL VOC AP/mAP evaluation from ground-truth and detection text files.
object-detection-metrics
Guides legacy Object-Detection-Metrics PASCAL VOC AP/mAP evaluation from detection text folders and direct Python API classes.
nx-workspace-patterns
Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.