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