Skip to main content
skill Claude Code CX Codex Cursor

hybrid-search-implementation — Claude Code skill

This skill combines vector and keyword search into one retrieval flow. Use it for RAG systems and search engines when one method misses important matches.

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add wshobson/agents
/plugin install llm-application-dev@claude-code-workflows
Open on GitHub

What hybrid-search-implementation does

hybrid-search-implementation outlines a hybrid retrieval architecture: the query goes through vector search and keyword search in parallel, then both candidate lists are fused into the final results. It fits cases where semantic similarity must coexist with exact matches for names, codes, or domain-specific terms.

The skill covers Reciprocal Rank Fusion, weighted score sums, cross-encoder reranking, and filter-then-rerank cascades. Concrete templates and worked examples are stored in references/details.md. It recommends testing weights on your own data, logging both scores, and checking empty results and single-word queries.

Install it when you are building a RAG system or search engine and either retrieval method alone misses relevant matches. Skip it for a simple search flow that does not need hybrid retrieval.

What it helps with

  • combine vector and keyword retrieval
  • keep exact matches for names and codes
  • improve recall in a RAG system
  • rerank candidate results with a neural model
  • handle domain-specific search terms

Example prompts for the agent

  • Design a hybrid search flow for our RAG system with RRF.
  • Compare linear fusion and cross-encoder reranking for these queries.
  • Add score logging for vector search and keyword search, including empty results.

How to install hybrid-search-implementation

1Plugin marketplace

/plugin marketplace add wshobson/agents
/plugin install llm-application-dev@claude-code-workflows

This installs the whole llm-application-dev plugin with all its skills

2Skills CLI (Vercel)

npx skills add wshobson/agents --skill hybrid-search-implementation -a claude-code

3Manually: put the files in place

~/.claude/skills/hybrid-search-implementation/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/hybrid-search-implementation/

From the same set213

The whole set →
typescript-advanced-types Seth Hobson Guides an agent through advanced TypeScript types, from generics to conditional and mapped types. Use it for typed libraries, API clients, or strict configuration objects. Claude Code CX Codex Cursor 92,169installs tailwind-design-system Seth Hobson Helps build design systems with Tailwind CSS v4, from theme tokens to component variants. Use it when a project needs shared UI patterns. Claude Code CX Codex Cursor 70,180installs brand-landingpage Travis D. Elliott This skill interviews you about the product and its visual direction, then builds a landing page through Stitch. Use it when there’s no established design yet. Claude Code CX Codex Cursor 39,476installs python-testing-patterns Seth Hobson This skill guides Python testing with pytest, fixtures and mocks. Use it when building a test suite or tracking down failing checks. Claude Code CX Codex Cursor 36,943installs python-performance-optimization Seth Hobson This skill profiles Python code to locate CPU and memory bottlenecks. Use it when an application responds slowly or consumes too many resources. Claude Code CX Codex Cursor 35,675installs nextjs-app-router-patterns Seth Hobson This skill covers Next.js App Router patterns for rendering, routing, and data fetching. Use it when starting an App Router project or moving from Pages Router. Claude Code CX Codex Cursor 32,529installs api-design-principles Seth Hobson Use this skill to plan or review REST and GraphQL APIs. It helps when writing a specification or setting API conventions for a team. Claude Code CX Codex Cursor 30,348installs code-review-excellence Seth Hobson This skill guides pull request reviews, catches logic and security issues, and helps teams give specific feedback. Use it for review standards or developer mentoring. Claude Code CX Codex Cursor 30,193installs

Similar

gke-custom-golden-image-discovery official google This skill finds a golden base image for a custom GKE node from the cluster version, OS, architecture, accelerator, and security requirements. Claude Code Gemini CLI CX Codex 3,500installs advisor-orchestrator-worker Shubham Saboo A skill that splits a large task across multiple models: an advisor plans and reviews, workers execute in parallel. Use when one model can't handle the job in one pass, or you need to research dozens of variants at once. Claude Code CX Codex Cursor +1 619installs fal-3d nexu-io Skill for creating 3D models from text or images via fal.ai. Useful for game assets, AR previews, product mockups, and concept sculpting. Claude Code CX Codex Cursor +1 2,800installs skill-creator official anthropics Creates and refines skills, then tests them with prompts, evaluations, and performance checks. Claude Code Claude.ai 414,180installs writing-for-agents Matt Pocock Guidance for writing skills and agent-facing documents. Use it when editing AGENTS.md, CLAUDE.md, or reference files reached from them. Claude Code 466,719installs media-use heygen-com Finds or generates media for HyperFrames videos, including voiceovers, music, cutouts, and color grades. Stores files locally in assets. Claude Code CX Codex Cursor +1 1,100,000installs mcp-builder official anthropics This skill walks through building an MCP server in TypeScript or Python, from reading the protocol spec to writing tests and evaluation questions. Claude Code Claude.ai 130,949installs subagent-driven-development Jesse Vincent This skill runs an implementation plan through fresh subagents for independent tasks and reviews each result. Use it for multi-step work in one session. Claude Code CX Codex 237,746installs

Questions about hybrid-search-implementation

How do I install hybrid-search-implementation in Claude Code?

Run npx skills add wshobson/agents --skill hybrid-search-implementation -a claude-code. The skill file is placed at ~/.claude/skills/hybrid-search-implementation/SKILL.md.

What does hybrid-search-implementation do?

It explains how to combine vector similarity and keyword search, then fuse or rerank their candidates. The skill includes RRF, weighted scores, cross-encoders, and cascades.

Which platforms support hybrid-search-implementation?

The skill is available for Claude Code, Codex, and Cursor.

Source text

SKILL.md · MIT
---
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 `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

© Seth Hobson · MIT · wshobson/agents

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor