Hybrid Search Implementation
Unverified●27/40Claude Code◐PartialHas SKILL.md but declares no allowed-tools — Claude Code will ask for permission each time
Cursor◐PartialPlain prose you can paste in — but no Cursor rules file
Codex◐PartialPlain prose you can paste in — but no AGENTS.md
Gemini CLI◐PartialPlain prose you can paste in
Copilot◐PartialPlain prose you can paste in — but no Copilot instructions file
npx agentalley add hybrid-search-implementationWho is stuck, and on what
Combine vector and keyword search for improved retrieval. Use when implementing RAG systems, building search engines, or when neither approach alone provides sufficient recall.
The whole source
Frontmatter — 2 properties
| 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. |
| 1 | --- |
| 2 | name: hybrid-search-implementation |
| 3 | 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. |
| 4 | ---A5 — No allowed-tools declared — no way to tell what this skill may touch |
| 5 | |
| 6 | # Hybrid Search Implementation |
| 7 | |
| 8 | Patterns for combining vector similarity and keyword-based search. |
| 9 | |
| 10 | ## When to Use This Skill |
| 11 | |
| 12 | - Building RAG systems with improved recall |
| 13 | - Combining semantic understanding with exact matching |
| 14 | - Handling queries with specific terms (names, codes) |
| 15 | - Improving search for domain-specific vocabulary |
| 16 | - When pure vector search misses keyword matches |
| 17 | |
| 18 | ## Core Concepts |
| 19 | |
| 20 | ### 1. Hybrid Search Architecture |
| 21 | |
| 22 | ``` |
| 23 | Query → ┬─► Vector Search ──► Candidates ─┐ |
| 24 | │ │ |
| 25 | └─► Keyword Search ─► Candidates ─┴─► Fusion ─► Results |
| 26 | ``` |
| 27 | |
| 28 | ### 2. Fusion Methods |
| 29 | |
| 30 | | Method | Description | Best For | |
| 31 | | ----------------- | ------------------------ | --------------- | |
| 32 | | **RRF** | Reciprocal Rank Fusion | General purpose | |
| 33 | | **Linear** | Weighted sum of scores | Tunable balance | |
| 34 | | **Cross-encoder** | Rerank with neural model | Highest quality | |
| 35 | | **Cascade** | Filter then rerank | Efficiency | |
| 36 | |
| 37 | ## Templates and detailed worked examples |
| 38 | |
| 39 | Full template library and detailed worked examples live in `references/details.md`. Read that file when you need the concrete templates. |
| 40 | |
| 41 | ## Best Practices |
| 42 | |
| 43 | ### Do's |
| 44 | |
| 45 | - **Tune weights empirically** - Test on your data |
| 46 | - **Use RRF for simplicity** - Works well without tuning |
| 47 | - **Add reranking** - Significant quality improvement |
| 48 | - **Log both scores** - Helps with debugging |
| 49 | - **A/B test** - Measure real user impact |
| 50 | |
| 51 | ### Don'ts |
| 52 | |
| 53 | - **Don't assume one size fits all** - Different queries need different weights |
| 54 | - **Don't skip keyword search** - Handles exact matches better |
| 55 | - **Don't over-fetch** - Balance recall vs latencyA4 — This skill pulls in web or user content but never says to treat that content as data. A signal, not proof. |
| 56 | - **Don't ignore edge cases** - Empty results, single word queries |
| 57 |
Reviews
Installed this one?Write the first review and take the Trailblazer badge.
Alternatives
Task Coordination StrategiesDecompose complex tasks, design dependency graphs, and coordinate multi-agent work with proper task descriptions and workload balancing. Use this skill when breaking down work for agent teams, managing task dependencies, or monitoring team progress.◐◐◐◐◐●35/40Ebay Seller Tools·····●34/40Tough Decision Advisor: Every Angle ConsideredHand in a decision you're stuck on. Get back a clear breakdown of every angle — the trade-offs, the risks, the blind spot, and a recommended path.●····●32/40DHDNA Profiler — Cognitive Pattern ExtractionPaste any email, proposal, or note someone wrote, and get back a plain-language read on how they think, what drives their decisions, and how they communicate.●····●32/40