similarity-search-patterns — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited similarity-search-patterns (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Patterns for implementing efficient similarity search in production systems.
| Metric | Formula | Best For | ||
|---|---|---|---|---|
| Cosine | 1 - (A·B)/(‖A‖‖B‖) | Normalized embeddings | ||
| Euclidean (L2) | √Σ(a-b)² | Raw embeddings | ||
| Dot Product | A·B | Magnitude matters | ||
| Manhattan (L1) | Σ | a-b | Sparse vectors |
┌─────────────────────────────────────────────────┐
│ Index Types │
├─────────────┬───────────────┬───────────────────┤
│ Flat │ HNSW │ IVF+PQ │
│ (Exact) │ (Graph-based) │ (Quantized) │
├─────────────┼───────────────┼───────────────────┤
│ O(n) search │ O(log n) │ O(√n) │
│ 100% recall │ ~95-99% │ ~90-95% │
│ Small data │ Medium-Large │ Very Large │
└─────────────┴───────────────┴───────────────────┘Full template library and detailed worked examples live in references/details.md. Read that file when you need the concrete templates.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.