Token导航 LogoToken导航TokenDH.com
研究检索权限需确认github未标认证来源可访问许可证需确认审计未展示

vector-search矢量搜索

Agent Skill

用于搭建或维护带检索增强的 RAG 工作流,适合让 Agent 处理知识库问答、向量检索、来源引用和事实核查。它可以辅助整理数据接入、Embedding、向量库、召回参数和回答生成流程。使用时需要确认数据来源、更新频率、召回阈值和引用展示方式,避免把未命中的资料或过期内容包装成确定事实。

总安装

343

周安装

14

GitHub Stars

34,138

下载量

110
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:vector-search(矢量搜索)
来源仓库:https://github.com/ruvnet/ruflo
仓库路径:skills/vector-search
安装命令:
npx skills add https://github.com/ruvnet/ruflo --skill vector-search
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/ruvnet/ruflo --skill vector-search

简介

用于搭建或维护带检索增强的 RAG 工作流,适合处理知识库问答与向量检索。

  • 支持数据接入、Embedding、向量库管理与召回参数配置。
  • 可辅助生成回答并展示来源引用,需确认数据来源与更新频率。
  • 使用时注意避免将未命中内容包装成确定事实,确保引用准确。
  • 适用于需要事实核查和来源追溯的知识型任务场景。

SKILL.md

name
vector-search
description
Vector search via embeddings_* (large-scale HNSW) and ruvllm_hnsw_* (WASM router for ≤11 hot patterns), with RaBitQ 1-bit quantization for 32× memory reduction
argument-hint
<query> [--limit N] [--quantized]
allowed-tools
mcp__claude-flow__embeddings_generate mcp__claude-flow__embeddings_search mcp__claude-flow__embeddings_compare mcp__claude-flow__embeddings_init mcp__claude-flow__embeddings_status mcp__claude-flow__embeddings_hyperbolic mcp__claude-flow__embeddings_neural mcp__claude-flow__embeddings_rabitq_build mcp__claude-flow__embeddings_rabitq_search mcp__claude-flow__embeddings_rabitq_status mcp__claude-flow__ruvllm_hnsw_create mcp__claude-flow__ruvllm_hnsw_add mcp__claude-flow__ruvllm_hnsw_route mcp__claude-flow__memory_search_unified Bash

Vector Search

Two distinct vector-search paths live in this plugin. Pick the right one — they're not interchangeable.

PathTool familyBackingCapacityLatency
Large-scale corpusembeddings_*@claude-flow/memory HNSW (Rust/Native)up to millions of vectors150×–12,500× faster than brute-force, depending on N and parameters
Hot-path routerruvllm_hnsw_*WASM-backed router (v2.0.1)~11 patterns max (ruvllm-tools.ts:58)sub-ms; designed for high-priority routing, not corpus search

The "12,500×" headline applies to the large-scale embeddings_search path. The WASM router is not that path.

When to use

NeedPath
Search a corpus of N ≥ 500 documentsembeddings_search
Memory-constrained corpus (≥5,000 vectors)RaBitQ quantized — see "Quantized search" below
Compare two stringsembeddings_compare
Hierarchical / taxonomic dataembeddings_hyperbolic (Poincare ball)
Route a query to one of ≤11 hot patternsruvllm_hnsw_route
Cross-namespace searchmemory_search_unified

Standard search

  1. Check statusmcp__claude-flow__embeddings_status to verify the embedding engine.
  2. Initializemcp__claude-flow__embeddings_init if not active.
  3. Generatemcp__claude-flow__embeddings_generate for text input.
  4. Searchmcp__claude-flow__embeddings_search with the query.
  5. Comparemcp__claude-flow__embeddings_compare to measure similarity.
  6. Unified searchmcp__claude-flow__memory_search_unified for cross-namespace.

Quantized search (32× memory reduction)

For corpora ≥5,000 vectors and/or memory-constrained environments, use the RaBitQ 1-bit quantization workflow. Below 5,000 vectors the rebuild cost outweighs the savings — use the standard path instead.

StepToolPurpose
1embeddings_initEngine warm
2embeddings_rabitq_buildOne-time build of the 1-bit index after corpus is loaded
3embeddings_rabitq_searchHamming-prefilter returns top-N candidate IDs (cheap)
4embeddings_searchOptional exact rerank on the candidate set (full-precision)
5embeddings_rabitq_statusIndex health, memory footprint, build time
Note: embeddings_rabitq_search returns candidate IDs only — the rerank in step 4 is the user's responsibility (mirrors the docstring at embeddings-tools.ts:911). Without rerank, results are approximate; with rerank, you get full-precision quality at 32× lower memory.

Tuning

HNSW exposes three knobs that trade recall against latency. The "12,500×" headline assumes defaults; tune deliberately for your workload:

ProfileefSearchMWhen to use
recall-first20032Pattern recall during planning; quality matters more than ms
balanced (default)6416General-purpose semantic recall
latency-first168Hot-path routing where p99 latency matters

efSearch is passed via ruvllm_hnsw_create (ruvllm-tools.ts:64). M is registry-level today; raise as a follow-up if it should be MCP-tunable. efConstruction defaults to 200 in the lite index (hnsw-index.ts:537).

HNSW pattern router (WASM, ≤11 patterns)

For routing a small number of high-priority patterns:

  • mcp__claude-flow__ruvllm_hnsw_create — create the WASM index (cap ~11)
  • mcp__claude-flow__ruvllm_hnsw_add — add a pattern
  • mcp__claude-flow__ruvllm_hnsw_route — route an incoming query

This is not a corpus index. Treat it as a fast classifier over a curated set of patterns.

Hyperbolic embeddings

For hierarchical data (code trees, org charts), use mcp__claude-flow__embeddings_hyperbolic which maps to Poincare ball space. Distance is geodesic, not cosine.

CLI alternative

npx @claude-flow/cli@latest embeddings search --query "authentication patterns"
npx @claude-flow/cli@latest embeddings init
npx @claude-flow/cli@latest memory search --query "your query"

Performance

MethodSpeed
Brute-force scanBaseline
HNSW (n=500, balanced)~150× faster
HNSW (n=10,000, balanced)~12,500× faster
RaBitQ + rerank (n=10,000)~12,500× search speed at 32× lower memory
ruvllm_hnsw_route (n≤11)sub-ms per route, fixed cost

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.61%
按下载量换算42

Claude

27.88%
按下载量换算31

Cursor

17.67%
按下载量换算19

Gemini CLI

10.41%
按下载量换算11

安全审计

暂无安全审计结果可展示。

权限和风险

权限需确认

当前来源未能明确判断权限范围,默认进入异常复核队列。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills