--- title: "RAG" type: entity tags: [RAG, LLM, 检索增强生成] --- ## Definition RAG = Retrieval Augmented Generation,将LLM与外部数据源连接的通用方法。 ## Core Mechanism 通过三阶段流程:Indexing → Retrieval → Generation,使LLM能够访问私有或最新数据。 ## Key Properties - 突破LLM Context Window限制 - 支持私有/最新数据访问 - 可与预训练知识互补 ## Aliases - Retrieval Augmented Generation - 检索增强生成 ## Connections - [[Indexing]] ← 包含于 ← [[RAG]] - [[Retrieval]] ← 包含于 ← [[RAG]] - [[Generation]] ← 包含于 ← [[RAG]] - [[LLM]] ← 扩展 ← [[RAG]] - [[Vector Store]] ← 依赖 ← [[RAG]]