vector-hyperbolic
यह क्या करती है
यह स्किल श्रेणीबद्ध डेटा, जैसे dependency trees या taxonomies, को ऐसे स्थान में व्यवस्थित करती है जो दिखाए कि हर आइटम कितनी गहराई पर है। यह उन लोगों के लिए है जो साफ़ parent और child स्तरों वाली संरचनाएँ मॉडल करते हैं।
कब इस्तेमाल करें
- ✓जब आपके डेटा के स्पष्ट स्तर हों, जैसे org chart या मॉड्यूल tree।
- ✓जब आप चाहते हैं कि दूरियाँ दिखाएँ कि आइटम्स श्रेणी में कहाँ बैठे हैं।
- ✓जब आप जाँचना चाहते हैं कि श्रेणी संरचना ठीक से दर्शाई गई है या नहीं।
Skill का लिंक
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-ruvector/skills/vector-hyperbolic/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे product catalogue की श्रेणियाँ एक श्रेणीबद्ध स्थान में रखिए, ताकि parent और child श्रेणियाँ पास-पास रहें।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
स्किल हर आइटम की केंद्र से दूरी उसकी tree में गहराई से तय करती है, और उसकी दिशा टेक्स्ट embedding से लेती है। फिर वह जाँचती है कि parent और child आइटम्स अलग शाखाओं के आइटम्स से ज़्यादा पास हैं।
तकनीकी सामग्री (मूल 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
अक्सर पूछे जाने वाले सवाल
क्या अकेला टेक्स्ट embedding श्रेणी दिखाता है?
नहीं। स्रोत कहता है कि सामान्य टेक्स्ट embedding हर आइटम के लिए एक समान लंबाई का होता है, इसलिए गहराई आपको खुद जोड़नी होगी।
मुझे कैसे पता चलेगा कि लेआउट ठीक बना?
parent से child की दूरियाँ अलग शाखाओं की दूरियों से साफ़ तौर पर छोटी होनी चाहिए, जिन्हें स्किल मापती है।
यह कौन-सा टूल इस्तेमाल करती है?
टेक्स्ट दिशा के लिए pinned 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
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
agent-adaptive-coordinator
81kआपके एजेंट को काम बदलने पर AI एजेंटों के समूह को बाँटने और फिर से संतुलित करने में मदद करती है, और काम के हिसाब से लेआउट चुनती है।
agent-agent
81kआपके एजेंट को बड़े लक्ष्य को क्रमबद्ध कार्यों की योजना में बदलना सिखाती है, और स्थिति बदलने पर योजना फिर से बनाना भी।
agent-agentic-payments
81kAI खरीदारी के लिए खर्च के आदेश मैनेज करने में मदद करती है, जिसमें खर्च की सीमा, समय अवधि, व्यापारी नियम और signed मंज़ूरियाँ शामिल हैं।
agent-analyze-code-quality
81kआपके एजेंट को कोड की गुणवत्ता जाँचने में मदद करती है, बिना फ़ाइलें बदले code smells, technical debt और refactoring के सुझाव खोजकर।
मिलती-जुलती skills
gitcrawl
394kयह आपके एजेंट को GitHub issues और pull requests के सेव आर्काइव में खोजने, मिलते-जुलते मामलों को समूह में रखने और लाइव स्थिति जांचने देती है।
slacrawl
394kयह आपके एजेंट को स्थानीय Slack आर्काइव में संदेश खोजने और गिनने, उसकी ताज़गी जांचने और ज़रूरत पड़ने पर उसे ताज़ा करने देती है।
goplaces
394kयह आपके एजेंट को Google Places से जगहें खोजने, उनका विवरण और समीक्षाएं पाने, और जगह के नाम हल करने में मदद करती है, स्क्रिप्ट के लिए JSON आउटपुट के साथ।