← 返回 Skills 市场
stigg86

Bud Semantic Memory

作者 stigg86 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
67
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install bud-semantic-memory
功能描述
Vector-based semantic search for OpenClaw memories. Indexes memory files and enables meaning-based search instead of keyword matching. Uses ChromaDB for loca...
使用说明 (SKILL.md)

Semantic Memory 🧠

Search your memories by meaning, not keywords. Uses vector embeddings to find relevant information even when you don't remember the exact words.

Built on ChromaDB for fast, private, local vector search.


Setup

# Index existing memories
python3 ~/.openclaw/semantic-memory/semantic_memory.py index

Usage

# Index all memory files (run after installing or to refresh)
python3 ~/.openclaw/semantic-memory/semantic_memory.py index

# Search memories by meaning
python3 ~/.openclaw/semantic-memory/semantic_memory.py search "what did we decide about the trading bot"

# Add a new memory
python3 ~/.openclaw/semantic-memory/semantic_memory.py add "Remember to check the OANDA bot logs daily"

# Show stats
python3 ~/.openclaw/semantic-memory/semantic_memory.py stats

How It Works

  1. Indexing — Reads all .md files from ~/.openclaw/workspace/memory/, generates vector embeddings via Gemini API, stores in ChromaDB

  2. Search — Converts your query to a vector, finds most similar memories using cosine similarity

  3. Results — Returns relevant memories ranked by semantic similarity


Examples

Before (keyword search)

Query: "GBP USD trades" Results: Only exact matches for "GBP USD"

After (semantic search)

Query: "What pairs did we trade on OANDA?" Results: Finds GBP/USD, EUR/USD, USD/JPY etc. even without exact phrase match


Requirements

  • ChromaDB — Local vector database (pip install chromadb)
  • Gemini API key — For generating embeddings (optional, falls back to text search)

Without Gemini key, uses simple text search as fallback.


Memory Sources

Automatically indexes:

  • ~/.openclaw/workspace/memory/*.md — Daily memory files
  • Manual adds via add command

Files

~/.openclaw/semantic-memory/
├── semantic_memory.py   # Main script
├── memory.log           # Log file
└── data/                # ChromaDB storage

Integration

Add to cron for automatic indexing:

# Re-index daily at 4am
0 4 * * * python3 ~/.openclaw/semantic-memory/semantic_memory.py index

Or call from other skills to search memories:

import subprocess
result = subprocess.run(
    ['python3', '/home/umbrel/.openclaw/semantic-memory/semantic_memory.py', 
     'search', 'trading decisions'],
    capture_output=True, text=True
)

Why This Matters

Regular search: "找 exactly this word" Semantic search: "找 this meaning"

Even if I don't remember "OANDA bot flip setting", I might find "bot was losing because FLIP was disabled" — semantic search bridges that gap.


Dependencies

  • chromadb — Vector database (installed with pip)
  • gemini API key — For embeddings (optional)
  • Python 3.8+
安全使用建议
Review before installing. Use it only if you are comfortable with memory content being embedded and potentially sent to Gemini, or confirm there is a fully local mode. Avoid storing secrets, credentials, personal records, or confidential work notes unless retention, deletion, and external API behavior are clear.
能力标签
requires-sensitive-credentials
能力评估
Purpose & Capability
Semantic search, local ChromaDB storage, and memory-file persistence fit a memory skill, but the supplied artifacts indicate embeddings may be generated through the Gemini API while the skill is framed as local/private.
Instruction Scope
The skill appears to read memory markdown files and process arbitrary memory text; that is purpose-aligned, but the external processing path is not clearly scoped or consent-gated in the supplied evidence.
Install Mechanism
No artifact-backed evidence of a deceptive installer or unrelated install-time behavior was provided; the concern is runtime data handling rather than installation.
Credentials
Access to user memory files is proportionate for semantic memory, but transmitting those contents or excerpts to a third-party embedding service is high-impact unless clearly disclosed and user-controlled.
Persistence & Privilege
Durable storage under ~/.openclaw/workspace/memory and local vector indexing are expected for this kind of tool, but users should understand retention and deletion implications.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install bud-semantic-memory
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /bud-semantic-memory 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of semantic-memory: enables meaning-based memory search for OpenClaw using vector embeddings. - Adds semantic search for memory files with vector indexing via ChromaDB. - Supports indexing, searching, adding, and stats commands through a Python script. - Integrates with Gemini API for generating text embeddings (falls back to text search if unavailable). - Local, fast, and private: data stored in user's file system. - Simple setup and integration with cron or other skills.
元数据
Slug bud-semantic-memory
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Bud Semantic Memory 是什么?

Vector-based semantic search for OpenClaw memories. Indexes memory files and enables meaning-based search instead of keyword matching. Uses ChromaDB for loca... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 67 次。

如何安装 Bud Semantic Memory?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install bud-semantic-memory」即可一键安装,无需额外配置。

Bud Semantic Memory 是免费的吗?

是的,Bud Semantic Memory 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Bud Semantic Memory 支持哪些平台?

Bud Semantic Memory 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Bud Semantic Memory?

由 stigg86(@stigg86)开发并维护,当前版本 v1.0.0。

💬 留言讨论