RAG分块策略Parent-Child
RAG 系列(十二):高级分块策略——Parent-Child 与 Contextual Retrieval
RAG 系列第十二篇。Naive 分块有什么根本缺陷?Parent-Child 如何用小块检索、大块返回?Anthropic 的 Contextual Retrieval 给每个 Chunk 加上什么?用 RAGAS 实测三种策略:context_recall 从 0.625 提升到 0.875,context_precision 从 0.583 提升到 0.938。附完整 LangChain 实现代码。
·约 7 分钟阅读