---
title: "ハイブリッド検索を実装する（エージェント用スキル） | Orchestor"
description: "ベクトル検索とキーワード検索を組み合わせ、検索性能を改善する。RAG システムや検索エンジンの構築、どちらか一方だけでは十分な再現率が得られない場合に使う。wshobson/agents が公開している「ハイブリッド検索を実装する」の使い方を確認できます。"
canonical_url: "https://www.orchestor.io/ja/skills/wshobson/agents/hybrid-search-implementation"
markdown_url: "https://www.orchestor.io/ja/skills/wshobson/agents/hybrid-search-implementation.md"
---

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

wshobson2026/11/24

原文 (選択中)

未翻訳

プレビュー (選択中)

56 行（空行を除く 40 行） · 1.98 KB原文

```yaml
name: hybrid-search-implementation
description: Combine vector and keyword search for improved retrieval. Use when implementing RAG systems, building search engines, or when neither approach alone provides sufficient recall.
```

# Hybrid Search Implementation

Patterns for combining vector similarity and keyword-based search.

## When to Use This Skill

* Building RAG systems with improved recall
* Combining semantic understanding with exact matching
* Handling queries with specific terms (names, codes)
* Improving search for domain-specific vocabulary
* When pure vector search misses keyword matches

## Core Concepts

### 1\. Hybrid Search Architecture

```
Query → ┬─► Vector Search ──► Candidates ─┐
        │                                  │
        └─► Keyword Search ─► Candidates ─┴─► Fusion ─► Results
```

### 2\. Fusion Methods

| Method            | Description              | Best For        |
| ----------------- | ------------------------ | --------------- |
| **RRF**           | Reciprocal Rank Fusion   | General purpose |
| **Linear**        | Weighted sum of scores   | Tunable balance |
| **Cross-encoder** | Rerank with neural model | Highest quality |
| **Cascade**       | Filter then rerank       | Efficiency      |

## 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

* **Tune weights empirically** \- Test on your data
* **Use RRF for simplicity** \- Works well without tuning
* **Add reranking** \- Significant quality improvement
* **Log both scores** \- Helps with debugging
* **A/B test** \- Measure real user impact

### Don'ts

* **Don't assume one size fits all** \- Different queries need different weights
* **Don't skip keyword search** \- Handles exact matches better
* **Don't over-fetch** \- Balance recall vs latency
* **Don't ignore edge cases** \- Empty results, single word queries

## 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/hybrid-search-implementation#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/hybrid-search-implementation"
      }
    ]
  }
]
```

---

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