openclaw-home-pc/openclaw/skills/memory-vector/SKILL.md
2026-03-21 15:31:06 +08:00

69 lines
1.1 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Memory Vector Skill
> OpenClaw 向量记忆系统集成
## 功能
- 语义搜索记忆
- 添加新记忆
- 查看最近记忆
- 记忆统计
## 环境变量
- `SILICONFLOW_API_KEY`: 硅基流动 API Key可选默认使用配置
## 命令
### 搜索记忆
```
向量搜索 [关键词]
搜索记忆 [关键词]
找找 [关键词]
```
### 添加记忆
```
添加记忆 [内容] --importance [1-5] --tags [标签]
记住 [内容]
```
### 查看状态
```
记忆数量
最近记忆
记忆统计
```
## 代码位置
```
~/openclaw-memory-vector/
├── vector_memory.py # 核心引擎
├── memory_cli.py # CLI 工具
└── data/memory/ # 数据目录
```
## 使用示例
**搜索**
```
用户:帮我搜一下之前关于股票的记录
AI好的搜一下记忆库...
```
**添加**
```
用户把这个记下来铜陵有色成本7.9元
AI✅ 已添加到记忆库
```
## 注意事项
1. 需要先安装依赖:`pip3 install chromadb openai sqlalchemy`
2. 需要设置 `SILICONFLOW_API_KEY` 环境变量
3. 数据存储在 `~/openclaw-memory-vector/data/`