← 返回 Skills 市场
89
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install evrmem
功能描述
Local Chinese semantic memory search and storage using text2vec embeddings and ChromaDB, supporting RAG-based context augmentation for AI agents.
使用说明 (SKILL.md)
evrmem Skill\r
\r
Name\r
\r
evrmem\r
\r
Description\r
\r Local Chinese Vector Memory System. Provides semantic memory search and storage for AI agents using local Chinese embedding models (text2vec) and ChromaDB. Supports RAG-based context augmentation.\r \r
When to Use\r
\r Use this skill when the user asks to:\r
- "Search memories" or "Find related memories"\r
- "Save this to memory"\r
- "Remember this information"\r
- "Search my knowledge base"\r
- "Find past notes about X"\r
- "Add this to my memory"\r
- "What do I know about X"\r
- "RAG retrieval" or "context augmentation"\r
- Query or recall previous learnings\r \r
Prerequisites\r
\r Install evrmem and initialize:\r \r
pip install evrmem\r
evrmem init\r
```\r
\r
For China users (mirror):\r
\r
```bash\r
set HF_ENDPOINT=https://hf-mirror.com # Windows\r
# or\r
export HF_ENDPOINT=https://hf-mirror.com # Linux/Mac\r
evrmem init\r
```\r
\r
## Core Workflow\r
\r
### 1. Semantic Search (Most Common)\r
\r
```python\r
from qmd.core.vector_db import vector_db\r
\r
results = vector_db.search("React form warning", top_k=5)\r
for r in results:\r
print(f"[{r['distance']:.3f}] {r['content'][:80]}")\r
```\r
\r
Or via CLI:\r
\r
```bash\r
evrmem search "React form warning"\r
evrmem search "deployment issue" --project myproject\r
```\r
\r
### 2. Add Memory\r
\r
```python\r
memory_id = vector_db.add_memory(\r
"React StrictMode causes Form.useForm warning",\r
metadata={"project": "mes-demo", "tags": "react,antd"}\r
)\r
```\r
\r
Or via CLI:\r
\r
```bash\r
evrmem add "Important finding about X" --project myproject --tags react,bug\r
```\r
\r
### 3. Structured Query\r
\r
```bash\r
# Query by project\r
evrmem query --project mes-demo\r
\r
# Query by tag\r
evrmem query --tag react\r
\r
# List all projects\r
evrmem query --list-projects\r
\r
# List all tags\r
evrmem query --list-tags\r
```\r
\r
### 4. RAG Retrieval\r
\r
```python\r
result = vector_db.rag("how to fix the form warning", top_k=3)\r
print(result["context"])\r
```\r
\r
Or via CLI:\r
\r
```bash\r
evrmem rag "how to fix the form warning"\r
evrmem rag "how to fix the form warning" --prompt\r
```\r
\r
### 5. Statistics\r
\r
```bash\r
evrmem stats\r
```\r
\r
## Configuration\r
\r
Create `~/.evrmem/config.yaml`:\r
\r
```yaml\r
vector_db:\r
persist_directory: "~/.evrmem/data/qmd_memory"\r
\r
embedding:\r
model_name: "shibing624/text2vec-base-chinese"\r
device: "cpu" # or "cuda"\r
cache_folder: "~/.evrmem/models"\r
\r
rag:\r
top_k: 5\r
min_similarity: 0.5\r
\r
logging:\r
level: "WARNING"\r
```\r
\r
## Environment Variables\r
\r
| Variable | Description | Default |\r
|----------|-------------|---------|\r
| `EVREM_DATA_DIR` | Data directory | `~/.evrmem/data/qmd_memory` |\r
| `EVREM_MODEL_NAME` | HuggingFace model name | `shibing624/text2vec-base-chinese` |\r
| `EVREM_LOCAL_MODEL` | Local model path (highest priority) | - |\r
| `EVREM_DEVICE` | Device for inference | `cpu` |\r
| `EVREM_TOP_K` | Default retrieval count | `5` |\r
| `EVREM_MIN_SIM` | Minimum similarity threshold | `0.5` |\r
| `EVREM_LOG_LEVEL` | Logging level | `WARNING` |\r
| `EVREM_LOCAL_FILES_ONLY` | Disable network access | `false` |\r
| `HF_ENDPOINT` | HuggingFace mirror endpoint | - |\r
\r
## Response Format\r
\r
When reporting search results, use this format:\r
\r
```\r
## evrmem Search Results\r
\r
**Query:** "user query"\r
**Results:** N memories found\r
\r
| Score | Project | Content |\r
|-------|---------|---------|\r
| 0.723 | mes-demo | React StrictMode causes Form.useForm warning... |\r
| 0.681 | docs | Deployment script timeout issue... |\r
\r
### Top Match\r
**Project:** mes-demo | **Tags:** react,antd\r
\r
> React StrictMode causes Form.useForm warning...\r
```\r
\r
When adding memory:\r
\r
```\r
## Memory Saved\r
\r
**ID:** abc123\r
**Project:** mes-demo\r
**Tags:** react\r
**Content:** React StrictMode causes Form.useForm warning...\r
\r
Use `evrmem search "React StrictMode"` to retrieve later.\r
```\r
\r
## Installation for Agent\r
\r
If `evrmem` is not installed:\r
\r
```python\r
import subprocess\r
subprocess.run(["pip", "install", "evrmem"], check=True)\r
# Initialize on first use (downloads ~400MB model)\r
subprocess.run(["evrmem", "init"], check=True)\r
```\r
\r
For China users, set mirror before init:\r
\r
```python\r
import os\r
os.environ["HF_ENDPOINT"] = "https://hf-mirror.com"\r
subprocess.run(["evrmem", "init"], check=True)\r
```\r
\r
## Edge Cases\r
\r
- **Model download fails**: Set `HF_ENDPOINT=https://hf-mirror.com` before `evrmem init`\r
- **NumPy errors**: Run `pip install "numpy\x3C2" --force-reinstall`\r
- **Offline/air-gapped**: Download model on connected machine, copy `~/.evrmem/models` to offline machine, set `EVREM_LOCAL_FILES_ONLY=true`\r
- **Empty search results**: Try broader terms or check if memories exist with `evrmem query --list-projects`\r
- **Similarity too low**: Adjust `--top-k` or lower `EVREM_MIN_SIM` threshold\r
- **Slow search**: Use CPU by default; set `EVREM_DEVICE=cuda` if GPU available\r
安全使用建议
This skill appears to do what it says (local Chinese vector memory), but before installing you should: 1) Inspect the 'evrmem' package source (or its PyPI project) before pip installing; 2) Install in an isolated virtualenv or container to avoid changing system packages (the instructions may force-reinstall numpy); 3) Prefer official HuggingFace endpoints; avoid using unknown HF mirrors unless you trust them—mirrors can serve malicious/poisoned models; 4) Be aware it will download ~400MB models and write data under ~/.evrmem (may contain sensitive text you store); 5) If you need higher assurance, ask the publisher for a homepage/source repo or request a signed release; without that the activity is coherent but carries supply-chain and environment-change risks.
功能分析
Type: OpenClaw Skill
Name: evrmem
Version: 0.1.0
The evrmem skill provides a local vector memory system for AI agents using ChromaDB and Chinese embedding models. It includes standard installation procedures via pip, configuration for local data storage in ~/.evrmem, and legitimate RAG (Retrieval-Augmented Generation) workflows. The use of the hf-mirror.com endpoint is a common practice for users in China to access Hugging Face models and does not indicate malicious intent.
能力评估
Purpose & Capability
Name/description (local Chinese semantic memory using text2vec + ChromaDB) matches the instructions: installing a Python package, initializing a local DB, configuring model and data directories, and performing searches/RAG.
Instruction Scope
Runtime instructions tell the agent to run pip install evrmem, run an evrmem init that downloads a ~400MB model, create ~/.evrmem config/data, and optionally set HF_ENDPOINT to a mirror. These steps are within the tool's purpose but permit arbitrary network downloads, writing to the user's home directory, and replacing system Python packages (e.g., forcing a numpy reinstall).
Install Mechanism
There is no formal install spec in the registry; SKILL.md instructs pip installing a third-party package and downloading a large model. Pip installs and model downloads are a moderate supply-chain risk. The suggested mirror domain (https://hf-mirror.com) is not a known official host and could be used to serve malicious or poisoned model binaries if used.
Credentials
The skill does not request secrets or credentials. SKILL.md documents environment variables for configuration (model name, device, data dir, HF_ENDPOINT, disable-network flag). These are reasonable for the function, but HF_ENDPOINT and EVREM_LOCAL_FILES_ONLY materially affect network behavior and trust boundaries.
Persistence & Privilege
always is false and autonomous invocation is allowed (normal). The skill will create and persist files under ~/.evrmem and download models to disk. This is expected for a local memory system but means the skill will store user data locally and consume significant disk/network resources.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install evrmem - 安装完成后,直接呼叫该 Skill 的名称或使用
/evrmem触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
evrmem 0.1.0 – Initial Release
- Introduces a local Chinese Vector Memory System for AI agents, supporting semantic search, memory storage, and RAG-based context augmentation.
- Provides both Python and CLI interfaces for adding, searching, and querying memories.
- Supports configuration via config file and environment variables for flexible setup.
- Includes troubleshooting tips and installation instructions for both global and China-specific environments.
- Defines clear response formats for search results and memory additions.
元数据
常见问题
evrmem 是什么?
Local Chinese semantic memory search and storage using text2vec embeddings and ChromaDB, supporting RAG-based context augmentation for AI agents. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 89 次。
如何安装 evrmem?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install evrmem」即可一键安装,无需额外配置。
evrmem 是免费的吗?
是的,evrmem 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
evrmem 支持哪些平台?
evrmem 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 evrmem?
由 ThatsD(@zhzgao)开发并维护,当前版本 v0.1.0。
推荐 Skills