vector-search
यह क्या करती है
यह स्किल बताती है कि टेक्स्ट संग्रहों पर समानता खोज कैसे चलाएँ और काम के लिए सही खोज रास्ता कैसे चुनें। यह उन लोगों के लिए है जिन्हें बड़े दस्तावेज़ों के समूह में संबंधित सामग्री खोजनी है।
कब इस्तेमाल करें
- ✓जब आपको बड़े दस्तावेज़ों के संग्रह में अर्थ के आधार पर खोजना हो।
- ✓जब आपकी मेमोरी सीमित हो और आप compressed vector storage चाहें।
- ✓जब आप दो स्ट्रिंग की तुलना करना चाहें या क्रमबद्ध (hierarchical) डेटा खोजना चाहें।
Skill का लिंक
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-agentdb/skills/vector-search/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“हमारे 10,000 support लेखों में से वे खोजिए जो इस ग्राहक प्रश्न के अर्थ के सबसे करीब हों।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट खोज की स्थिति जाँचता है, बड़े संग्रह की खोज और कुछ मुख्य पैटर्न के लिए तेज़ router के बीच चुनता है, और सबसे करीबी मेल लौटाता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Vector Search
Two distinct vector-search paths live in this plugin. Pick the right one — they're not interchangeable.
| Path | Tool family | Backing | Capacity | Latency |
|---|---|---|---|---|
| Large-scale corpus | embeddings_* |
@claude-flow/memory HNSW (Rust/Native) |
large corpora (measured here only at N=5k and N=20k) | ~1.9× at N=20k, ~3.2×–4.7× at N=5k vs brute-force (measured; recall@10 ≈ 0.99). ANN wins above the crossover |
| Hot-path router | ruvllm_hnsw_* |
WASM-backed router (v2.0.1) | ~11 patterns max (ruvllm-tools.ts:58) |
sub-ms; designed for high-priority routing, not corpus search |
The speedups in the Performance section apply to the large-scale embeddings_search path (the older "12,500×" headline was a brute-force-fallback artifact and is retired). The WASM router is not that path.
When to use
| Need | Path |
|---|---|
| Search a corpus of N ≥ 500 documents | embeddings_search |
| Memory-constrained corpus (≥5,000 vectors) | RaBitQ quantized — see "Quantized search" below |
| Compare two strings | embeddings_compare |
| Hierarchical / taxonomic data | embeddings_hyperbolic (Poincare ball) |
| Route a query to one of ≤11 hot patterns | ruvllm_hnsw_route |
| Cross-namespace search | memory_search_unified |
Standard search
- Check status —
mcp__plugin_ruflo-core_ruflo__embeddings_statusto verify the embedding engine. - Initialize —
mcp__plugin_ruflo-core_ruflo__embeddings_initif not active. - Generate —
mcp__plugin_ruflo-core_ruflo__embeddings_generatefor text input. - Search —
mcp__plugin_ruflo-core_ruflo__embeddings_searchwith the query. - Compare —
mcp__plugin_ruflo-core_ruflo__embeddings_compareto measure similarity. - Unified search —
mcp__plugin_ruflo-core_ruflo__memory_search_unifiedfor cross-namespace.
Quantized search (32× memory reduction)
For corpora ≥5,000 vectors and/or memory-constrained environments, use the RaBitQ 1-bit quantization workflow. Below 5,000 vectors the rebuild cost outweighs the savings — use the standard path instead.
| Step | Tool | Purpose |
|---|---|---|
| 1 | embeddings_init |
Engine warm |
| 2 | embeddings_rabitq_build |
One-time build of the 1-bit index after corpus is loaded |
| 3 | embeddings_rabitq_search |
Hamming-prefilter returns top-N candidate IDs (cheap) |
| 4 | embeddings_search |
Optional exact rerank on the candidate set (full-precision) |
| 5 | embeddings_rabitq_status |
Index health, memory footprint, build time |
Note:
embeddings_rabitq_searchreturns candidate IDs only — the rerank in step 4 is the user's responsibility (mirrors the docstring atembeddings-tools.ts:911). Without rerank, results are approximate; with rerank, you get full-precision quality at 32× lower memory.
Tuning
HNSW exposes three knobs that trade recall against latency. The Performance numbers below were measured at default settings; tune deliberately for your workload and re-measure:
| Profile | efSearch |
M |
When to use |
|---|---|---|---|
recall-first |
200 | 32 | Pattern recall during planning; quality matters more than ms |
balanced (default) |
64 | 16 | General-purpose semantic recall |
latency-first |
16 | 8 | Hot-path routing where p99 latency matters |
efSearch is passed via ruvllm_hnsw_create (ruvllm-tools.ts:64). M is registry-level today; raise as a follow-up if it should be MCP-tunable. efConstruction defaults to 200 in the lite index (hnsw-index.ts:537).
HNSW pattern router (WASM, ≤11 patterns)
For routing a small number of high-priority patterns:
mcp__plugin_ruflo-core_ruflo__ruvllm_hnsw_create— create the WASM index (cap ~11)mcp__plugin_ruflo-core_ruflo__ruvllm_hnsw_add— add a patternmcp__plugin_ruflo-core_ruflo__ruvllm_hnsw_route— route an incoming query
This is not a corpus index. Treat it as a fast classifier over a curated set of patterns.
Hyperbolic embeddings
For hierarchical data (code trees, org charts), use mcp__plugin_ruflo-core_ruflo__embeddings_hyperbolic which maps to Poincare ball space. Distance is geodesic, not cosine.
CLI alternative
npx @claude-flow/cli@latest embeddings search --query "authentication patterns"
npx @claude-flow/cli@latest embeddings init
npx @claude-flow/cli@latest memory search --query "your query"
Performance
Measured numbers (source: `scripts/benchmark-
अक्सर पूछे जाने वाले सवाल
छोटे सेट के लिए कौन-सा रास्ता लूँ?
स्किल कहती है कि बड़े संग्रह की खोज लगभग 500 या उससे ज़्यादा दस्तावेज़ों के लिए ठीक है, और router लगभग ग्यारह पैटर्न के लिए।
quantization क्या है?
यह vectors को कम bits में सहेजने का तरीका है, जिसमें कम मेमोरी लगती है।
क्या यह keyword खोज की जगह लेती है?
नहीं। स्किल सटीक टेक्स्ट मिलान या सरल खोज के लिए इसे छोड़ने को कहती है।
जानकारी
लेखक का मूल विवरण
Vector search via embeddings_* (large-scale HNSW) and ruvllm_hnsw_* (WASM router for ≤11 hot patterns), with RaBitQ 1-bit quantization for 32× memory reduction
repo: ruvnet/ruflo
लोकप्रियता
- GitHub स्टार
- 81k
- रैंकिंग में स्थान
- #1562
- लाइसेंस
- 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
discrawl
394kयह आपके एजेंट को Discord संदेशों के सेव किए गए स्थानीय आर्काइव में खोजने, उसका सारांश बनाने और उसकी ताज़गी जांचने में मदद करती है।
clickhouse-io
280kआपके एजेंट को ClickHouse databases में queries और schemas optimize करने में मदद करता है। high-performance analytical workloads के लिए best practices लागू करता है। जब analytical queries बहुत धीमी हों, तब इसका उपयोग करें।
scientific-db-pubmed-database
280kआपके एजेंट को बायोमेडिकल क्षेत्र के वैज्ञानिक लेख खोजने में मदद करता है। जिस रिसर्च में खास मेडिकल जानकारी चाहिए, उसके लिए यह काम का है।