vector-hyperbolic
하는 일
이 스킬은 의존성 트리나 분류 체계처럼 계층이 있는 데이터를, 각 항목이 얼마나 깊은지 나타내는 공간에 배치합니다. 부모와 자식 단계가 분명한 구조를 모델링하는 사람을 위한 스킬입니다.
사용하는 경우
- ✓데이터에 조직도나 모듈 트리처럼 분명한 단계가 있을 때.
- ✓거리가 계층에서 항목이 놓인 위치를 반영하기를 원할 때.
- ✓계층이 잘 표현되었는지 확인하고 싶을 때.
스킬 링크
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-ruvector/skills/vector-hyperbolic/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
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
- Ensure ruvector@0.3.3 is available:
npm ls ruvector 2>/dev/null | grep '0.3.3' || npm install ruvector@0.3.3 - 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 convertgives 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. - 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 - 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 MCPembeddings_hyperbolic distancecomputes it (curvature -1) and returnssuccess: falsefor a point on or outside the ball rather than a null distance. - 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 poincareflag;attention hyperbolicis 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.
댓글
- …
이 저장소의 다른 스킬
agent-adaptive-coordinator
81k작업량이 바뀔 때 에이전트 무리를 나누고 재배치해, 작업에 맞는 배치를 고르도록 에이전트를 돕습니다.
agent-agent
81k큰 목표를 순서가 있는 행동 계획으로 나누고, 조건이 바뀌면 다시 계획하도록 에이전트를 가르칩니다.
agent-agentic-payments
81kAI 쇼핑을 위한 지출 위임장을 관리합니다. 지출 상한, 시간 창, 판매자 규칙, 서명된 승인을 포함합니다.
agent-analyze-code-quality
81k에이전트가 파일을 바꾸지 않고, 코드 품질 문제와 코드 냄새, 기술 부채, 리팩터링 아이디어를 찾아 검토하도록 돕습니다.
비슷한 스킬
gitcrawl
394k에이전트가 저장된 GitHub 이슈와 풀 리퀘스트 보관본을 검색하고, 중복 항목을 묶고, GitHub에서 현재 상태를 확인하도록 돕습니다.
slacrawl
394k에이전트가 로컬 Slack 보관본에서 메시지를 검색하고 개수를 세며, 보관본이 얼마나 최신인지 확인하고 필요할 때 새로 고치도록 돕습니다.
goplaces
394k에이전트가 Google Places로 장소를 검색하고, 세부 정보와 리뷰를 가져오고, 장소 이름을 확인하며, 스크립트용 JSON을 출력하도록 돕습니다.