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

26 lines
681 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: "Generation"
type: concept
tags: [RAG, LLM, 生成]
---
## Definition
Generation是将问题+知识片段输入LLM生成答案的过程是RAG的第三阶段。
## Core Mechanism
1. 知识组装:将检索到的文档片段与问题组合
2. Prompt构建构造包含上下文的Prompt
3. LLM生成调用LLM生成答案
4. 输出后处理:答案格式化/过滤
## Key Properties
- 受Context Window限制
- 依赖LLM推理能力
- 检索质量决定生成质量
## Connections
- [[RAG]] ← 阶段3 ← [[Generation]]
- [[Retrieval]] ← 上游 ← [[Generation]]
- [[LLM]] ← 依赖 ← [[Generation]]
- [[Context Window]] ← 限制 ← [[Generation]]