网淘吧来吧,欢迎您!

People Memories技能使用说明

2026-03-31 新闻来源:网淘吧 围观:21
电脑广告
手机广告

人物记忆技能

目的

为你交谈的对象保持一个短期、可搜索的记忆库,以便你的助手能立即回忆起后续跟进内容。该技能处理:

  • 记忆通过提示(语音或文本)来持久化评论、偏好和上下文。
  • 总结与导出功能,让你可以打包一个人的“事实卡片”。
  • 搜索、回忆和列出命令,以便快速查找。
  • 可选地从语音转录中自动触发(当你说“记住……”时)。

结构与存储

~/.clawdbot/people-memory.json现在存储:

People Memories

{
  "people": {
    "alex": {
      "displayName": "Alex",
      "notes": [
        {
          "timestamp": "2026-01-29T12:05:00Z",
          "note": "Likes cats and doing late-night music practice",
          "source": "voice",
          "tags": ["pets", "music"]
        }
      ]
    }
  },
  "index": {
    "music": ["alex"],
    "cats": ["alex"]
  }
}
  • 姓名被规范化处理(小写键),但存储显示名称。
  • 每个笔记记录包括时间戳笔记内容来源标签
  • 一个索引映射表通过关键词关联到人物,实现超快速查找。

命令行界面命令

使用内置脚本来管理数据库:

skills/people-memories/scripts/people_memory.py <command> [options]
  • remember --person Alex --note "loves chai" --tags drinks,preferences– 添加一条笔记。
  • recall --person Alex --limit 3– 读取最新的笔记。
  • summarize --person Alex– 打印包含数量、标签、最后更新时间的事实卡片。
  • search --query coffee– 查找笔记中提到“咖啡”的人。
  • export --person Alex --format md --out ~/Desktop/alex.md– 将笔记导出为Markdown(或JSON)格式。
  • list– 列举所有存储的人物及其笔记数量。

自动捕获(语音/聊天)

extensions/people-memories扩展会监听/voice-chat当你输入类似“记住Alex喜欢猫”这样的内容时,系统会自动运行记录命令并保存笔记。索引会在后台更新,除非你明确要求确认,否则我们不会主动发送确认通知。 --- 提醒与自动化 --- 每当笔记提到生日或纪念日时,系统会自动附上事件元数据(类型+日期)。每天早晨,一个辅助定时任务会执行 --- python3 skills/people-memories/scripts/people_memory.py reminders --days 0 --window 7 --format message --- 并通过Telegram发送生成的摘要,这样你就能自动获知接下来一周的生日/纪念日提醒,无需手动操作。如果你希望调整提醒频率或接收渠道,可以自行重新运行命令或更新计划设置。 --- 此版本的增强功能 --- 智能索引 --- 通过标签和关键词提取功能,保持查询索引的实时更新,确保即使你重复使用形容词进行搜索,也能准确匹配到对应人员。 --- 摘要与导出 --- 快速生成任何人的笔记事实卡片或可共享的Markdown/JSON格式文件。 --- 语音集成与日志记录 --- 语音转录内容会自动录入数据库,无需手动输入命令。remembercommand and logs the note. The index updates in the background, and we keep confirmations quiet unless you explicitly ask for them.

Reminders & automation

Event metadata (type + date) is attached whenever a note mentions birthdays or anniversaries. A helper cron job runspython3 skills/people-memories/scripts/people_memory.py reminders --days 0 --window 7 --format messageeach morning and delivers the resulting digest over Telegram so you’re nudged about the next week’s birthdays/anniversaries without manual effort. If you prefer a different cadence or channel, rerun the command yourself or update the schedule.

Enhancements in this version

  1. Smart indexing– Tags + keyword extraction keep the lookup index updated so searches find matching people even when you reuse adjectives.
  2. Summaries & exports– Quickly produce a fact card or shareable Markdown/JSON of anyone’s notes.
  3. Voice integration + logging– transcripts feed the database so you don’t type commands manually.
  4. 结构化数据——标准化的键值、时间戳及标签元数据使其他工具(如定时任务、仪表板)能够轻松调用内存存储。

后续步骤/优化建议

  • 通过运行时添加可选确认响应“已记录,为Alex保存。”api.message助手
  • 集成提醒/定时任务功能,使带标签的笔记(例如生日)能够触发通知
  • 构建简易监控界面(网页或终端端),用于预览最新的人员卡片

请告知下一步自动化开发方向(优先级筛选、通知推送、跨智能体同步等功能)

免责申明
部分文章来自各大搜索引擎,如有侵权,请与我联系删除。
打赏

文章底部电脑广告
手机广告位-内容正文底部

相关文章

您是本站第393649名访客 今日有1篇新文章/评论