知识卡片
RAG先检索再组织生成
RAG在生成前检索外部资料,再把选中内容加入模型上下文。原书示例先分块并嵌入,再以查询向量查找相关片段,最后结合模型参数生成答复。更新外部库可补充新知识而不重训模型,但RAG也可采用其他检索方式;检索到资料或输出引用都不保证答复正确。
结构图:
flowchart TD
A[外部材料分块并嵌入] --> B[保存索引与元数据]
C[查询形成检索表示] --> D[检索相关片段]
B --> D
D --> E[组织带来源的上下文]
E --> F[模型生成并核对答复]
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 智能体应用的检索模式 · 查看原书依据
Retrieval‑augmented generation (RAG) is an AI architecture that enriches an LLM by enabling it to consult external, authoritative knowledge sources, such as documents, databases, or vector stores, before generating responses. RAG is widely adopted in business settings where domain-specific, policy-driven, or internal information must be accessible through AI systems. A survey by Unisphere Research (in partnership with Semantic Web Company) found that 85% of organizations
参考来源
- 位置:《Agentic AI Data Architectures》第3章《智能体应用的检索模式》,来源项目book-sources,extracted/Agentic AI Data Architectures/_epub-src/OEBPS/ch03.html。
- 结论依据:原文在相应小节说明上述概念及用途;正文区分书中主张与推论,不将基础设施选择写成无条件保证。
- 原始内容:Retrieval‑augmented generation (RAG) is an AI architecture that enriches an LLM by enabling it to consult external, authoritative knowledge sources, such as documents, databases, or vector stores, before generating responses. RAG is widely adopted in business settings where domain-specific, policy-driven, or internal information must be accessible through AI systems. A survey by Unisphere Research (in partnership with Semantic Web Company) found that 85% of organizations