Hybrid Search Implementation skill for Claude

Combine vector and keyword search for improved retrieval.

When Claude uses it

Use when implementing RAG systems, building search engines, or when neither approach alone provides sufficient recall.

Hybrid Search Implementation SKILL.md

The full skill file from wshobson/agents (MIT).

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

MethodDescriptionBest For
RRFReciprocal Rank FusionGeneral purpose
LinearWeighted sum of scoresTunable balance
Cross-encoderRerank with neural modelHighest quality
CascadeFilter then rerankEfficiency

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

How to install Hybrid Search Implementation

Claude Code

Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):

npx degit wshobson/agents/plugins/llm-application-dev/skills/hybrid-search-implementation#main ~/.claude/skills/hybrid-search-implementation

Codex

npx degit wshobson/agents/plugins/llm-application-dev/skills/hybrid-search-implementation#main ~/.codex/skills/hybrid-search-implementation

Claude.ai and Claude Desktop

Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.

Frequently asked questions

+What does the Hybrid Search Implementation skill do?

Combine vector and keyword search for improved retrieval. Use when implementing RAG systems, building search engines, or when neither approach alone provides sufficient recall.

+How do I install Hybrid Search Implementation in Claude Code?

Copy the skill folder into ~/.claude/skills/hybrid-search-implementation, for example with "npx degit wshobson/agents/plugins/llm-application-dev/skills/hybrid-search-implementation#main ~/.claude/skills/hybrid-search-implementation". Claude Code loads it automatically and uses it when a task matches.

+Does Hybrid Search Implementation work with ChatGPT or Codex?

Yes. Hybrid Search Implementation uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/hybrid-search-implementation. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is Hybrid Search Implementation free?

Hybrid Search Implementation is published on GitHub by wshobson under the MIT license, which allows free use.

Related seo skills

  1. Seo

    Comprehensive SEO analysis for any website or business type. Full site audits, single-page analysis, technical SEO (crawlability,…

    AgriciDaniel/claude-seo★ 30k
  2. Eval

    Rank finished AgentHub agents by metric or judge. Use when asked which agent won.

    alirezarezvani/claude-skills★ 30k
  3. Seo Audit

    When the user wants to audit or diagnose SEO, or asks why traffic dropped, a page won't rank, or whether a setup like canonicals, hreflang,…

    coreyhaines31/marketingskills★ 61k
  4. Seo Agentic

    Audit and fix agent readiness: the Lighthouse Agentic Browsing fraction, accessibility tree for agents, robots.txt and Content-Signal for…

    AgriciDaniel/claude-seo★ 30k
  5. Seo Ahrefs

    Ahrefs API analyst (extension). Reads referring domains, backlinks, organic keywords, and content explorer data via the tested…

    AgriciDaniel/claude-seo★ 30k
  6. Seo Audit

    Run a full-site SEO audit and return a scored, prioritized report. Use only for site-wide checks;

    AgriciDaniel/claude-seo★ 30k
  7. Seo Backlinks

    Analyze a site's backlink profile, anchors, toxic signals, competitors, gaps, and disavow candidates.

    AgriciDaniel/claude-seo★ 30k
  8. Seo Bing

    Bing Webmaster Tools + IndexNow extension. Microsoft Copilot citations are fed by the Bing index;

    AgriciDaniel/claude-seo★ 30k
  9. Seo Cluster

    Cluster keywords by SERP overlap and design hub-and-spoke content architecture with internal links. Use for planning;

    AgriciDaniel/claude-seo★ 30k

See all seo skills →

More skills from wshobson

  1. Incident Runbook Templates

    Create structured incident response runbooks with step-by-step procedures, escalation paths, and recovery actions.

    wshobson/agents★ 43k
  2. Interaction Design

    Design and implement microinteractions, motion design, transitions, and user feedback patterns.

    wshobson/agents★ 43k
  3. Istio Traffic Management

    Configure Istio traffic management including routing, load balancing, circuit breakers, and canary deployments.

    wshobson/agents★ 43k

All skills by wshobson →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.