Files
nexus/wiki/concepts/Retrieval.md
2026-04-14 16:02:50 +08:00

26 lines
729 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: "Retrieval"
type: concept
tags: [RAG, 检索, 向量搜索]
---
## Definition
Retrieval是根据问题语义向量检索相关文档的过程是RAG的第二阶段。
## Core Mechanism
1. 问题向量化将用户问题通过Embedding Model转为向量
2. 相似度计算在Vector Store中计算相似度
3. Top-K选取返回最相关的K个文档片段
## Key Properties
- 依赖语义相似度
- 受Embedding Model质量影响
- 可结合关键词过滤
## Connections
- [[RAG]] ← 阶段2 ← [[Retrieval]]
- [[Indexing]] ← 上游 ← [[Retrieval]]
- [[Generation]] ← 下游 ← [[Retrieval]]
- [[Embedding Vector]] ← 依赖 ← [[Retrieval]]
- [[Vector Store]] ← 数据源 ← [[Retrieval]]