AGENT SKILL
embeddings
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-11-08
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- id
- embeddings
- author
- Zenith Legacy
- domain
- UNKNOWN
- schema
- {}
- name_vn
- embeddings
- version
- 1.0.0
- priority
- NORMAL
- aliases_vn
- []
- intent_pairs
- []
- related_skills
- []
02 资源文件 4
- 脚本__init__.py59 B
- 参考文档dossier.md537 B
- 脚本logic.py380 B
- 参考文档manifest.json811 B
03 SKILL.md 正文
embeddings (embeddings)
🌟 TỔNG QUAN
name: embeddings description: > 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.
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
🛠️ PHÁC ĐỒ VẬN HÀNH (OPERATIONAL PROTOCOL)
🔍 Phase 1: Investigation (Thẩm định)
- Xác minh tham số đầu vào dựa trên Schema.
- Kiểm tra bối cảnh hệ thống liên quan.
🚀 Phase 2: Action (Thực thi)
- Triệu hồi logic thực thi trong
logic.py. - Trả về kết quả và chắt lọc kinh nghiệm.
⚠️ SAI LẦM THƯỜNG GẶP (COMMON PITFALLS)
- Chưa ghi nhận.
TRUNG THÀNH - CHÍNH XÁC - TỐI THƯỢNG 💎🦾
04 同仓库更多 Skills
standard_plugin
Hướng dẫn kích hoạt và vận hành cho kỹ năng standard_plugin.
★ 0
_STANDARD
暂无简介
★ 0
test_dynamic_audit
Thao tác kiểm toán động
★ 0
security-audit
暂无简介
★ 0
security-and-hardening
暂无简介
★ 0
performance-optimization
暂无简介
★ 0