본문으로 건너뛰기
Skillpedia
에이전트41k · #6721

hybrid-search-implementation

하는 일

이 스킬은 두 가지 검색 방식을 섞는 방법을 가르칩니다. 하나는 의미를 이해하는 벡터 검색이고, 다른 하나는 정확한 단어를 찾는 키워드 검색입니다. 이렇게 하면 정보를 더 빠짐없이 찾을 수 있습니다.

사용하는 경우

  • ✓문서를 바탕으로 질문에 답하는 시스템을 만들 때.
  • ✓의미와 특정 용어를 모두 찾는 검색이 필요할 때.
  • ✓의미 기반 검색만으로는 있다는 것을 알고 있는 중요한 결과를 놓칠 때.

스킬 링크

https://github.com/wshobson/agents/blob/main/plugins/llm-application-dev/skills/hybrid-search-implementation/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/wshobson/agents/blob/main/plugins/llm-application-dev/skills/hybrid-search-implementation/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“의미 검색과 키워드 검색을 결합해 결과를 개선하려면 어떻게 해야 하나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

질의를 두 검색 시스템에 동시에 보내는 방식입니다. 하나는 의미를 이해하고, 다른 하나는 정확한 단어를 찾습니다. 그다음 두 결과를 합쳐서 가장 좋은 답을 만듭니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

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 ─┐
        │                                  │
        └─► 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

Templates and detailed worked examples

Full template library and detailed worked examples live in references/details.md. Read that file when you need the concrete templates.

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
자주 묻는 질문

벡터 검색이란 무엇인가요?

단어와 문장의 의미를 이해하는 검색입니다. 다른 단어를 쓰더라도 같은 주제를 다루는 텍스트를 찾아냅니다.

키워드 검색이란 무엇인가요?

입력한 정확한 단어를 찾는 전통적인 검색입니다.

'융합'이란 무엇인가요?

두 검색(벡터와 키워드)의 결과를 합쳐서 더 정확한 최종 결과 목록을 만드는 과정입니다.

상세 정보

작성자의 원본 설명

Combine vector and keyword search for improved retrieval. Use when implementing RAG systems, building search engines, or when neither approach alone provides sufficient recall.

repo: wshobson/agents

인기도

GitHub 스타
41k
순위
#6721
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬