---
title: "ベクトルインデックスを最適化する（エージェント用スキル） | Orchestor"
description: "ベクトルインデックスの遅延、再現率、メモリ使用量を最適化する。HNSW パラメーターの調整、量子化戦略の選定、ベクトル検索基盤の拡張に使う。wshobson/agents が公開している「ベクトルインデックスを最適化する」の使い方を確認できます。"
canonical_url: "https://www.orchestor.io/ja/skills/wshobson/agents/vector-index-tuning"
markdown_url: "https://www.orchestor.io/ja/skills/wshobson/agents/vector-index-tuning.md"
---

[c96b5f6](https://github.com/wshobson/agents/commit/c96b5f6552dba32e4492307493ee613581430715)[原文を開く](https://github.com/wshobson/agents/blob/c96b5f6552dba32e4492307493ee613581430715/plugins/llm-application-dev/skills/vector-index-tuning/SKILL.md)

wshobson2026/11/24

原文 (選択中)

未翻訳

プレビュー (選択中)

69 行（空行を除く 51 行） · 2.27 KB原文

```yaml
name: vector-index-tuning
description: Optimize vector index performance for latency, recall, and memory. Use when tuning HNSW parameters, selecting quantization strategies, or scaling vector search infrastructure.
```

# Vector Index Tuning

Guide to optimizing vector indexes for production performance.

## When to Use This Skill

* Tuning HNSW parameters
* Implementing quantization
* Optimizing memory usage
* Reducing search latency
* Balancing recall vs speed
* Scaling to billions of vectors

## Core Concepts

### 1\. Index Type Selection

```
Data Size           Recommended Index
────────────────────────────────────────
< 10K vectors  →    Flat (exact search)
10K - 1M       →    HNSW
1M - 100M      →    HNSW + Quantization
> 100M         →    IVF + PQ or DiskANN
```

### 2\. HNSW Parameters

| Parameter          | Default | Effect                                               |
| ------------------ | ------- | ---------------------------------------------------- |
| **M**              | 16      | Connections per node, ↑ = better recall, more memory |
| **efConstruction** | 100     | Build quality, ↑ = better index, slower build        |
| **efSearch**       | 50      | Search quality, ↑ = better recall, slower search     |

### 3\. Quantization Types

```
Full Precision (FP32): 4 bytes × dimensions
Half Precision (FP16): 2 bytes × dimensions
INT8 Scalar:           1 byte × dimensions
Product Quantization:  ~32-64 bytes total
Binary:                dimensions/8 bytes
```

## Templates and detailed worked examples

Full template library and detailed worked examples live in details.md. Read that file when you need the concrete templates.

## Best Practices

### Do's

* **Benchmark with real queries** \- Synthetic may not represent production
* **Monitor recall continuously** \- Can degrade with data drift
* **Start with defaults** \- Tune only when needed
* **Use quantization** \- Significant memory savings
* **Consider tiered storage** \- Hot/cold data separation

### Don'ts

* **Don't over-optimize early** \- Profile first
* **Don't ignore build time** \- Index updates have cost
* **Don't forget reindexing** \- Plan for maintenance
* **Don't skip warming** \- Cold indexes are slow

## Structured data

```json
[
  [
    {
      "@context": "https://schema.org",
      "@type": "Organization",
      "name": "Orchestor",
      "url": "https://www.orchestor.io",
      "sameAs": [
        "https://orchestor.io",
        "https://www.orchestor.io",
        "https://docs.orchestor.io"
      ],
      "@id": "https://www.orchestor.io/#organization",
      "alternateName": [
        "オーケスター"
      ],
      "logo": "https://www.orchestor.io/images/common/ogp/orchestor-ogp.png",
      "parentOrganization": {
        "@type": "Organization",
        "name": "ドットメディア株式会社",
        "url": "https://www.dotmedia.co.jp"
      }
    },
    {
      "@context": "https://schema.org",
      "@type": "WebSite",
      "url": "https://www.orchestor.io",
      "name": "Orchestor",
      "description": "Orchestor で画像・動画・音声を作り、参照素材を Remix できます。",
      "@id": "https://www.orchestor.io/#website",
      "alternateName": [
        "オーケスター"
      ],
      "inLanguage": "ja",
      "publisher": {
        "@id": "https://www.orchestor.io/#organization"
      }
    }
  ],
  {
    "@context": "https://schema.org",
    "@type": "BreadcrumbList",
    "@id": "https://www.orchestor.io/skills/wshobson/agents/vector-index-tuning#breadcrumb",
    "itemListElement": [
      {
        "@type": "ListItem",
        "position": 1,
        "name": "Orchestor",
        "item": "https://www.orchestor.io/"
      },
      {
        "@type": "ListItem",
        "position": 2,
        "name": "スキル",
        "item": "https://www.orchestor.io/skills"
      },
      {
        "@type": "ListItem",
        "position": 3,
        "name": "ベクトルインデックスを最適化する",
        "item": "https://www.orchestor.io/skills/wshobson/agents/vector-index-tuning"
      }
    ]
  }
]
```

---

[Documentation index](https://www.orchestor.io/llms.txt)
