← 返回
未分类 Key

memory-m3e - Semantic Memory Plugin

Semantic memory plugin using m3e-large embeddings with SQLite storage, supporting storage, retrieval, and deletion via cosine similarity search in pure JS.
使用 m3e-large嵌入的语义记忆插件,基于 SQLite 存储,支持通过余弦相似度搜索进行存储、检索和删除,纯 JS 实现。
kalalxy kalalxy 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 589
下载
💾 0
安装
1
版本
#embedding#latest#m3e#memory#semantic-search#sqlite

概述

memory-m3e

语义记忆插件,使用 m3e-large embedding API + SQLite 存储。

特性

  • ✅ 使用外部 m3e-large embedding API(1536维)
  • ✅ SQLite 持久化存储
  • ✅ 纯 JS 余弦相似度搜索(无原生依赖问题)
  • ✅ 定时索引刷新(默认10分钟)
  • ✅ 三个工具:memory_store, memory_recall, memory_forget

配置

{
  "plugins": {
    "slots": {
      "memory": "memory-m3e"
    },
    "entries": {
      "memory-m3e": {
        "enabled": true,
        "config": {
          "embedding": {
            "apiKey": "your-api-key",
            "baseUrl": "http://your-embedding-server",
            "model": "m3e-large"
          },
          "dbPath": "~/.openclaw/data/memory-m3e.db",
          "indexInterval": 600000
        }
      }
    }
  }
}

使用

// 存储
memory_store({
  text: "Frappe API 开发经验",
  category: "fact",
  importance: 0.8
})

// 搜索
memory_recall({
  query: "Frappe 项目",
  limit: 5
})

// 删除
memory_forget({ memoryId: "uuid" })
memory_forget({ query: "要删除的内容" })

性能(实测,47条记忆)

  • memory_store: avg 200ms(embedding ~198ms + sqlite ~2ms)
  • memory_recall: avg 91ms(embedding ~83ms + 全表搜索 ~8ms)
  • 索引刷新:每10分钟自动执行

作者:小女子 🥰

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-01 11:29 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Agent Browser

rez0
用于 AI 代理的浏览器自动化 CLI。当用户需要与网站交互(包括浏览页面、填写表单、点击按钮、截图等)时使用。
★ 845 📥 327,566
ai-agent

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,243 📥 271,606
ai-agent

self-improving agent

pskoett
记录自身发现以实现自我改进的技能
★ 4,124 📥 877,332