Hybrid Search Architect

Hybrid Search Architect is a skill for Claude Code, Codex from Notysoty/openagentskills. It costs 32 tokens per session (1,728 once invoked), scanned A, original, MIT.

A design guide for search systems that combine meaning-based vector search with BM25 keyword search. Vector search finds related wording, while BM25 is useful for exact terms such as product names, codes, and rare words.

In plain words
What is it for?
Use it to design retrieval for documentation, products, or other collections when queries mix natural language with exact names, identifiers, or technical terms.
Why use it?
It helps balance semantic matches with exact keyword matches instead of relying on only one search method.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for cline. Also seen: positional $N argument; mentions Claude Code; mentions Codex.

Good fit Use it to design retrieval for documentation, products, or other collections when queries mix natural language with exact names, identifiers, or technical terms.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/notysoty/openagentskills/hybrid-search-architect
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Notysoty/openagentskills --skill hybrid-search-architect
Clone the repo
git clone --depth 1 https://github.com/Notysoty/openagentskills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Hybrid Search Architect

README.md
[![agentmods](https://agentmods.dev/badge/skills/notysoty/openagentskills/hybrid-search-architect/github.svg)](https://agentmods.dev/skills/notysoty/openagentskills/hybrid-search-architect)
Your own site
<a href="https://agentmods.dev/skills/notysoty/openagentskills/hybrid-search-architect"><img src="https://agentmods.dev/badge/skills/notysoty/openagentskills/hybrid-search-architect/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Hybrid Search Architect

Your own site · 80×15
<a href="https://agentmods.dev/skills/notysoty/openagentskills/hybrid-search-architect"><img src="https://agentmods.dev/badge/skills/notysoty/openagentskills/hybrid-search-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,728 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00032 $0.01728
Opus 5 $0.00016 $0.00864
Sonnet 5 $0.00006 $0.00346
Haiku 4.5 $0.00003 $0.00173

Measured 11d ago against content hash 8e162a77f2d5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

Hybrid Search Architect scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/hybrid-search-architect/SKILL.md · 209 lines

How it starts

The opening of the file, as written. The whole thing — 209 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Hybrid Search Architect

What this skill does

This skill designs a hybrid search pipeline that combines dense vector search (semantic similarity) with BM25 sparse search (keyword matching). Hybrid search outperforms either method alone on most retrieval benchmarks because vector search handles semantic meaning while BM25 handles exact keyword matches, product names, codes, and rare terms. This skill picks the right combination and fusion strategy for your use case.

How to use

Claude Code / Cline

Copy this file to .agents/skills/hybrid-search-architect/SKILL.md in your project root.

Then ask:

  • "Use the Hybrid Search Architect to improve our RAG pipeline's retrieval."
  • "Design a hybrid search system for our product documentation."

Provide:

  • What you're searching (type of documents)
  • What queries look like (keywords, natural language, codes/IDs)
  • Your current search stack (Pinecone, Weaviate, Elasticsearch, pgvector, etc.)
  • Latency requirements

Cursor / Codex

Describe your current retrieval setup and query patterns alongside these instructions.

The Prompt / Instructions for the Agent

Step 1 — Determine if hybrid search is needed

Query pattern Pure vector Pure BM25 Hybrid
Natural language questions
Exact product names / SKUs
Technical codes / IDs
Conceptual / semantic
Mixed (most real-world)

Use hybrid search when: queries are mixed (some keyword, some semantic), documents contain both prose and structured data, or pure vector search misses obvious keyword matches.

Step 2 — Choose a stack

Option A: Weaviate (easiest hybrid, built-in)

# pip install weaviate-client
import weaviate
from weaviate.classes.query import HybridFusion

client = weaviate.connect_to_local()
collection = client.collections.get("Documents")

results = collection.query.hybrid(
    query="payment processing error",
    fusion_type=HybridFusion.RELATIVE_SCORE,  # or RANKED
    alpha=0.5,   # 0 = pure BM25, 1 = pure vector, 0.5 = balanced
    limit=10,
    return_metadata=["score", "explain_score"]
)

Read the full file on GitHub · 209 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 209 lines · 32 tokens per session scan A 8e162a77f2d5

Subscribe to this mod's changes

Hybrid Search Architect is a skill published in the GitHub repository Notysoty/openagentskills (9 stars, last pushed 28d ago), licensed MIT. It adds 32 tokens to every session and 1,728 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.