ClaudeCodeMod

All shelves / Skills

hybrid-search-implementation

wshobson/agents · 11.5k installs · 42.1K stars

Skill Patterns for combining vector similarity and keyword-based search.

Install

The repo has no one-line install. Follow its README.

Open the repo

Files

SKILL.md

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 references/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

Facts

Kind
Skill
Repo
wshobson/agents
Group
Uncategorized
Installs
11.5k
Stars
42.1K

Same name on this shelf 1

  1. 22799hybrid-search-implementationsickn33/antigravity-awesome-skills198

Same repo on other shelves

Marketplaces

  1. 16wshobson/agentswshobson/agentsMulti-harness agentic plugin marketplace for Claude Code, Codex, Cursor, OpenCode, GitHub Copilot, Google Antigravity, and Pi42.8k

From the same repo

  1. 2680event-store-designwshobson/agents11.5k
  2. 2688web3-testingwshobson/agents11.4k
  3. 2698distributed-tracingwshobson/agents11.4k
  4. 2702screen-reader-testingwshobson/agents11.4k
  5. 2713saga-orchestrationwshobson/agents11.4k
  6. 2714multi-cloud-architecturewshobson/agents11.3k