命令行
mnemosyne 命令行工具:初始化、写入、召回、健康检查。
Python API 里的每一项能力都有对应命令。没有任何东西藏在 SDK 后面 —— 所以命令行也是验证引擎是否正常的最快方式。
日常命令
mnemosyne --dir ./mem init
mnemosyne --dir ./mem retain --content "Apple Inc. was founded in 1976"
mnemosyne --dir ./mem recall "Apple" --k 5
mnemosyne --dir ./mem consolidate --dry-run
体检、图谱与审计
这三条值得放进定时任务或 CI 步骤。
mnemosyne --dir ./mem status --json
mnemosyne --dir ./mem doctor --json
mnemosyne --dir ./mem graph-query "Steve Jobs" --depth 2 --json
mnemosyne --dir ./mem verify-integrity --json
mnemosyne --dir ./mem ledger-audit "<memory_id>"
数据进出
mnemosyne --dir ./mem export --format json --out ./memories.json
mnemosyne --dir ./mem import ./memories.json
# migrate 只对旧版 JSONL 后端有效(SQLite 库没有 index.jsonl):
mnemosyne --dir ./old migrate --jsonl ./old/index.jsonl
本地控制台
暗色管理界面由包自身提供 —— 不依赖外部 CDN、无遥测、无需账号。含记忆浏览器、图谱视图与运行统计。
python -m mnemosyne.webui.web_server --port 9090
# http://127.0.0.1:9090 —— 默认账号 admin / mnemosyne
进入交互版
阅读完整文档