← 返回列表
全部 Skill›数据与AI Data & AI›embeddings

embeddings

作者 @ruvnet · 语言 en
Vector embeddings with HNSW indexing, sql.js persistence, and hyperbolic support. 75x faster with agentic-flow integration. Use when: semantic search, pattern matching, similarity queries, knowledge retrieval. Skip when: exact text matching, simple lookups, no semantic understanding needed.
数据与AI Data & AILLM 与 AI需海外环境执行命令待翻译
存储库
最近源活动
—
检测 SKILL.md 语言
en
星标 ★
82,106
分支 Fork
0
安装选项
提示
指令
使用 AI 助手安装
将下面的提示复制到你正在使用的 AI 助手中。
下载完整 Skill 目录(含全部配套文件)。 下载压缩包 ↓
SKILL.md 原文预览

Embeddings Skill

Purpose

Vector embeddings for semantic search and pattern matching with HNSW indexing.

Features

| Feature | Description |

|---------|-------------|

| sql.js | Cross-platform SQLite persistent cache (WASM) |

| HNSW | 150x-12,500x faster search |

| Hyperbolic | Poincare ball model for hierarchical data |

| Normalization | L2, L1, min-max, z-score |

| Chunking | Configurable overlap and size |

| 75x faster | With agentic-flow ONNX integration |

Commands

Initialize Embeddings

npx claude-flow embeddings init --backend sqlite

Embed Text

npx claude-flow embeddings embed --text "authentication patterns"

Batch Embed

npx claude-flow embeddings batch --file documents.json

Semantic Search

npx claude-flow embeddings search --query "security best practices" --top-k 5

Memory Integration

# Store with embeddings
npx claude-flow memory store --key "pattern-1" --value "description" --embed

# Search with embeddings
npx claude-flow memory search --query "related patterns" --semantic

Quantization

| Type | Memory Reduction | Speed |

|------|-----------------|-------|

| Int8 | 3.92x | Fast |

| Int4 | 7.84x | Faster |

| Binary | 32x | Fastest |

Best Practices

  1. Use HNSW for large pattern databases
  2. Enable quantization for memory efficiency
  3. Use hyperbolic for hierarchical relationships
  4. Normalize embeddings for consistency
评论
Rruvnet
ruvnet
ruvnet/ruflo
查看 GitHub 仓库 查看作者的其他 Skill
来源信息
作者@ruvnet
所属大类数据与AI Data & AI / LLM 与 AI
国内可用性需海外环境
最近源活动—
风险提示执行命令
提示:风险标签为程序静态扫描结果,仅作提示,不代表安全认证。安装前请阅读 SKILL.md 及其引用的脚本、权限,自行判断是否可信。