hybrid-search-implementation – skill Khác cho agent AI
Kết hợp tìm kiếm vector và tìm kiếm từ khóa để tăng chất lượng truy xuất. Dùng khi triển khai hệ thống RAG, xây dựng công cụ tìm kiếm, hoặc khi mỗi cách riêng lẻ không đủ độ bao phủ.
Cài skill hybrid-search-implementation bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/hybrid-search-implementation-ae7e0.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /hybrid-search-implementation – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/hybrid-search-implementation-ae7e0.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $hybrid-search-implementation – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/hybrid-search-implementation-ae7e0.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /hybrid-search-implementation – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/hybrid-search-implementation-ae7e0.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /hybrid-search-implementation – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
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 ─► Results2. 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
Skill liên quan
- transcribe – Chuyển file âm thanh thành văn bản, có tùy chọn phân tách người nói (diarization) và gợi…
- findmy – Theo dõi thiết bị Apple/AirTag qua FindMy.app trên macOS.
- fitness-nutrition – Lập kế hoạch tập luyện, macro và chỉ số cơ thể qua wger/USDA.
- axiom – Kiểm toán giả định từ nguyên lý đầu tiên. Phân loại từng giả định ẩn (sự thật / quy ước…
- gif-search – Tìm kiếm và tải GIF từ Tenor bằng curl + jq.
- company-os – Khung siêu tổng thể về cách công ty vận hành, là mắt xích kết nối mọi vai trò C-suite…
- grill-me – Phỏng vấn lập kế hoạch theo kiểu phản biện trước khi triển khai.
- matchms – Xử lý, làm sạch, so sánh và tìm kiếm phổ khối tandem bằng matchms. Dùng cho I/O file…