Joseph Krug

LanceDB Hybrid Search Memory Plugin

AI Agentv1.2.1
By Joseph KrugUpdated 2026-05-114 versions · latest released 2026-03-09memory-lancedb-hybrid@clawhub_joeykrug/memory-lancedb-hybrid
Context ManagementMemory#Long Term Memory

According to AlphaMoat, as of 2026-09, LanceDB Hybrid Search Memory Plugin has 3,937 downloads and 2 stars — ranked #2,624 of 5,078 AI skills overall, and #514 of 969 in AI Agent.

Installs
128
Downloads
3.9K
Stars
2
Overall Rank
#2,624
Top 52% overall · Top 54% in AI Agent
PlatformInstallsDownloadsStarsComments
ClawHub ↗1283.8K2-
SkillHub ↗1243.9K2—

Platforms count differently and update at different times.

What this skill does

The plugin extends OpenClaw’s LanceDB memory with semantic vector search and BM25 full-text search, plus configurable reranking. Memory storage, recall, and forgetting use hybrid retrieval when enabled. Prompts or remembered text may be sent to the configured embedding provider; for sensitive work, use a local embedding endpoint or disable auto-recall and auto-capture. Review and remove persistent memories that are no longer needed.

Profile published 2026-10-29

What you can do with it

  • Combine semantic and keyword retrieval for long-term memory
  • Store, recall, or forget information through memory tools
  • Configure ranking behavior for search results

When to use it

  • OpenClaw already uses LanceDB memory and needs hybrid search
  • The embedding provider’s data handling is acceptable
  • Stored memories and automatic memory behavior can be reviewed

Example prompts

Generated from the skill’s documentation as examples; not results of actual runs.

Explain which prompts or memories would be sent to the embedding provider after enabling this plugin. Do not enable auto-recall or auto-capture until I approve the data handling.

Monthly Trend

Downloads3.9K
2.3K3.2K4.1K2026-03 · Downloads 2.5K2026-05 · Downloads 3.1K2026-06 · Downloads 3.3K2026-07 · Downloads 3.6K2026-08 · Downloads 3.7K2026-09 · Downloads 3.9K26-0326-09
Stars2
1232026-03 · Stars 22026-05 · Stars 22026-06 · Stars 22026-07 · Stars 22026-08 · Stars 22026-09 · Stars 226-0326-09

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change.

MonthDownloadsMoMStars
2026-093.9K—2
2026-083.7K+3.1%2
2026-073.6K+10.2%2
2026-063.3K+4.6%2
2026-053.1K—2
2026-032.5K—2

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 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)
Show all (121 lines)
- **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)

Popular in AI Agent

Data month: 2026-09 · Downloads, stars and installs are aggregated monthly from public skill registries (ClawHub, SkillHub). See methodology.