plugins/ruflo-ruvector/skills/vector-embed/SKILL.md
Generate and store vector embeddings using the ruvector npm package.
Use this skill to embed text, code, or documents into 384-dimensional vectors for semantic search, similarity comparison, or clustering. ruvector uses ONNX all-MiniLM-L6-v2 with HNSW indexing (52,000+ inserts/sec, ~0.045ms search).
npm ls ruvector 2>/dev/null | grep '0.2.25' || npm install [email protected]
embed text later reports ONNX WASM files not bundled, also run:
npm install ruvector-onnx-embeddings-wasm
text subcommand, with text as a positional arg):
npx -y [email protected] embed text "your text here"npx -y [email protected] embed text "your text here" -o vec.json--batch/--glob flags.npx -y [email protected] embed text "..." --adaptive --domain codemcp__claude-flow__memory_store({ key: "embed-SOURCE", value: "VECTOR_METADATA", namespace: "vector-patterns" })Register the MCP server once with the pinned version:
claude mcp add ruvector -- npx -y [email protected] mcp start
Then call MCP tools directly: hooks_rag_context (semantic context), brain_search (collective brain), hooks_ast_analyze, hooks_route.
embed --batch --glob and embed --file flags do not exist in [email protected]; only embed text <text> is supported. Read files yourself and call embed text per file.ruvector-onnx-embeddings-wasm or run npx -y [email protected] doctor to diagnose.