跳到主要内容Skip to main content

联网 / 检索增强Retrieval-Augmented Generation, RAG

Retrieval-Augmented Generation, RAG

  • 数据与检索Data & retrieval
  • 第二站 · 上手Station 2 · Hands On
  • 引用核验 2026-11-03refs checked 2026-11-03
解决什么问题What problem it solves

回答之前先去查资料,把查到的内容塞进上下文里再回答。Let the model look things up before answering, instead of answering from memory alone.

这是什么What it is

一种做法:先从你的文档或数据库里检索相关片段,再让模型基于这些片段作答。

它解决的是「模型不知道你的私有资料」和「知识会过时」两个问题。

Retrieval-augmented generation: fetch relevant passages first, then have the model answer using them, ideally with citations.

为什么需要知道Why it matters

这是让模型用上你的私有文档最实用的手段,通常比微调更便宜也更安全。It is the most practical way to reduce hallucination and give a model private or current knowledge.

别名Chinese aliases

RAG · 检索增强

出处Sources
  • context7 用 MCP 喂文档的方案Feeding docs via MCP (context7) ↗
  • LlamaIndex 文档解析LlamaIndex document parsing ↗
  • Pinecone RAG 指南Retrieval-Augmented Generation (RAG) – Pinecone ↗