본문으로 건너뛰기
Skillpedia
분석 및 스프레드시트81k · #1686

vector-embed

하는 일

이 스킬은 텍스트의 숫자 표현인 임베딩을 만들고, 나중에 검색할 수 있도록 저장할 수 있습니다. 내 메모나 문서를 의미로 검색하거나 비교하는 시스템을 만들려는 사람을 위한 스킬입니다.

사용하는 경우

  • ✓문서를 의미로 검색할 수 있게 만들고 싶을 때.
  • ✓두 텍스트가 얼마나 비슷한지 비교하고 싶을 때.
  • ✓군집화나 검색의 입력으로 임베딩이 필요할 때.

스킬 링크

https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-ruvector/skills/vector-embed/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-ruvector/skills/vector-embed/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이 회의 메모를 벡터로 바꿔서 저장해 주세요. 나중에 비슷한 메모를 찾을 수 있게요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

이 스킬은 고정된 버전의 ruvector 도구를 설치하고, 작은 로컬 언어 모델로 각 텍스트의 384개 숫자 벡터를 만듭니다. 결과는 파일에 쓰거나 메모리에 저장할 수 있습니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Vector Embed

Generate and store vector embeddings using the ruvector npm package.

When to use

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).

Steps

  1. Ensure ruvector@0.3.3 is available:
    npm ls ruvector 2>/dev/null | grep '0.3.3' || npm install ruvector@0.3.3
    
    ruvector 0.3.3 bundles the ONNX runtime; no add-on is needed. If embed text reports ONNX WASM files not bundled, an older ruvector (0.2.x) is being resolved — rerun with the pinned npx -y ruvector@0.3.3.
  2. Embed the input (use the text subcommand, with text as a positional arg):
    • Single string: npx -y ruvector@0.3.3 embed text "your text here"
    • With output file: npx -y ruvector@0.3.3 embed text "your text here" -o vec.json
    • For a file: read its content via the Read tool, then pass it as the positional argument.
    • For batch: loop over files in shell — ruvector@0.3.3 has no built-in --batch/--glob flags.
  3. Adaptive (LoRA) variant: npx -y ruvector@0.3.3 embed text "..." --adaptive --domain code
  4. Confirm — report vector dimension (384), norm, and any output path written.
  5. Store metadata in AgentDB if needed: mcp__plugin_ruflo-core_ruflo__memory_store({ key: "embed-SOURCE", value: "VECTOR_METADATA", namespace: "vector-patterns" })

MCP alternative

Register the MCP server once with the pinned version:

claude mcp add ruvector -- npx -y ruvector@0.3.3 mcp start

Then call MCP tools directly: hooks_rag_context (semantic context), brain_search (collective brain), hooks_ast_analyze, hooks_route.

Caveats

  • The embed --batch --glob flags do not exist in ruvector@0.3.3. embed text accepts one text, --stdin, or --input-file <path> (keeps sensitive text off argv); call it per file.
  • If embedding fails, run npx -y ruvector@0.3.3 doctor to diagnose.
자주 묻는 질문

각 벡터는 얼마나 긴가요?

원본은 텍스트마다 384개의 숫자라고 설명합니다.

텍스트가 내 컴퓨터 밖으로 나가나요?

원본은 이 모델이 도구를 통해 실행되는 ONNX 모델이라고 설명하므로, 임베딩 자체에는 호스팅된 API가 필요하지 않습니다.

파일을 많이 임베딩하려면 어떻게 하나요?

도구에는 일괄 처리 옵션이 없으므로 셸에서 파일을 반복하라고 이 스킬은 말합니다.

상세 정보

작성자의 원본 설명

Generate embeddings via npx ruvector@0.3.3 embed text (ONNX all-MiniLM-L6-v2, 384-dim), normalize, and store in HNSW index

repo: ruvnet/ruflo

인기도

GitHub 스타
81k
순위
#1686
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬