← 返回 Skills 市场
71
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install bm25-rerank-memory
功能描述
本地 BM25 + Embedding + Rerank 混合记忆检索。检索 /root/workspace/Remember 下的 Markdown 记忆文件,支持关键词+语义+重排。每次记忆搜索用它替代 mem0。
使用说明 (SKILL.md)
BM25 Rerank Memory Search
调用本地检索脚本 /opt/memory/bm25_rerank_search.py,返回精确的上下文片段。
依赖
- BM25:
rank_bm25 - 向量+重排: SiliconFlow API (BAAI/bge-m3 + BAAI/bge-reranker-v2-m3)
- 安装:
pip install rank-bm25 --break-system-packages
使用方式
搜索记忆
python3 /opt/memory/bm25_rerank_search.py search \x3C查询词>
重建索引(记忆文件变更后需执行)
python3 /opt/memory/bm25_rerank_search.py reindex
检索逻辑
- BM25 关键词匹配 → 候选集 A
- BGE-M3 向量相似度 → 候选集 B
- A ∪ B 合并
- BGE-Reranker-v2-m3 重排 → 最终结果
输出格式
每条结果包含: [score] path:chunk_id + 内容片段 (最多显示前200字符)
安全使用建议
This skill expects and will execute a local script (/opt/memory/bm25_rerank_search.py) and read files under /root/workspace/Remember — verify those files/scripts are trustworthy before using. Confirm how the SiliconFlow/BAAI embedding and reranker APIs are authenticated (there are no env vars declared); if API keys are needed, ensure they are supplied securely and not exposed. Do not run the suggested `pip install ... --break-system-packages`; instead install dependencies in a virtualenv or container. If you cannot validate the /opt script or the origin of any network calls, run this in an isolated environment or avoid installing/using it.
功能分析
Type: OpenClaw Skill
Name: bm25-rerank-memory
Version: 1.0.0
The skill bundle is classified as suspicious because its core logic resides in an external script (/opt/memory/bm25_rerank_search.py) that is not included in the package, making the actual execution behavior unverifiable. Furthermore, SKILL.md contains prompt-injection-style instructions directing the agent to bypass standard memory systems (mem0) in favor of this unverified external script, which could be used to redirect or manipulate the agent's context and data retrieval.
能力评估
Purpose & Capability
The skill claims to perform local BM25+embedding+rerank retrieval over /root/workspace/Remember, which matches the provided instructions to call a local script. However, the SKILL.md also relies on SiliconFlow / BAAI models for embeddings/reranking (networked services) but declares no credentials or network endpoints; that is an unexplained capability mismatch.
Instruction Scope
Runtime instructions tell the agent to execute /opt/memory/bm25_rerank_search.py and read/search markdown files under /root/workspace/Remember. Because the skill is instruction-only and provides no code, it assumes those files and scripts exist and will be executed/read — this gives the skill the ability to surface arbitrary local file contents and to run arbitrary code in /opt if present.
Install Mechanism
There is no formal install spec, but the SKILL.md recommends running `pip install rank-bm25 --break-system-packages`. That flag is invasive (can circumvent OS package manager protections) and is risky to run system-wide; even though rank-bm25 is reasonable for BM25, recommending --break-system-packages is disproportionate and potentially harmful.
Credentials
The instructions depend on external embedding/reranker services (SiliconFlow / BAAI models) but the skill declares no required environment variables or credentials. Either credentials are expected to be configured out-of-band (not declared) or the skill will fail/attempt unknown network access — both are problematic. It also references system paths (/opt and /root) without declaring config path requirements.
Persistence & Privilege
The skill does not request always:true or other elevated platform privileges. It is user-invocable and can be invoked autonomously per platform default, which is normal. The main risk is execution of a local script and reading /root files (described above), not elevated registration.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install bm25-rerank-memory - 安装完成后,直接呼叫该 Skill 的名称或使用
/bm25-rerank-memory触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of bm25-rerank-memory skill.
- Provides local memory retrieval using BM25, Embedding (BGE-M3), and reranking.
- Searches Markdown memory files under /root/workspace/Remember.
- Enables hybrid retrieval: keyword (BM25), semantic (BGE-M3), and rerank (BGE-Reranker-v2-m3).
- Replaces mem0 for each memory search.
- Includes command-line scripts for searching and reindexing memory files.
元数据
常见问题
Bm25 Rerank Memory 是什么?
本地 BM25 + Embedding + Rerank 混合记忆检索。检索 /root/workspace/Remember 下的 Markdown 记忆文件,支持关键词+语义+重排。每次记忆搜索用它替代 mem0。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 71 次。
如何安装 Bm25 Rerank Memory?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install bm25-rerank-memory」即可一键安装,无需额外配置。
Bm25 Rerank Memory 是免费的吗?
是的,Bm25 Rerank Memory 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Bm25 Rerank Memory 支持哪些平台?
Bm25 Rerank Memory 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Bm25 Rerank Memory?
由 CkQiao(@ckqiao)开发并维护,当前版本 v1.0.0。
推荐 Skills