memory
MEMORY.md + memory/*.md 的向量搜索。
用法
bash
openclaw memory <子命令> [选项]子命令
memory status
显示索引状态。
bash
openclaw memory statusmemory index
重建索引。
bash
openclaw memory indexmemory search
语义搜索记忆。
bash
openclaw memory search "<query>"示例
bash
# 查看索引状态
openclaw memory status
# 重建索引
openclaw memory index
# 搜索记忆
openclaw memory search "我的 API 密钥在哪里"
openclaw memory search "上周讨论的项目"记忆文件位置
记忆文件存储在工作区:
MEMORY.md- 主记忆文件memory/*.md- 额外记忆文件
语义搜索
记忆搜索使用向量嵌入进行语义匹配,可以找到含义相似但措辞不同的内容。