hybrid-search

Combine BM25 keyword matching with vector semantic similarity in Milvus.

3|2|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/zilliztech/milvus-marketplace --skill hybrid-search
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hybrid-search
Source: https://github.com/zilliztech/milvus-marketplace/tree/main/plugins/retrieval-system/skills/hybrid-search
Command: npx skills add https://github.com/zilliztech/milvus-marketplace --skill hybrid-search

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill addresses the need to retrieve results that are both precisely matched on keywords and meaningfully related through semantics, eliminating the trade-off between recall and precision.

Core Features & Use Cases

  • Unified hybrid ranking that fuses BM25-like keyword matching with vector-based semantic similarity.
  • Use cases include product catalogs with model numbers, legal or technical documents with domain terms, and knowledge bases where exact terms coexist with conceptual relevance.

Quick Start

Configure a Milvus-based hybrid search by combining dense vector embeddings with BM25-based sparse representations, then run a sample query to observe fused results.

Frequently Asked Questions about hybrid-search

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

FAQPage Schema
How do I combine keyword and semantic search for better retrieval accuracy?

Hybrid search combines BM25 keyword matching with vector-based semantic similarity to retrieve results that match both exact terms and conceptual meaning. This fused ranking eliminates the trade-off between precision and recall, improving retrieval for domains like product catalogs, legal documents, and knowledge bases where both exact terminology and conceptual relevance matter.

What vector search engine do I need for hybrid search?

Hybrid search requires Milvus as the vector search engine, combined with an embedding model for dense vectors and a BM25-based sparse indexing mechanism. Milvus handles the vector storage and retrieval while BM25 processes keyword matching; together they enable fused ranking of results.

When should I use hybrid search instead of pure semantic or keyword search?

Use hybrid search when your domain requires both exact term matching and conceptual understanding—product catalogs with model numbers, technical documentation with domain-specific terminology, or knowledge bases where precision on keywords coexists with relevance through meaning. Hybrid search outperforms single-method approaches in these scenarios.

Can hybrid search work with technical documents and legal documents?

Yes, hybrid search is specifically designed for technical and legal documents where domain terms must match exactly while conceptual understanding is equally important. The fused BM25 and semantic matching handles both precise terminology lookup and contextual relevance simultaneously.

How does BM25 ranking work with vector embeddings in hybrid search?

Hybrid search fuses BM25 sparse keyword matching with dense vector embeddings through unified ranking. BM25 scores keywords based on term frequency and document length, while vectors capture semantic meaning; the combined ranking surfaces results that satisfy both criteria.