hybrid-search-implementation

Combine vector and keyword search with fusion ranking for retrieval pipelines.

Updated Apr 5, 2026
One-click install
npx skills add https://github.com/Jhabbig/Habbig --skill hybrid-search-implementation-jhabbig
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hybrid-search-implementation
Source: https://github.com/Jhabbig/Habbig/tree/main/.claude/plugins/wshobson/llm-application-dev/skills/hybrid-search-implementation
Command: npx skills add https://github.com/Jhabbig/Habbig --skill hybrid-search-implementation-jhabbig

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you combine semantic retrieval and exact keyword matching so search systems surface the right documents even when one method alone misses important results.

Core Features & Use Cases

  • Hybrid Retrieval Design: Blend vector search with keyword search to improve recall and precision.
  • Fusion Strategies: Use reciprocal rank fusion, weighted scoring, cascade filtering, or cross-encoder reranking.
  • Implementation Patterns: Apply the guidance to PostgreSQL, Elasticsearch, or a custom RAG pipeline.
  • Use Case: Build a domain search feature that finds both conceptually similar content and exact terms like names, codes, or product identifiers.

Quick Start

Implement a hybrid search pipeline for my application that combines vector retrieval, keyword retrieval, and fusion ranking.

Frequently Asked Questions about hybrid-search-implementation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I combine vector search and keyword search to improve RAG retrieval?

You can combine vector search and keyword search using fusion strategies like reciprocal rank fusion, weighted scoring, cascade filtering, or cross-encoder reranking. This approach blends semantic matching with exact term matching to improve retrieval quality and recall.

What's the best way to implement hybrid search in Elasticsearch?

The best way to implement hybrid search in Elasticsearch is to apply fusion strategies like reciprocal rank fusion or weighted scoring across vector and keyword search results. This improves recall and precision by blending semantic matching with exact term matching.

Does pgvector support hybrid search for domain-specific queries?

Yes, pgvector supports hybrid search for domain-specific queries. You can combine vector retrieval with keyword search and apply fusion ranking to find both conceptually similar content and exact terms like names, codes, or product identifiers.

When do I need reciprocal rank fusion in a search pipeline?

You need reciprocal rank fusion when merging ranked results from separate vector and keyword search systems. It balances scores from both retrieval methods to improve recall and precision, ensuring documents that rank highly in either method surface in the final results.

How do I build a hybrid search pipeline step by step?

To build a hybrid search pipeline, combine vector retrieval, keyword retrieval, and fusion ranking. Apply implementation patterns for PostgreSQL, Elasticsearch, or custom pipelines, using strategies like weighted scoring or cross-encoder reranking to optimize document retrieval.

Why does vector search alone miss exact term matches in my RAG system?

Vector search alone misses exact term matches because it focuses on semantic similarity rather than exact string matching. Implementing hybrid search adds keyword retrieval to capture exact terms like names, codes, or product identifiers that vector embeddings miss.