AI Terms Academy
生成式 AI · Generative AI

Retrieval-Augmented Generation (RAG)

让 AI 在回答前先去「查资料」,再基于查到的内容回答,减少胡说八道。

检索增强生成

高阶 · Advanced#RAG#企业应用

Plain-language definition

一句话定义

让 AI 在回答前先去「查资料」,再基于查到的内容回答,减少胡说八道。

Original definition

英文原文定义

RAG combines a retrieval system (often vector search over a knowledge base) with a generative model, grounding responses in retrieved evidence to improve accuracy and reduce hallucination.

Two levels

分难度讲解

入门版

把 LLM 想成一个聪明的「闭卷考生」——它可能记错。RAG 就是让它「开卷考试」:先去你的资料库里搜出相关段落,再看着资料回答。准确率大幅提升。

进阶版

RAG 流程:文档切片 → embedding → 向量库(FAISS/Milvus/Pinecone)→ query embedding → 相似度检索 top-k → 拼接到 prompt → LLM 生成。进阶:hybrid search、reranking、HyDE、Self-RAG、GraphRAG。

Real-world example

真实例子

公司内部「智能客服」要回答员工报销政策问题,就用 RAG 接入公司规章文档——回答有据可查,不会瞎编。

Keep exploring

相关术语