30 lines
462 B
Markdown
30 lines
462 B
Markdown
# RAG
|
||
|
||
## 架构
|
||
|
||
```mermaid
|
||
flowchart LR
|
||
Query --> Understanding
|
||
Understanding --> BM25
|
||
Understanding --> Vector
|
||
Understanding --> Graph
|
||
BM25 --> Fusion
|
||
Vector --> Fusion
|
||
Graph --> Fusion
|
||
Fusion --> Reranker
|
||
Reranker --> Compression
|
||
Compression --> LLM
|
||
```
|
||
|
||
## 检索
|
||
|
||
采用 Hybrid Retrieval:
|
||
|
||
- Keyword
|
||
- BM25
|
||
- Vector
|
||
- Graph
|
||
- Metadata Filter
|
||
|
||
最终通过 Reranker 与 Context Compression 提高上下文质量。
|