AS AgentScopeAPI 手册 / API Reference
RAG 与知识库RAG & knowledge · 单元Unit 07

RAG 知识库:从文档到可信回答RAG knowledge bases: from documents to trustworthy answers

把文档切分、向量化、存储、召回与重排串成一条链路。学完本单元,你能定位召回为空、答案过期和引用缺失三类高频问题。Chain parsing, chunking, embedding, storage, retrieval and reranking. After this unit you can diagnose empty recall, stale answers and missing citations.

10 道题questions 5 张概念卡concept cards 2 个相关事故related incidents

学习目标Learning goals

  • 说出 RAG 链路的五个阶段与对应 APIName the five RAG stages and their APIs
  • 理解切分策略、embedding 模型与索引的一致性Understand consistency between chunking, embedding models and indexes
  • 为回答加上来源引用和更新删除策略Add source citations and update/delete policies

概念闪卡Concept cards

点击卡片翻面查看解释。Click a card to flip it and reveal the explanation.

关键 APIKey APIs

点击进入对应的 Python 或 Java 参考页。Open the exact Python or Java reference for each type.

问题巩固Check yourself

完成 10 道题;答错会自动进入错题本。Answer all ten questions. Wrong answers are added to your wrong-answer book automatically.

01Python 中组合解析、切分、向量化与检索的高层入口是?Which Python class combines parsing, chunking, embedding and retrieval?
02按 token 近似切分文本的组件是?Which component splits text by approximate token count?
03向量存储的抽象基类是?What is the vector store abstraction?
04检索返回的结果类型是?What type represents a retrieval result?
05解析 PDF 文档使用哪个解析器?Which parser handles PDF documents?
06更换 embedding 模型后必须做什么?What must you do after changing the embedding model?
07召回质量差时,第一步应该检查什么?What should you check first when recall quality is poor?
08Java 官方扩展中提供简易 RAG 能力的是?Which official Java extension provides simple RAG?
09面向用户的知识库回答应该附带什么?What should user-facing knowledge-base answers include?
10文档更新后没有删除旧向量会导致?What happens if old vectors are not deleted after a document update?

接着看的生产事故Production incidents to read next

基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.