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

vector-hyperbolic

하는 일

이 스킬은 의존성 트리나 분류 체계처럼 계층이 있는 데이터를, 각 항목이 얼마나 깊은지 나타내는 공간에 배치합니다. 부모와 자식 단계가 분명한 구조를 모델링하는 사람을 위한 스킬입니다.

사용하는 경우

  • ✓데이터에 조직도나 모듈 트리처럼 분명한 단계가 있을 때.
  • ✓거리가 계층에서 항목이 놓인 위치를 반영하기를 원할 때.
  • ✓계층이 잘 표현되었는지 확인하고 싶을 때.

스킬 링크

https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-ruvector/skills/vector-hyperbolic/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-hyperbolic/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분.

작동 방식

이 스킬은 각 항목이 중심에서 떨어진 거리를 트리에서의 깊이로 정하고, 방향은 텍스트 임베딩에서 가져옵니다. 그다음 부모와 자식 항목이 다른 가지의 항목보다 더 가까운지 확인합니다.

기술 내용 (원본 SKILL.md)

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

Vector Hyperbolic

Embed hierarchical data in the Poincare ball model using ruvector.

When to use

Use this skill when your data has inherent hierarchy — dependency trees, module structures, taxonomies, org charts, ontologies. Hyperbolic space captures hierarchical distances with far fewer dimensions than Euclidean embeddings.

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
    
  2. Know what a text embedding can and cannot give you. ONNX sentence embeddings (all-MiniLM-L6-v2) are unit-norm. Rescaling or exp-mapping a unit vector puts every point at the same radius (the MCP embeddings_hyperbolic convert gives tanh(0.5) = 0.4621 for all of them), so the radius carries no depth and parent/child distances come out nearly the same as cross-branch distances. Projecting a text embedding does not create hierarchy.
  3. Put the hierarchy in yourself. Choose each node's radius from its depth in the tree (root near 0, leaves near 1, for example r = tanh(depth * k)), and take its direction from the text embedding, or use embeddings trained on the tree's edges. Measure on your own tree: parent-child distance should be clearly smaller than cross-branch distance.
    npx -y ruvector@0.3.3 embed text "hierarchical concept" -o concept.vec.json   # direction only
    
  4. Geodesic distance for points strictly inside the unit ball: d(u, v) = arcosh(1 + 2 * ||u-v||^2 / ((1-||u||^2)(1-||v||^2))). The MCP embeddings_hyperbolic distance computes it (curvature -1) and returns success: false for a point on or outside the ball rather than a null distance.
  5. Store results: mcp__plugin_ruflo-core_ruflo__memory_store({ key: "hyperbolic-CONCEPT", value: "COORDINATES_AND_NEIGHBORS", namespace: "hyperbolic-embeddings" })

Caveats

  • ruvector@0.3.3 has no --model poincare flag; attention hyperbolic is the Poincare-ball attention op, not a text-embedding projector.
  • "Norm encodes depth" only holds when you set the radius from depth yourself (step 3). It does not come from the embedding.
  • If you need a hyperbolic search index, store the placed coordinates in AgentDB and compute geodesic distance in your own retrieval code.

Poincare ball properties (for points you placed by depth)

Property Meaning
Norm close to 0 Root-level concept (only if you assigned radius by depth)
Norm close to 1 Leaf-level concept (same condition)
Small geodesic distance Close in the hierarchy you encoded
Large geodesic distance Distant subtrees in the hierarchy you encoded

Use cases

  • Dependency analysis: embed module imports to find tightly coupled subtrees
  • Code architecture: map class hierarchies to discover structural patterns
  • Knowledge organization: embed concepts to reveal taxonomic relationships
  • Codebase navigation: find most specific/general modules relative to a query
자주 묻는 질문

일반 텍스트 임베딩만으로 계층을 보여 줄 수 있나요?

아니요. 원본에 따르면 일반 텍스트 임베딩은 항목마다 길이가 같으므로, 깊이는 사용자가 따로 넣어야 합니다.

배치가 잘 되었는지 어떻게 아나요?

상위에서 하위로 가는 거리가 다른 가지와의 거리보다 분명히 짧아야 하며, 이 스킬이 그것을 측정합니다.

어떤 도구를 쓰나요?

텍스트 방향에는 고정된 버전의 ruvector 도구를, 반지름에는 사용자가 준 깊이를 씁니다.

상세 정보

작성자의 원본 설명

Place hierarchical data in the Poincare ball using depth for the radius and npx ruvector@0.3.3 embed text for direction (a unit-norm text embedding alone has no depth)

repo: ruvnet/ruflo

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬