Skip to content
Skillpedia
Analysis & spreadsheets81k · #1526

embeddings

What it does

This skill helps an agent turn text into embeddings, which are number patterns that capture meaning, and then search for similar content. It is for people who want to find related ideas or documents, not just matching words.

When to use it

  • ✓When you want to find past work that is similar in meaning to a new request.
  • ✓When exact keyword search misses items that describe the same thing.
  • ✓When you need a searchable store of patterns or documents for agents.

Skill link

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

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/ruvnet/ruflo/blob/main/.agents/skills/embeddings/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Find the past documents that are similar in meaning to security best practices, and show me the top five.”

5 new skills a week. 1 minute to read.

How it works

The agent converts text into vectors, saves them in a local database, and compares a new query against them to return the closest matches.

Technical content (original SKILL.md)

Original text by the author, straight from 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
FAQ

What is an embedding?

An embedding is a list of numbers that represents the meaning of a piece of text.

Does it need a cloud service?

The skill describes a local SQLite cache, so the data is stored in your own setup.

When should I not use it?

The skill says to skip it for exact text matching or simple lookups.

Details

Original description by the author

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

Popularity

GitHub stars
81k
Ranking position
#1526
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills