Agent skill
embeddings
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.
Install this agent skill to your Project
npx add-skill https://github.com/ruvnet/ruflo/tree/main/.agents/skills/embeddings
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
- Use HNSW for large pattern databases
- Enable quantization for memory efficiency
- Use hyperbolic for hierarchical relationships
- Normalize embeddings for consistency
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
add-model-descriptions
Add descriptions for new models from the HuggingFace router to chat-ui configuration. Use when new models are released on the router and need descriptions added to prod.yaml and dev.yaml. Triggers on requests like "add new model descriptions", "update models from router", "sync models", or when explicitly invoking /add-model-descriptions.
agent-swarm-pr
Agent skill for swarm-pr - invoke with $agent-swarm-pr
agent-neural-network
Agent skill for neural-network - invoke with $agent-neural-network
agent-performance-analyzer
Agent skill for performance-analyzer - invoke with $agent-performance-analyzer
agent-researcher
Agent skill for researcher - invoke with $agent-researcher
V3 Memory Unification
Unify 6+ memory systems into AgentDB with HNSW indexing for 150x-12,500x search improvements. Implements ADR-006 (Unified Memory Service) and ADR-009 (Hybrid Memory Backend).
Didn't find tool you were looking for?