Files
nexus/wiki/concepts/Hybrid-Search.md
2026-04-27 20:02:52 +08:00

28 lines
944 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "HybridSearch"
type: concept
tags: []
---
## Definition
混合搜索,结合多种检索方法以获得比单一搜索方法更优的结果。
## Key Characteristics
- 结合语义相似度搜索稠密向量与关键词精确匹配BM25
- 通过倒数排名融合RRF综合多个搜索结果的排名
- 兼顾"按意思查找"和"按关键词查找"两种需求
## How It Works
1. **稠密向量搜索**:将查询和文档都嵌入到向量空间,计算语义相似度
2. **BM25 搜索**:基于词频和文档频率的传统关键词匹配
3. **RRF 融合**:综合两个排名列表,生成最终排序
## Use Cases
- [[memsearch]] 使用混合搜索提升记忆检索精度
- [[Knowledge-Base-RAG]] 混合搜索优化知识库查询
## Related Concepts
- [[Semantic-Search]] — 纯语义搜索(仅向量)
- [[Reciprocal-Rank-Fusion]] — 倒数排名融合
- [[RAG]] — 检索增强生成技术