Generate embeddings via npx ruvector@0.2.25 embed text (ONNX all-MiniLM-L6-v2, 384-dim), normalize, and store in HNSW index
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-vector-embed-8b59c2c830a3 ,按照其中的说明把「vector-embed」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
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 ruvector@0.2.25
If 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 ruvector@0.2.25 embed text "your text here"npx -y ruvector@0.2.25 embed text "your text here" -o vec.json--batch/--glob flags.npx -y ruvector@0.2.25 embed text "..." --adaptive --domain codemcp__plugin_ruflo-core_ruflo__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 ruvector@0.2.25 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 ruvector@0.2.25; only embed text <text> is supported. Read files yourself and call embed text per file.ruvector-onnx-embeddings-wasm or run npx -y ruvector@0.2.25 doctor to diagnose.