hybrid-search-implementation
What it does
This skill teaches how to mix two types of search: one that understands meaning (vector) and another that looks for exact words (keyword). This helps find information more completely.
When to use it
- βWhen building systems that answer questions based on documents.
- βWhen you need search to find both meaning and specific terms.
- βIf pure meaning-based search misses important results you know exist.
Skill link
https://github.com/wshobson/agents/blob/main/plugins/llm-application-dev/skills/hybrid-search-implementation/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βHow can I combine meaning search and keyword search to improve my results?β
5 new skills a week. 1 minute to read.
How it works
The idea is to send your query to two search systems at once. One understands the meaning, the other looks for exact words. Then, the results are combined to give the best answer.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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
FAQ
What is vector search?
It's a search that understands the meaning of words and phrases, finding texts that talk about the same topic, even if they use different words.
What is keyword search?
It's the traditional search, which looks for the exact words you typed.
What is 'fusion'?
It's the process of combining the results from both searches (vector and keyword) to create a more accurate final list of results.
Details
Original description by the author
Combine vector and keyword search for improved retrieval. Use when implementing RAG systems, building search engines, or when neither approach alone provides sufficient recall.
repo: wshobson/agents
Popularity
- GitHub stars
- 41k
- Ranking position
- #6721
- License
- MIT
- Updated
- 10/15/2026
Comments
- β¦
More skills from this repository
screen-reader-testing
41kHas your agent test websites using screen readers to ensure they are accessible.
wcag-audit-patterns
41kHelps your agent audit websites for accessibility and fix issues according to WCAG guidelines.
multi-reviewer-patterns
41kEnables your agent to coordinate parallel code reviews, deduplicating findings and consolidating reports.
parallel-debugging
41kAllows the agent to debug complex issues with parallel investigations and root cause analysis.
Similar skills
add-model-provider
394kLets your agent connect a new AI model provider to OpenClaw using safe setup commands, keep API keys out of plain text, and run a live test.
acp-router
394kHelps your agent send a task to a coding assistant such as Claude Code or Cursor through OpenClaw, so the work runs in that tool.
browser-automation
394kTeaches your agent to control web pages step by step, including logins, tabs, and recovery when a page stops responding.