Skip to content
Back to skills

Vector Quantization

ASecurity

Semantic vector search over ruflo memory, plus 1-bit RaBitQ quantization (@ruvector/rabitq-wasm) for large embedding stores. Use when: similarity search over stored patterns, shrinking a large embedding store, diagnosing low recall. Skip when: exact key lookups, stores under ~1k entries (search is already exact there).

  • 82,861 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 9, 2026
ai-agentsbashbackend

Works with

  • cli
  • mcp

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add ruvnet/ruflo --skill vector-quantization --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Vector Quantization?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Vector Quantization
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ruvnet-vector-quantization-90a22fda/badge)](https://www.skillsdirectory.com/skills/ruvnet-vector-quantization-90a22fda)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: vector-quantization
description: >
  Semantic vector search over ruflo memory, plus 1-bit RaBitQ quantization (@ruvector/rabitq-wasm) for large embedding stores.
  Use when: similarity search over stored patterns, shrinking a large embedding store, diagnosing low recall.
  Skip when: exact key lookups, stores under ~1k entries (search is already exact there).
---

# Vector Quantization Skill

## Purpose
Find stored knowledge by meaning (ONNX MiniLM 384-dim embeddings + HNSW), and compress big stores about 32x with RaBitQ while keeping recall through exact rerank.

## When to Trigger
- you need "something like X" from memory before starting work
- the embedding store is large and search is slow
- recall looks wrong and you need to know why

## When to Skip
- you know the exact key (use `memory retrieve`)
- very small stores

## Commands

### Semantic search
```bash
npx @claude-flow/cli memory search --query "auth token refresh" --limit 10
```

### Store a pattern with its embedding
```bash
npx @claude-flow/cli memory store --key "pattern-auth" --value "JWT with refresh" --namespace patterns
```

### Build and query the RaBitQ index
```bash
npx @claude-flow/cli mcp exec -t embeddings_rabitq_build
npx @claude-flow/cli mcp exec -t embeddings_rabitq_search -p '{"query":"auth token refresh","k":10}'
npx @claude-flow/cli mcp exec -t embeddings_rabitq_status
```

## Recall Facts
- The @claude-flow/memory RVF backend searches through its HNSW index (`hnsw-index.ts`). Stores of 1,000 vectors or fewer are scanned exactly.
- Measured recall@10 on 5,000 random 384-dim vectors: 0.89 (HNSW, ef=200). The index it replaced scored 0.09. Clustered data, like real embeddings, measured 0.99.

## Best Practices
1. Search before building anything new
2. Rebuild the RaBitQ index after bulk imports
3. Use one namespace per concern so results stay relevant

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.