Joseph Krug

LanceDB Hybrid Search Memory Plugin

AI 智能体v1.2.1
作者:Joseph Krug更新于 2026-05-11共 4 个版本 · 最新版本发布于 2026-03-09memory-lancedb-hybrid@clawhub_joeykrug/memory-lancedb-hybrid
上下文管理记忆增强#Long Term Memory

据 AlphaMoat 统计,截至 2026-09,LanceDB Hybrid Search Memory Plugin 累计下载 3,937 次、获 2 个星标,在全部 5,078 个 AI 技能中排名第 2,624 位,在「AI 智能体」分类(969 个)中排名第 514 位。

累计安装
128
累计下载
3,937
星标
2
全站排名
#2,624
全站前 52% · 「AI 智能体」前 54%
平台累计安装累计下载星标评论
ClawHub ↗1283,8202-
SkillHub ↗1243,9372—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

该插件扩展 OpenClaw 的 LanceDB 记忆能力,将语义向量搜索与 BM25 全文检索结合,并支持不同重排方式;记忆存储、召回和遗忘工具会使用混合搜索。提示或记忆文本可能发送给配置的嵌入服务,敏感任务应使用本地嵌入端点,或关闭自动召回与自动捕获。定期审阅并删除不再需要的持久记忆。

资料发布于 2026-10-29

可以用来做什么

  • 为长期记忆提供语义与关键词混合检索
  • 通过记忆工具存储、召回或删除信息
  • 配置搜索结果的重排方式

什么时候用

  • OpenClaw 已使用 LanceDB 记忆且需要混合搜索时
  • 已确认嵌入服务的数据处理方式时
  • 可以审阅长期存储内容并管理自动记忆行为时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

请说明启用此插件后哪些提示或记忆会发往嵌入服务;在我确认数据处理方式前,不要启用自动召回或自动捕获。

月度数据趋势

累计下载3,937
2,3473,2014,0552026-03 · 累计下载 2,4652026-05 · 累计下载 3,1272026-06 · 累计下载 3,2712026-07 · 累计下载 3,6062026-08 · 累计下载 3,7192026-09 · 累计下载 3,93726-0326-09
星标2
1232026-03 · 星标 22026-05 · 星标 22026-06 · 星标 22026-07 · 星标 22026-08 · 星标 22026-09 · 星标 226-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-093,937—2
2026-083,719+3.1%2
2026-073,606+10.2%2
2026-063,271+4.6%2
2026-053,127—2
2026-032,465—2

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

3.6 KB · ClawHub v1.2.1
---
name: memory-lancedb-hybrid
description: LanceDB long-term memory plugin with BM25 + vector hybrid search (RRF or linear reranking).
---

# LanceDB Hybrid Search (Memory Plugin)

This skill packages a **drop-in OpenClaw memory plugin** that adds **hybrid search** to LanceDB memory:

- **Vector search** (semantic)
展开全部(共 121 行)
- **BM25 full-text search** (exact terms)
- Configurable reranking:
  - `rrf` (Reciprocal Rank Fusion, recommended)
  - `linear` (weighted combination)

It is based on (and credits) OpenClaw PR **openclaw/openclaw#7636**.

## What you get

A local plugin (extension) located at:

- `plugin/` → **overrides the built-in plugin id** `memory-lancedb` (adds hybrid search)

Once enabled, it provides the same tools as the bundled LanceDB memory plugin:

- `memory_store`
- `memory_recall`
- `memory_forget`

…but `memory_recall`/auto-recall/forget now use hybrid search when enabled.

## Install / Enable

1) Ensure the skill folder exists (ClawHub install puts it under your workspace):

- `~/.openclaw/workspace/skills/memory-lancedb-hybrid/plugin`

2) Install the plugin dependencies (once):

```bash
cd ~/.openclaw/workspace/skills/memory-lancedb-hybrid/plugin
npm install --omit=dev
```

3) Add the plugin to OpenClaw’s plugin load paths.

This plugin keeps the id `memory-lancedb`, so it will **override** the bundled `memory-lancedb` extension when discovered via `plugins.load.paths` (higher precedence than bundled).

Edit `~/.openclaw/openclaw.json`:

```json5
{
  plugins: {
    load: {
      // Point at the plugin directory inside this skill
      paths: ["~/.openclaw/workspace/skills/memory-lancedb-hybrid/plugin"]
    },

    // Ensure the memory slot points at LanceDB memory
    slots: {
      memory: "memory-lancedb"
    },

    // Configure LanceDB memory (this override adds the `hybrid` config block)
    entries: {
      "memory-lancedb": {
        enabled: true,
        config: {
          embedding: {
            apiKey: "${OPENAI_API_KEY}",
            model: "text-embedding-3-small"
          },

          // Optional
          dbPath: "~/.openclaw/memory/lancedb",

          // Optional
          autoCapture: true,
          autoRecall: true,

          // Hybrid search options
          hybrid: {
            enabled: true,
            reranker: "rrf"

            // If using reranker: "linear", you can also set:
            // vectorWeight: 0.7,
            // textWeight: 0.3,
          }
        }
      }
    }
  }
}
```

4) Restart the Gateway.

Hybrid search needs an FTS index on the `text` column; the plugin will attempt to create it automatically. If FTS setup fails for any reason, the plugin logs a debug message and falls back to vector-only search.

## Config reference

All config lives under `plugins.entries.memory-lancedb.config`.

- `hybrid.enabled` (boolean, default `true`)
- `hybrid.reranker` (`rrf` | `linear`, default `rrf`)
- `hybrid.vectorWeight` (number 0–1, default `0.7`, only used for `linear`)
- `hybrid.textWeight` (number 0–1, default `0.3`, only used for `linear`)

## Notes / troubleshooting

- This plugin does not modify OpenClaw’s install on disk; it **overrides** the bundled `memory-lancedb` at runtime (remove `plugins.load.paths` to revert).
- If you already have LanceDB memory data on disk, you can keep using the same `dbPath`.
- If you see no hybrid effect, make sure `hybrid.enabled` is true and that the FTS index was created (check Gateway logs).

## Files

- `plugin/index.ts` – plugin implementation (hybrid search)
- `plugin/config.ts` – config parsing + UI hints
- `plugin/openclaw.plugin.json` – manifest + JSON Schema (used for strict config validation)

「AI 智能体」分类下的热门技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。