hybrid-search-implementation

Installation
Summary

Combine vector and keyword search for improved retrieval in RAG systems and search engines.

  • Provides four fusion methods: Reciprocal Rank Fusion (RRF) for general use, linear combination for tunable balance, cross-encoder reranking for highest quality, and cascade filtering for efficiency
  • Includes production-ready templates for PostgreSQL with pgvector, Elasticsearch with dense vectors, and custom Python pipelines with parallel search execution
  • Handles score normalization, metadata filtering, and result deduplication across multiple search backends
  • Supports reranking with cross-encoders and offers practical guidance on tuning weights empirically rather than assuming fixed configurations
SKILL.md

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 ─┐
        │                                  │
Related skills

More from wshobson/agents

Installs
6.2K
Repository
wshobson/agents
GitHub Stars
35.3K
First Seen
Jan 20, 2026