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
累計下載
3937
星標
2
全站排名
#2,624
全站前 52% · 「AI 智慧體」前 54%
平台累計安裝累計下載星標評論
ClawHub ↗12838202-
SkillHub ↗12439372—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

該外掛擴充套件 OpenClaw 的 LanceDB 記憶能力,將語義向量搜尋與 BM25 全文檢索結合,並支援不同重排方式;記憶儲存、召回和遺忘工具會使用混合搜尋。提示或記憶文字可能傳送給配置的嵌入服務,敏感任務應使用本地嵌入端點,或關閉自動召回與自動捕獲。定期審閱並刪除不再需要的持久記憶。

資料釋出於 2026-10-29

可以用來做什麼

  • 為長期記憶提供語義與關鍵詞混合檢索
  • 透過記憶工具儲存、召回或刪除資訊
  • 配置搜尋結果的重排方式

什麼時候用

  • OpenClaw 已使用 LanceDB 記憶且需要混合搜尋時
  • 已確認嵌入服務的資料處理方式時
  • 可以審閱長期儲存內容並管理自動記憶行為時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

請說明啟用此外掛後哪些提示或記憶會發往嵌入服務;在我確認資料處理方式前,不要啟用自動召回或自動捕獲。

月度資料趨勢

累計下載3937
2347320140552026-03 · 累計下載 24652026-05 · 累計下載 31272026-06 · 累計下載 32712026-07 · 累計下載 36062026-08 · 累計下載 37192026-09 · 累計下載 393726-0326-09
星標2
1232026-03 · 星標 22026-05 · 星標 22026-06 · 星標 22026-07 · 星標 22026-08 · 星標 22026-09 · 星標 226-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-093937—2
2026-083719+3.1%2
2026-073606+10.2%2
2026-063271+4.6%2
2026-053127—2
2026-032465—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),按月更新。口徑說明見資料方法。