本文へスキップ
Skillpedia
分析とスプレッドシート81k · #1526

embeddings

できること

このスキルは、意味を捉える数値のパターンである埋め込みを作り、似た内容を検索する手助けをします。単語が一致するだけでなく、関連するアイデアや文書を見つけたい人のためのものです。

使う場面

  • ✓新しい依頼と意味が似ている過去の作業を見つけたいとき。
  • ✓キーワードの検索では、同じことを説明する項目を見逃すとき。
  • ✓エージェントのために、検索できるパターンや文書の保存場所がほしいとき。

スキルのリンク

https://github.com/ruvnet/ruflo/blob/main/.agents/skills/embeddings/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/ruvnet/ruflo/blob/main/.agents/skills/embeddings/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“セキュリティのベストプラクティスと意味が似ている過去の文書を探し、上位5件を見せてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、テキストをベクトルに変え、ローカルのデータベースに保存し、新しい問い合わせを既存のベクトルと比べて、最も近い一致を返します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

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
よくある質問

埋め込みとは何ですか?

テキストの意味を表す数値の一覧です。

クラウドのサービスが必要ですか?

スキルはローカルのSQLiteのキャッシュを説明しているため、データは自分の環境に保存されます。

いつ使わないほうがよいですか?

正確なテキストの一致や単純な検索には使わないよう、スキルは述べています。

詳細

作者による元の説明

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.

repo: ruvnet/ruflo

人気

GitHubのスター
81k
ランキング
#1526
ライセンス
MIT
更新日
2026/11/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル