> For the complete documentation index, see [llms.txt](https://yeasy.gitbook.io/prompt_engineering_guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://yeasy.gitbook.io/prompt_engineering_guide/di-san-bu-fen-gao-ji-ying-yong-pian/09_rag.md).

# 第九章 检索增强生成

检索增强生成（Retrieval-Augmented Generation，RAG）是将信息检索与语言生成结合的技术，通过在生成时动态检索相关知识，使模型能够给出更准确、更有依据的回答。RAG 是当前企业级 AI 应用的核心架构之一。

***

## 本章目标

* 理解本章核心概念与适用场景
* 掌握可复用的提示词/工作流模式
* 能将方法迁移到自己的任务中

## 先修知识

* 建议先阅读上一章或同等基础内容
* 如涉及代码示例，具备基本编程与 API 调用常识

## 本章内容

* [9.1 RAG 系统的核心原理](/prompt_engineering_guide/di-san-bu-fen-gao-ji-ying-yong-pian/09_rag/9.1_rag_principles.md)
* [9.2 高级检索策略与上下文组装](/prompt_engineering_guide/di-san-bu-fen-gao-ji-ying-yong-pian/09_rag/9.2_retrieval_strategies.md)
* [9.3 RAG 系统的提示词优化](/prompt_engineering_guide/di-san-bu-fen-gao-ji-ying-yong-pian/09_rag/9.3_rag_prompt_optimization.md)
* [9.4 高级 RAG 架构与前沿趋势](/prompt_engineering_guide/di-san-bu-fen-gao-ji-ying-yong-pian/09_rag/9.4_advanced_rag.md)
* [9.5 本章实战练习](/prompt_engineering_guide/di-san-bu-fen-gao-ji-ying-yong-pian/09_rag/9.5_practice.md)
* [本章小结](/prompt_engineering_guide/di-san-bu-fen-gao-ji-ying-yong-pian/09_rag/summary.md)
