Hybrid Search
Software development skill, available on Zeplik
Hybrid Search is a ready-to-run software development skill on Zeplik. Not for full RAG pipelines (use rag-implementation) or model/chunking choice (use embedding-strategies). Ask in plain language and Zeplik applies the skill's method for you inside the conversation, on whichever AI model you prefer.
The Hybrid Search skill loads automatically when your request matches it, or you can invoke it directly by typing /hybrid-search-implementation in any chat. It works with attachments, connectors, and any model that supports the task, so you get the same expert method every time without setting anything up.
What the Hybrid Search skill can do
- Design fusion of vector and keyword search results using RRF
- Implement working retrieval code for the user's specific stack and client library
- Add cross-encoder reranking over fused top candidates for higher quality
- Build an evaluation snippet to measure recall and MRR on real failure cases
Try these prompts on Zeplik
Pick a prompt to open it in the Zeplik app. If you are not signed in yet, your prompt is waiting for you the moment you do.
How the Hybrid Search skill works
/hybrid-search-implementation
Combine vector similarity and keyword-based search for better retrieval than either alone. The user describes their stack and failure cases (or pastes queries with bad results and their current retrieval code); deliver a fusion design and working implementation code as chat artifacts. For the end-to-end RAG system, use rag-implementation; for picking the embedding model or chunking, use embedding-strategies.
When to Use
- Building retrieval with improved recall
- Combining semantic understanding with exact matching
- Handling queries with specific terms (names, codes, SKUs)
- 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 |
RRF score for a document: sum over each ranker of 1 / (k + rank) with k typically 60. It needs no score normalization, which is why it is the default recommendation.
Implementation Workflow
- Confirm the stack: vector store (pgvector, Qdrant, Weaviate, Elasticsearch/OpenSearch) and keyword engine (BM25 in the same store or separate).
- Start with RRF over top-N (e.g., 50) candidates from each side; it works well without tuning.
- If quality demands more, add a cross-encoder reranker over the fused top 20-30.
- Tune empirically: build a small query set from the user's real failure cases, measure recall@k and MRR before and after.
- Deliver the retrieval function, fusion code, and an evaluation snippet as chat artifacts, in the user's language and client library.
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
Templates and Detailed Worked Examples
The full template library (RRF and weighted fusion implementations, store-specific queries, reranker integration) lives in references/details.md. Read that file when you need the concrete templates.
Usage
/hybrid-search-implementation $ARGUMENTS
How to use the Hybrid Search skill
Sign in to Zeplik
Create a free Zeplik account or sign in. New accounts start with free credits, so you can try the Hybrid Search skill right away.
Describe your software development task
Ask in plain language, or type /hybrid-search-implementation to invoke the skill directly. Zeplik recognizes the Hybrid Search skill and applies its method.
Review and refine the result
Zeplik returns a clear, structured answer. Ask follow-ups in the same chat to refine it or take the next step.
Source and credit
- Author
- wshobson
- License
- MIT
Adapted from the open-source wshobson/agents project and tuned to run natively on Zeplik. View source on GitHub.
Frequently asked questions
- What is the Hybrid Search skill?
- Hybrid Search is a ready-to-run software development skill on Zeplik. Not for full RAG pipelines (use rag-implementation) or model/chunking choice (use embedding-strategies). Ask in plain language and Zeplik applies the skill's method for you inside the conversation, on whichever AI model you prefer.
- How do I use Hybrid Search on Zeplik?
- Sign in to Zeplik and ask in plain language, or type /hybrid-search-implementation in any chat to invoke it directly. The skill applies its method and returns a result you can refine in the same conversation.
- Which AI model does the Hybrid Search skill use?
- Any model you choose. Zeplik works across every model in one chat, so the Hybrid Search skill runs on your preferred model for the task.
- Where does the Hybrid Search skill come from?
- The Hybrid Search skill is adapted from the open-source wshobson/agents project (MIT) and tuned to run natively on Zeplik. The original source is linked on this page.
- How much does the Hybrid Search skill cost?
- Using the skill is free to start. You only spend Zeplik credits when the assistant runs, and new accounts begin with free credits.
Related software development skills
- .NET BackendBuild ASP.NET Core 8+ backends with EF Core: auth, background jobs, production API patterns
- Advanced Git WorkflowsUse for advanced Git surgery: interactive rebase, cherry-pick, bisect, reflog recovery, and history cleanup before merging. Not for parallel worktree workflows (use using-git-worktrees).
- Adversarial Code ReviewHunt for bugs in code the user shares by assuming defects exist and attacking the code through several distinct lenses, then report severity-ranked findings with evidence. Use for "review this", "what could go wrong", "bug hunt", or pre-merge scrutiny of a change. Read-only, it reports problems and does not rewrite the code. Not for style cleanup (use simplify-code) or for writing new code.
- AI Agent FrameworksUse when building multi-agent systems or agent orchestration -- LangChain/LangGraph, agent team design, task coordination, pipelines. Not for authoring a Zeplik skill (use skill-creator).
- Algolia SearchAdd Algolia search: indexing strategies, React InstantSearch, relevance tuning, search-as-you-type
- Android CI/CDAutomate Android CI/CD to Google Play: keystore, GitHub Secrets, multi-stage release workflow for RN, Flutter, native
More on Zeplik
Try Hybrid Search on Zeplik
Every model, one chat. Bring the Hybrid Search skill into your next conversation and let the assistant do the work.