{"id":21670,"date":"2025-02-21T13:07:22","date_gmt":"2025-02-21T05:07:22","guid":{"rendered":"https:\/\/www.aisharenet.com\/?p=21670"},"modified":"2025-02-21T13:14:45","modified_gmt":"2025-02-21T05:14:45","slug":"agentic-chunking","status":"publish","type":"post","link":"https:\/\/www.kdjingpai.com\/en\/agentic-chunking\/","title":{"rendered":"Agentic Chunking\uff1aAI Agent \u9a71\u52a8\u7684\u8bed\u4e49\u6587\u672c\u5206\u5757"},"content":{"rendered":"<h2>\u5f15\u8a00<\/h2>\n<p>\u5728\u5927\u578b\u8bed\u8a00\u6a21\u578b (LLMs) \u7684\u5e94\u7528\u9886\u57df\uff0c\u5c24\u5176\u662f\u5728\u68c0\u7d22\u589e\u5f3a\u751f\u6210 (<a href=\"https:\/\/www.kdjingpai.com\/en\/rag\/\">RAG<\/a>) \u7cfb\u7edf\u4e2d\uff0c\u6587\u672c\u5206\u5757 (Chunking) \u626e\u6f14\u7740\u81f3\u5173\u91cd\u8981\u7684\u89d2\u8272\u3002 \u6587\u672c\u5206\u5757\u7684\u8d28\u91cf\u76f4\u63a5\u5173\u7cfb\u5230\u4e0a\u4e0b\u6587\u4fe1\u606f\u7684\u6709\u6548\u6027\uff0c\u8fdb\u800c\u5f71\u54cd LLM \u751f\u6210\u7b54\u6848\u7684\u51c6\u786e\u6027\u548c\u5b8c\u6574\u6027\u3002 \u4f20\u7edf\u7684\u6587\u672c\u5206\u5757\u65b9\u6cd5\uff0c\u4f8b\u5982\u56fa\u5b9a\u5927\u5c0f\u5b57\u7b26\u5206\u5757\u548c\u9012\u5f52\u6587\u672c\u5206\u5272\uff0c\u66b4\u9732\u51fa\u5176\u56fa\u6709\u7684\u5c40\u9650\u6027\uff0c\u4f8b\u5982\uff0c\u53ef\u80fd\u4f1a\u5728\u53e5\u5b50\u6216\u8bed\u4e49\u5355\u5143\u7684\u4e2d\u95f4\u622a\u65ad\uff0c\u5bfc\u81f4\u4e0a\u4e0b\u6587\u4e22\u5931\u548c\u8bed\u4e49\u4e0d\u8fde\u8d2f\u3002 \u672c\u6587\u5c06\u6df1\u5165\u63a2\u8ba8\u4e00\u79cd\u66f4\u4e3a\u667a\u80fd\u7684\u5206\u5757\u7b56\u7565 \u2014\u2014 Agentic Chunking\u3002 \u8fd9\u79cd\u65b9\u6cd5\u65e8\u5728\u6a21\u62df\u4eba\u7c7b\u7684\u5224\u65ad\u8fc7\u7a0b\uff0c\u521b\u5efa\u8bed\u4e49\u4e0a\u8fde\u8d2f\u7684\u6587\u672c\u5757\uff0c\u4ece\u800c\u663e\u8457\u63d0\u5347 RAG \u7cfb\u7edf\u7684\u6027\u80fd\u3002 \u6b64\u5916\uff0c\u672c\u6587\u8fd8\u5c06\u63d0\u4f9b\u8be6\u5c3d\u7684\u4ee3\u7801\u793a\u4f8b\uff0c\u52a9\u529b\u8bfb\u8005\u5feb\u901f\u4e0a\u624b\u5b9e\u8df5\u3002<\/p>\n<p>\u53c2\u8003\u9605\u8bfb\uff1a<a href=\"https:\/\/www.kdjingpai.com\/pusuqieyouxiaodera\/\">\u6734\u7d20\u3001\u6709\u6548\u7684RAG\u68c0\u7d22\u7b56\u7565\uff1a\u7a00\u758f+\u5bc6\u96c6\u6df7\u5408\u68c0\u7d22\u5e76\u91cd\u6392\uff0c\u5e76\u5229\u7528\u201c\u63d0\u793a\u7f13\u5b58\u201d\u4e3a\u6587\u672c\u5757\u751f\u6210\u6574\u4f53\u6587\u6863\u76f8\u5173\u7684\u4e0a\u4e0b\u6587<\/a><\/p>\n<p>&nbsp;<\/p>\n<h2>\u4ec0\u4e48\u662f Agentic Chunking\uff1f<\/h2>\n<p><strong>Agentic Chunking<\/strong> \u662f\u4e00\u79cd\u57fa\u4e8e LLM \u7684\u5148\u8fdb\u5206\u5757\u65b9\u6cd5\uff0c\u5b83\u6a21\u62df\u4eba\u7c7b\u5728\u6587\u672c\u5206\u5272\u65f6\u7684\u7406\u89e3\u548c\u5224\u65ad\uff0c\u65e8\u5728\u751f\u6210\u8bed\u4e49\u8fde\u8d2f\u7684\u6587\u672c\u5757\u3002 \u5176\u6838\u5fc3\u7406\u5ff5\u5728\u4e8e\u5173\u6ce8\u6587\u672c\u4e2d\u7684 \u201cAgentic\u201d \u5143\u7d20\uff0c\u4f8b\u5982\u4eba\u7269\u3001\u7ec4\u7ec7\u673a\u6784\u7b49\uff0c\u5e76\u5c06\u56f4\u7ed5\u8fd9\u4e9b Agentic \u5143\u7d20\u76f8\u5173\u7684\u53e5\u5b50\u805a\u5408\u5728\u4e00\u8d77\uff0c\u5f62\u6210\u6709\u610f\u4e49\u7684\u8bed\u4e49\u5355\u5143\u3002<\/p>\n<p><strong>\u6838\u5fc3\u601d\u60f3\uff1a<\/strong> Agentic Chunking \u7684\u7cbe\u9ad3\u5728\u4e8e\uff0c\u5b83\u5e76\u975e\u7b80\u5355\u5730\u4f9d\u8d56\u5b57\u7b26\u8ba1\u6570\u6216\u9884\u5b9a\u4e49\u5206\u9694\u7b26\u6765\u5206\u5272\u6587\u672c\u3002 \u76f8\u53cd\uff0c\u5b83\u5145\u5206\u5229\u7528 LLM \u7684\u8bed\u4e49\u7406\u89e3\u80fd\u529b\uff0c\u5c06\u8bed\u4e49\u4e0a\u7d27\u5bc6\u76f8\u5173\u7684\u53e5\u5b50\u7ec4\u5408\u6210\u5757\uff0c\u5373\u4f7f\u8fd9\u4e9b\u53e5\u5b50\u5728\u539f\u59cb\u6587\u672c\u4e2d\u4f4d\u7f6e\u4e0a\u4e0d\u8fde\u7eed\u3002 \u8fd9\u79cd\u65b9\u6cd5\u80fd\u591f\u66f4\u51c6\u786e\u5730\u6355\u6349\u6587\u672c\u7684\u5185\u5728\u7ed3\u6784\u548c\u8bed\u4e49\u5173\u8054\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u4e3a\u4ec0\u4e48\u9700\u8981 Agentic Chunking\uff1f<\/h2>\n<p><strong>\u4f20\u7edf\u7684\u6587\u672c\u5206\u5757\u65b9\u6cd5\u5b58\u5728\u7740\u4e00\u4e9b\u96be\u4ee5\u5ffd\u89c6\u7684\u5c40\u9650\u6027\uff1a<\/strong><\/p>\n<ul>\n<li>\u56fa\u5b9a\u5927\u5c0f\u5b57\u7b26\u5206\u5757 (Fixed-Size <a href=\"https:\/\/www.kdjingpai.com\/en\/character-ai\/\">Character<\/a> Chunking)\uff1a\n<ul>\n<li>\u8fd9\u79cd\u65b9\u6cd5\u673a\u68b0\u5730\u5c06\u6587\u672c\u5206\u5272\u6210\u9884\u8bbe\u56fa\u5b9a\u957f\u5ea6\u7684\u5757\u3002 \u8fd9\u6837\u505a\u53ef\u80fd\u4f1a\u5728\u53e5\u5b50\u4e2d\u95f4\uff0c\u751a\u81f3\u8bcd\u8bed\u5185\u90e8\u7684\u5b57\u7b26\u4e4b\u95f4\u622a\u65ad\uff0c\u4e25\u91cd\u7834\u574f\u6587\u672c\u7684\u8bed\u4e49\u5b8c\u6574\u6027\u3002<\/li>\n<li>\u5b83\u5b8c\u5168\u5ffd\u7565\u4e86\u6587\u6863\u7684\u5185\u5728\u7ed3\u6784\uff0c\u4f8b\u5982\u6807\u9898\u3001\u5217\u8868\u7b49\uff0c\u5bfc\u81f4\u5206\u5757\u7ed3\u679c\u4e0e\u6587\u6863\u7684\u903b\u8f91\u7ed3\u6784\u8131\u8282\u3002<\/li>\n<li>\u4efb\u610f\u7684\u5206\u5272\u65b9\u5f0f\u8fd8\u53ef\u80fd\u5c06\u539f\u672c\u4e0d\u76f8\u5173\u7684\u4e3b\u9898\u5185\u5bb9\u6df7\u5408\u5728\u540c\u4e00\u4e2a\u6587\u672c\u5757\u4e2d\uff0c\u8fdb\u4e00\u6b65\u635f\u5bb3\u4e0a\u4e0b\u6587\u7684\u8fde\u8d2f\u6027\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u9012\u5f52\u6587\u672c\u5206\u5272 (Recursive Text Splitting)\uff1a\n<ul>\n<li>\u9012\u5f52\u6587\u672c\u5206\u5272\u4f9d\u8d56\u4e8e\u9884\u5b9a\u4e49\u7684\u5c42\u6b21\u5206\u9694\u7b26\uff0c\u4f8b\u5982\u6bb5\u843d\u3001\u53e5\u5b50\u3001\u5355\u8bcd\u7b49\u8fdb\u884c\u5206\u5272\u3002<\/li>\n<li>\u8fd9\u79cd\u65b9\u6cd5\u53ef\u80fd\u65e0\u6cd5\u6709\u6548\u5904\u7406\u590d\u6742\u7684\u6587\u6863\u7ed3\u6784\uff0c\u4f8b\u5982\u591a\u7ea7\u6807\u9898\u3001\u8868\u683c\u7b49\uff0c\u5bfc\u81f4\u7ed3\u6784\u4fe1\u606f\u4e22\u5931\u3002<\/li>\n<li>\u5b83\u4ecd\u7136\u53ef\u80fd\u5728\u6bb5\u843d\u6216\u9879\u76ee\u7b26\u53f7\u5217\u8868\u7b49\u8bed\u4e49\u5355\u5143\u7684\u4e2d\u95f4\u53d1\u751f\u622a\u65ad\uff0c\u5f71\u54cd\u8bed\u4e49\u5b8c\u6574\u6027\u3002<\/li>\n<li>\u6700\u5173\u952e\u7684\u662f\uff0c\u9012\u5f52\u6587\u672c\u5206\u5272\u540c\u6837\u7f3a\u4e4f\u5bf9\u6587\u672c\u8bed\u4e49\u7684\u6df1\u5165\u7406\u89e3\uff0c\u4ec5\u4ec5\u4f9d\u8d56\u4e8e\u8868\u9762\u7ed3\u6784\u8fdb\u884c\u5206\u5272\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u8bed\u4e49\u5206\u5757 (Semantic Chunking)\uff1a\n<ul>\n<li>\u8bed\u4e49\u5206\u5757\u5c1d\u8bd5\u6839\u636e\u53e5\u5b50\u5d4c\u5165\u5411\u91cf\u7684\u76f8\u4f3c\u5ea6\u8fdb\u884c\u5206\u7ec4\uff0c\u65e8\u5728\u521b\u5efa\u8bed\u4e49\u76f8\u5173\u7684\u5757\u3002<\/li>\n<li>\u7136\u800c\uff0c\u5982\u679c\u4e00\u4e2a\u6bb5\u843d\u5185\u90e8\u7684\u53e5\u5b50\u5728\u8bed\u4e49\u4e0a\u5b58\u5728\u8f83\u5927\u5dee\u5f02\uff0c\u8bed\u4e49\u5206\u5757\u53ef\u80fd\u4f1a\u9519\u8bef\u5730\u5c06\u8fd9\u4e9b\u53e5\u5b50\u5212\u5206\u5230\u4e0d\u540c\u7684\u5757\u4e2d\uff0c\u5bfc\u81f4\u6bb5\u843d\u5185\u90e8\u7684\u8fde\u8d2f\u6027\u53d7\u635f\u3002<\/li>\n<li>\u6b64\u5916\uff0c\u8bed\u4e49\u5206\u5757\u901a\u5e38\u9700\u8981\u8fdb\u884c\u5927\u91cf\u7684\u76f8\u4f3c\u5ea6\u8ba1\u7b97\uff0c\u5c24\u5176\u662f\u5728\u5904\u7406\u5927\u578b\u6587\u6863\u65f6\uff0c\u8ba1\u7b97\u6210\u672c\u4f1a\u663e\u8457\u589e\u52a0\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><strong>Agentic Chunking \u901a\u8fc7\u4ee5\u4e0b\u4f18\u52bf\u6709\u6548\u5730\u514b\u670d\u4e86\u4e0a\u8ff0\u4f20\u7edf\u65b9\u6cd5\u7684\u5c40\u9650\u6027\uff1a<\/strong><\/p>\n<ul>\n<li>\u8bed\u4e49\u8fde\u8d2f\u6027\uff1a Agentic Chunking \u80fd\u591f\u751f\u6210\u8bed\u4e49\u4e0a\u66f4\u6709\u610f\u4e49\u7684\u6587\u672c\u5757\uff0c\u4ece\u800c\u663e\u8457\u63d0\u9ad8\u68c0\u7d22\u76f8\u5173\u4fe1\u606f\u7684\u51c6\u786e\u6027\u3002<\/li>\n<li>\u4e0a\u4e0b\u6587\u4fdd\u7559\uff1a \u5b83\u80fd\u591f\u66f4\u597d\u5730\u4fdd\u6301\u6587\u672c\u5757\u5185\u90e8\u7684\u4e0a\u4e0b\u6587\u8fde\u8d2f\u6027\uff0c\u8fd9\u4f7f\u5f97 LLM \u80fd\u591f\u751f\u6210\u66f4\u51c6\u786e\u3001\u66f4\u7b26\u5408\u8bed\u5883\u7684\u54cd\u5e94\u3002<\/li>\n<li>\u7075\u6d3b\u6027\uff1a Agentic Chunking \u65b9\u6cd5\u5c55\u73b0\u51fa\u9ad8\u5ea6\u7684\u7075\u6d3b\u6027\uff0c\u80fd\u591f\u9002\u5e94\u4e0d\u540c\u957f\u5ea6\u3001\u4e0d\u540c\u7ed3\u6784\u548c\u4e0d\u540c\u5185\u5bb9\u7c7b\u578b\u7684\u6587\u6863\uff0c\u9002\u7528\u8303\u56f4\u66f4\u5e7f\u3002<\/li>\n<li>\u9c81\u68d2\u6027\uff1a Agentic Chunking \u5177\u5907\u5b8c\u5584\u7684\u9632\u62a4\u673a\u5236\u548c\u56de\u9000\u673a\u5236\uff0c\u5373\u4f7f\u5728\u6587\u6863\u7ed3\u6784\u5f02\u5e38\u590d\u6742\u6216 LLM \u6027\u80fd\u53d7\u9650\u7b49\u60c5\u51b5\u4e0b\uff0c\u4f9d\u7136\u80fd\u591f\u4fdd\u8bc1\u5206\u5757\u7684\u6709\u6548\u6027\u548c\u7a33\u5b9a\u6027\u3002<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2>Agentic Chunking \u7684\u5de5\u4f5c\u539f\u7406<\/h2>\n<p>Agentic Chunking \u7684\u5de5\u4f5c\u6d41\u7a0b\u4e3b\u8981\u5305\u62ec\u4ee5\u4e0b\u5173\u952e\u6b65\u9aa4\uff1a<\/p>\n<ul>\n<li>\u521b\u5efa\u5fae\u578b\u5757 (Mini-Chunk Creation)\uff1a\n<ul>\n<li>\u9996\u5148\uff0cAgentic Chunking \u91c7\u7528\u9012\u5f52\u6587\u672c\u5206\u5272\u6280\u672f\u5c06\u8f93\u5165\u6587\u6863\u521d\u6b65\u5206\u5272\u6210\u8f83\u5c0f\u7684\u5fae\u578b\u5757\u3002 \u4f8b\u5982\uff0c\u53ef\u4ee5\u5c06\u6bcf\u4e2a\u5fae\u578b\u5757\u7684\u5927\u5c0f\u63a7\u5236\u5728\u7ea6 300 \u4e2a\u5b57\u7b26\u5de6\u53f3\u3002<\/li>\n<li>\u5728\u5206\u5272\u8fc7\u7a0b\u4e2d\uff0cAgentic Chunking \u7279\u522b\u7684\u6ce8\u610f\u786e\u4fdd\u5fae\u578b\u5757\u4e0d\u4f1a\u5728\u53e5\u5b50\u7684\u4e2d\u95f4\u88ab\u622a\u65ad\uff0c\u4ee5\u7ef4\u62a4\u57fa\u672c\u7684\u8bed\u4e49\u5b8c\u6574\u6027\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u6807\u8bb0\u5fae\u578b\u5757 (Marking Mini-Chunks)\uff1a\n<ul>\n<li>\u63a5\u4e0b\u6765\uff0c\u4e3a\u6bcf\u4e2a\u5fae\u578b\u5757\u6dfb\u52a0\u72ec\u7279\u7684\u6807\u8bb0\u3002 \u8fd9\u79cd\u6807\u8bb0\u6709\u52a9\u4e8e LLM \u5728\u540e\u7eed\u5904\u7406\u4e2d\u8bc6\u522b\u5404\u4e2a\u5fae\u578b\u5757\u7684\u8fb9\u754c\u3002<\/li>\n<li>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0cLLM \u5728\u5904\u7406\u6587\u672c\u65f6\uff0c\u66f4\u591a\u7684\u662f\u57fa\u4e8e <a href=\"https:\/\/www.kdjingpai.com\/en\/tokenization\/\">token<\/a> \u800c\u975e\u7cbe\u786e\u5b57\u7b26\u6570\uff0c\u4f46\u5176\u64c5\u957f\u8bc6\u522b\u6587\u672c\u4e2d\u7684\u7ed3\u6784\u548c\u8bed\u4e49\u6a21\u5f0f\u3002 \u6807\u8bb0\u5fae\u578b\u5757\u53ef\u4ee5\u5e2e\u52a9 LLM \u8bc6\u522b\u5757\u7684\u8fb9\u754c\uff0c\u5373\u4f7f\u5b83\u4e0d\u80fd\u7cbe\u786e\u8ba1\u6570\u5b57\u7b26\u3002<\/li>\n<\/ul>\n<\/li>\n<li>LLM \u8f85\u52a9\u7684\u5757\u5206\u7ec4 (LLM-Assisted Chunk Grouping)\uff1a\n<ul>\n<li>\u5c06\u5e26\u6709\u6807\u8bb0\u7684\u6587\u6863\u4ee5\u53ca\u7279\u5b9a\u7684\u6307\u4ee4\u4e00\u540c\u63d0\u4f9b\u7ed9 LLM\u3002<\/li>\n<li>\u6b64\u65f6\uff0cLLM \u7684\u4efb\u52a1\u662f\u5bf9\u5fae\u578b\u5757\u5e8f\u5217\u8fdb\u884c\u6df1\u5165\u5206\u6790\uff0c\u5e76\u57fa\u4e8e\u8bed\u4e49\u7684\u5173\u8054\u6027\u5c06\u5b83\u4eec\u7ec4\u5408\u6210\u66f4\u5927\u3001\u8bed\u4e49\u66f4\u8fde\u8d2f\u7684\u6587\u672c\u5757\u3002<\/li>\n<li>\u5728\u5206\u7ec4\u8fc7\u7a0b\u4e2d\uff0c\u53ef\u4ee5\u6839\u636e\u5b9e\u9645\u9700\u6c42\u8bbe\u7f6e\u7ea6\u675f\u6761\u4ef6\uff0c\u4f8b\u5982\u6bcf\u4e2a\u5757\u6240\u5305\u542b\u7684\u6700\u5927\u5fae\u578b\u5757\u6570\u91cf\uff0c\u4ee5\u63a7\u5236\u5757\u7684\u5927\u5c0f\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u5757\u7ec4\u88c5 (Chunk Assembly)\uff1a\n<ul>\n<li>\u5c06 LLM \u9009\u5b9a\u7684\u5fae\u578b\u5757\u7ec4\u5408\u8d77\u6765\uff0c\u6700\u7ec8\u5f62\u6210 Agentic Chunking \u7684\u8f93\u51fa\u7ed3\u679c \u2014\u2014 \u6587\u672c\u5757\u3002<\/li>\n<li>\u4e3a\u4e86\u66f4\u597d\u5730\u7ba1\u7406\u548c\u5229\u7528\u8fd9\u4e9b\u6587\u672c\u5757\uff0c\u53ef\u4ee5\u4e3a\u6bcf\u4e2a\u5757\u6dfb\u52a0\u76f8\u5173\u7684\u5143\u6570\u636e\uff0c\u4f8b\u5982\u539f\u59cb\u6587\u6863\u7684\u6765\u6e90\u4fe1\u606f\u3001\u6587\u672c\u5757\u5728\u6587\u6863\u4e2d\u7684\u7d22\u5f15\u4f4d\u7f6e\u7b49\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u5757\u91cd\u53e0 (Chunk Overlap for Context Preservation)\uff1a<br \/>\n\u4e3a\u4e86\u786e\u4fdd\u5757\u4e0e\u5757\u4e4b\u95f4\u4e0a\u4e0b\u6587\u7684\u8fde\u8d2f\u6027\uff0c\u6700\u7ec8\u751f\u6210\u7684\u5757\u901a\u5e38\u4f1a\u4e0e\u524d\u540e\u7684\u5fae\u578b\u5757\u5b58\u5728\u4e00\u5b9a\u7a0b\u5ea6\u7684\u91cd\u53e0\u3002 \u8fd9\u79cd\u91cd\u53e0\u673a\u5236\u6709\u52a9\u4e8e LLM \u5728\u5904\u7406\u76f8\u90bb\u6587\u672c\u5757\u65f6\u66f4\u597d\u5730\u7406\u89e3\u4e0a\u4e0b\u6587\u4fe1\u606f\uff0c\u907f\u514d\u4fe1\u606f\u5272\u88c2\u3002<\/li>\n<li>\u9632\u62a4\u673a\u5236\u548c\u56de\u9000\u673a\u5236 (Guardrails and Fallback Mechanisms)\uff1a\n<ul>\n<li>\u5757\u5927\u5c0f\u9650\u5236\uff1a \u5f3a\u5236\u8bbe\u5b9a\u6700\u5927\u5757\u5927\u5c0f\uff0c\u786e\u4fdd\u751f\u6210\u7684\u6587\u672c\u5757\u59cb\u7ec8\u5728 LLM \u7684\u8f93\u5165\u957f\u5ea6\u9650\u5236\u4e4b\u5185\uff0c\u907f\u514d\u56e0\u8f93\u5165\u8fc7\u957f\u800c\u5bfc\u81f4\u7684\u95ee\u9898\u3002<\/li>\n<li>\u4e0a\u4e0b\u6587\u7a97\u53e3\u7ba1\u7406\uff1a \u5bf9\u4e8e\u957f\u5ea6\u8d85\u51fa LLM \u4e0a\u4e0b\u6587\u7a97\u53e3\u9650\u5236\u7684\u8d85\u957f\u6587\u6863\uff0cAgentic Chunking \u80fd\u591f\u5c06\u5176\u667a\u80fd\u5730\u5206\u5272\u6210\u591a\u4e2a\u53ef\u7ba1\u7406\u7684\u90e8\u5206\uff0c\u5206\u6279\u8fdb\u884c\u5904\u7406\uff0c\u4fdd\u8bc1\u5904\u7406\u6548\u7387\u548c\u6548\u679c\u3002<\/li>\n<li>\u9a8c\u8bc1\uff1a \u5728\u5b8c\u6210\u5206\u5757\u540e\uff0cAgentic Chunking \u8fd8\u4f1a\u8fdb\u884c\u9a8c\u8bc1\uff0c\u786e\u8ba4\u6240\u6709\u5fae\u578b\u5757\u90fd\u5df2\u88ab\u6b63\u786e\u5305\u542b\u5728\u6700\u7ec8\u7684\u6587\u672c\u5757\u4e2d\uff0c\u907f\u514d\u4fe1\u606f\u9057\u6f0f\u3002<\/li>\n<li>\u56de\u9000\u5230\u9012\u5f52\u5206\u5272\uff1a \u5f53 LLM \u5904\u7406\u5931\u8d25\u6216\u56e0\u5404\u79cd\u539f\u56e0\u65e0\u6cd5\u4f7f\u7528\u65f6\uff0cAgentic Chunking \u80fd\u591f\u4f18\u96c5\u5730\u56de\u9000\u5230\u4f20\u7edf\u7684\u9012\u5f52\u6587\u672c\u5206\u5272\u65b9\u6cd5\uff0c\u4fdd\u8bc1\u5728\u4efb\u4f55\u60c5\u51b5\u4e0b\u90fd\u80fd\u63d0\u4f9b\u57fa\u672c\u7684\u5206\u5757\u529f\u80fd\u3002<\/li>\n<li>\u5e76\u884c\u5904\u7406\uff1a Agentic Chunking \u652f\u6301\u5e76\u884c\u5904\u7406\u6a21\u5f0f\uff0c\u901a\u8fc7\u5229\u7528\u591a\u7ebf\u7a0b\u7b49\u6280\u672f\uff0c\u53ef\u4ee5\u663e\u8457\u52a0\u5feb\u6587\u672c\u5206\u5757\u7684\u5904\u7406\u901f\u5ea6\uff0c\u5c24\u5176\u662f\u5728\u5904\u7406\u5927\u578b\u6587\u6863\u65f6\u4f18\u52bf\u66f4\u52a0\u660e\u663e\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2>Agentic Chunking \u7684\u5e94\u7528<\/h2>\n<p>Agentic Chunking \u6280\u672f\u5728\u591a\u4e2a\u9886\u57df\u5c55\u73b0\u51fa\u5f3a\u5927\u7684\u5e94\u7528\u6f5c\u529b\uff1a<\/p>\n<h3>1. \u589e\u5f3a\u5b66\u4e60 (Enhanced Learning)<\/h3>\n<ul>\n<li>\u5b9a\u4e49\u4e0e\u89e3\u91ca\uff1a Agentic RAG \u901a\u8fc7\u5c06\u590d\u6742\u4fe1\u606f\u5206\u89e3\u4e3a\u6613\u4e8e\u7ba1\u7406\u7684\u5355\u5143\uff0c\u4f18\u5316\u5b66\u4e60\u8fc7\u7a0b\uff0c\u4ece\u800c\u63d0\u5347\u5b66\u4e60\u8005\u7684\u7406\u89e3\u548c\u8bb0\u5fc6\u6548\u7387\u3002 \u8fd9\u79cd\u65b9\u6cd5\u7279\u522b\u5173\u6ce8\u6587\u672c\u4e2d \u201cAgentic\u201d \u5143\u7d20\uff08\u5982\u4eba\u7269\u3001\u7ec4\u7ec7\uff09\uff0c\u901a\u8fc7\u56f4\u7ed5\u8fd9\u4e9b\u6838\u5fc3\u8981\u7d20\u7ec4\u7ec7\u4fe1\u606f\uff0cAgentic RAG \u80fd\u591f\u521b\u5efa\u66f4\u8fde\u8d2f\u3001\u66f4\u6613\u4e8e\u7406\u89e3\u7684\u5b66\u4e60\u5185\u5bb9\u3002<\/li>\n<li>\u5728\u5b66\u4e60\u8fc7\u7a0b\u4e2d\u7684\u4f5c\u7528\uff1a Agentic RAG \u6846\u67b6\u5728\u73b0\u4ee3\u6559\u80b2\u65b9\u6cd5\u4e2d\u626e\u6f14\u7740\u65e5\u76ca\u91cd\u8981\u7684\u89d2\u8272\u3002 \u901a\u8fc7\u4f7f\u7528\u57fa\u4e8e RAG \u6280\u672f\u7684\u667a\u80fd Agent\uff0c\u6559\u80b2\u5de5\u4f5c\u8005\u80fd\u591f\u66f4\u7075\u6d3b\u5730\u5b9a\u5236\u6559\u5b66\u5185\u5bb9\uff0c\u7cbe\u51c6\u6ee1\u8db3\u4e0d\u540c\u5b66\u4e60\u8005\u7684\u4e2a\u6027\u5316\u9700\u6c42\u3002<\/li>\n<li>\u5728\u6559\u80b2\u4e2d\u7684\u5e94\u7528\uff1a \u8d8a\u6765\u8d8a\u591a\u7684\u6559\u80b2\u673a\u6784\u5f00\u59cb\u5229\u7528 Agentic RAG \u6280\u672f\u6765\u9769\u65b0\u6559\u5b66\u7b56\u7565\uff0c\u5f00\u53d1\u66f4\u5177\u5438\u5f15\u529b\u548c\u4e2a\u6027\u5316\u7684\u8bfe\u7a0b\u4f53\u7cfb\uff0c\u63d0\u5347\u6559\u5b66\u6548\u679c\u3002<\/li>\n<li>\u5bf9\u5b66\u751f\u53c2\u4e0e\u5ea6\u7684\u5f71\u54cd\uff1a Agentic Chunking \u901a\u8fc7\u4ee5\u7ed3\u6784\u6e05\u6670\u3001\u6613\u4e8e\u7406\u89e3\u7684\u6587\u672c\u5757\u5448\u73b0\u4fe1\u606f\uff0c\u80fd\u591f\u6709\u6548\u63d0\u9ad8\u5b66\u751f\u7684\u5b66\u4e60\u4e13\u6ce8\u5ea6\u548c\u79ef\u6781\u6027\uff0c\u6fc0\u53d1\u5b66\u4e60\u5174\u8da3\u3002<\/li>\n<li>\u6709\u6548\u6a21\u5f0f\u8bc6\u522b\uff1a \u6df1\u5165\u5206\u6790\u548c\u8bc6\u522b Agentic RAG \u7cfb\u7edf\u5728\u6559\u80b2\u5e94\u7528\u4e2d\u7684\u6709\u6548\u6a21\u5f0f\uff0c\u5bf9\u4e8e\u6301\u7eed\u4f18\u5316\u6559\u80b2\u6210\u679c\u81f3\u5173\u91cd\u8981\u3002<\/li>\n<\/ul>\n<h3>2. \u63d0\u9ad8\u4fe1\u606f\u4fdd\u7559 (Improved Information Retention)<\/h3>\n<ul>\n<li>\u8ba4\u77e5\u8fc7\u7a0b\uff1a Agentic RAG \u6280\u672f\u5229\u7528\u4eba\u7c7b\u8ba4\u77e5\u8fc7\u7a0b\u4e2d\u7ec4\u7ec7\u548c\u5173\u8054\u4fe1\u606f\u7684\u81ea\u7136\u503e\u5411\uff0c\u6765\u589e\u5f3a\u4fe1\u606f\u4fdd\u7559\u6548\u679c\u3002 \u5927\u8111\u66f4\u503e\u5411\u4e8e\u5c06\u6570\u636e\u7ec4\u7ec7\u6210\u53ef\u7ba1\u7406\u7684\u5355\u5143\uff0c\u8fd9\u5927\u5927\u7b80\u5316\u4e86\u4fe1\u606f\u68c0\u7d22\u548c\u56de\u5fc6\u7684\u8fc7\u7a0b\u3002<\/li>\n<li>\u63d0\u9ad8\u8bb0\u5fc6\u56de\u5fc6\uff1a \u901a\u8fc7\u805a\u7126\u4e8e\u6587\u672c\u4e2d\u53c2\u4e0e\u7684 \u201cAgentic\u201d \u5143\u7d20 (\u5982\u4e2a\u4eba\u6216\u7ec4\u7ec7\u673a\u6784)\uff0c\u5b66\u4e60\u8005\u80fd\u591f\u66f4\u5bb9\u6613\u5730\u5c06\u5b66\u4e60\u6750\u6599\u4e0e\u5df2\u6709\u7684\u77e5\u8bc6\u4f53\u7cfb\u5efa\u7acb\u8054\u7cfb\uff0c\u4ece\u800c\u66f4\u6709\u6548\u5730\u56de\u5fc6\u548c\u5de9\u56fa\u6240\u5b66\u4fe1\u606f\u3002<\/li>\n<li>\u957f\u671f\u4fdd\u7559\u7b56\u7565\uff1a \u5c06 Agentic RAG \u6280\u672f\u878d\u5165\u65e5\u5e38\u5b66\u4e60\u5b9e\u8df5\uff0c\u6709\u52a9\u4e8e\u6784\u5efa\u6301\u7eed\u5b66\u4e60\u548c\u77e5\u8bc6\u79ef\u7d2f\u7684\u6709\u6548\u7b56\u7565\uff0c\u5b9e\u73b0\u77e5\u8bc6\u7684\u957f\u671f\u4fdd\u7559\u548c\u53d1\u5c55\u3002<\/li>\n<li>\u5b9e\u9645\u5e94\u7528\uff1a \u5728\u6559\u80b2\u548c\u5546\u4e1a\u57f9\u8bad\u7b49\u9886\u57df\uff0c\u53ef\u4ee5\u6839\u636e\u7279\u5b9a\u53d7\u4f17\u7684\u9700\u6c42\uff0c\u5b9a\u5236 Agentic RAG \u7684\u5185\u5bb9\u5448\u73b0\u65b9\u5f0f\uff0c\u4ee5\u8fbe\u5230\u6700\u4f73\u7684\u4fe1\u606f\u4f20\u9012\u548c\u5438\u6536\u6548\u679c\u3002<\/li>\n<\/ul>\n<h3>3. \u9ad8\u6548\u51b3\u7b56 (Efficient Decision-Making)<\/h3>\n<ul>\n<li>\u5546\u4e1a\u5e94\u7528\uff1a \u5728\u5546\u4e1a\u9886\u57df\uff0cAgentic RAG \u7cfb\u7edf\u901a\u8fc7\u63d0\u4f9b\u7ed3\u6784\u5316\u7684\u51b3\u7b56\u6846\u67b6\uff0c\u6b63\u5728\u9769\u65b0\u5546\u4e1a\u9886\u8896\u7684\u51b3\u7b56\u6a21\u5f0f\u3002 \u5b83\u63d0\u4f9b\u7684\u6846\u67b6\u80fd\u591f\u663e\u8457\u589e\u5f3a\u6218\u7565\u89c4\u5212\u7684\u79d1\u5b66\u6027\u548c\u8fd0\u8425\u6548\u7387\u3002<\/li>\n<li>\u51b3\u7b56\u6846\u67b6\uff1a Agentic RAG \u80fd\u591f\u5c06\u590d\u6742\u7684\u5546\u4e1a\u6570\u636e\u548c\u4fe1\u606f\u5206\u89e3\u4e3a\u66f4\u5c0f\u3001\u66f4\u6613\u4e8e\u7ba1\u7406\u7684\u90e8\u5206\uff0c\u5e2e\u52a9\u4f01\u4e1a\u51b3\u7b56\u8005\u805a\u7126\u4e8e\u5173\u952e\u8981\u7d20\uff0c\u907f\u514d\u5728\u6d77\u91cf\u4fe1\u606f\u4e2d\u8ff7\u5931\u65b9\u5411\uff0c\u63d0\u5347\u51b3\u7b56\u6548\u7387\u3002<\/li>\n<li>\u5bf9\u5546\u4e1a\u9886\u8896\u7684\u597d\u5904\uff1a Agentic RAG \u5e2e\u52a9\u5546\u4e1a\u9886\u8896\u66f4\u6df1\u5165\u5730\u7406\u89e3\u5e02\u573a\u8d8b\u52bf\u548c\u5ba2\u6237\u9700\u6c42\uff0c\u4ece\u800c\u4e3a\u4f01\u4e1a\u6218\u7565\u8c03\u6574\u548c\u5e02\u573a\u5e94\u5bf9\u63d0\u4f9b\u66f4\u7cbe\u51c6\u7684\u51b3\u7b56\u652f\u6301\u3002<\/li>\n<li>\u5b9e\u65bd\u6b65\u9aa4\uff1a\n<ul>\n<li>\u8bc6\u522b Agentic RAG \u6280\u672f\u80fd\u591f\u4e3a\u4f01\u4e1a\u5e26\u6765\u4ef7\u503c\u63d0\u5347\u7684\u5173\u952e\u4e1a\u52a1\u9886\u57df\u3002<\/li>\n<li>\u5236\u5b9a\u4e0e\u7ec4\u7ec7\u6218\u7565\u76ee\u6807\u9ad8\u5ea6\u5951\u5408\u7684 Agentic RAG \u7cfb\u7edf\u5b9a\u5236\u5316\u5b9e\u65bd\u65b9\u6848\u3002<\/li>\n<li>\u5bf9\u5458\u5de5\u8fdb\u884c Agentic RAG \u7cfb\u7edf\u5e94\u7528\u57f9\u8bad\uff0c\u786e\u4fdd\u7cfb\u7edf\u80fd\u591f\u6709\u6548\u843d\u5730\u548c\u5e94\u7528\u3002<\/li>\n<li>\u6301\u7eed\u76d1\u63a7 Agentic RAG \u7cfb\u7edf\u7684\u8fd0\u884c\u6548\u679c\uff0c\u5e76\u6839\u636e\u5b9e\u9645\u5e94\u7528\u60c5\u51b5\u53ca\u65f6\u8c03\u6574\u4f18\u5316\u7b56\u7565\uff0c\u786e\u4fdd\u7cfb\u7edf\u6027\u80fd\u6700\u5927\u5316\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2>Agentic Chunking \u7684\u4f18\u52bf<\/h2>\n<ul>\n<li>\u8bed\u4e49\u8fde\u8d2f\u6027\uff1a Agentic Chunking \u751f\u6210\u8bed\u4e49\u4e0a\u66f4\u6709\u610f\u4e49\u7684\u6587\u672c\u5757\uff0c\u663e\u8457\u63d0\u5347\u68c0\u7d22\u4fe1\u606f\u7684\u51c6\u786e\u6027\u3002<\/li>\n<li>\u4e0a\u4e0b\u6587\u4fdd\u7559\uff1a Agentic Chunking \u80fd\u591f\u6709\u6548\u4fdd\u6301\u6587\u672c\u5757\u5185\u90e8\u7684\u4e0a\u4e0b\u6587\u8fde\u8d2f\uff0c\u4f7f LLM \u53ef\u4ee5\u751f\u6210\u66f4\u51c6\u786e\u3001\u66f4\u7b26\u5408\u4e0a\u4e0b\u6587\u8bed\u5883\u7684\u54cd\u5e94\u3002<\/li>\n<li>\u7075\u6d3b\u6027\uff1a Agentic Chunking \u5c55\u73b0\u51fa\u4f18\u79c0\u7684\u7075\u6d3b\u6027\uff0c\u53ef\u4ee5\u7075\u6d3b\u9002\u5e94\u4e0d\u540c\u957f\u5ea6\u3001\u7ed3\u6784\u548c\u5185\u5bb9\u7c7b\u578b\u7684\u6587\u6863\u3002<\/li>\n<li>\u9c81\u68d2\u6027\uff1a Agentic Chunking \u5185\u7f6e\u9632\u62a4\u673a\u5236\u548c\u56de\u9000\u673a\u5236\uff0c\u5373\u4f7f\u5728\u6587\u6863\u7ed3\u6784\u5f02\u5e38\u6216 LLM \u6027\u80fd\u53d7\u9650\u7684\u60c5\u51b5\u4e0b\uff0c\u4f9d\u7136\u80fd\u4fdd\u8bc1\u7cfb\u7edf\u7a33\u5b9a\u8fd0\u884c\u3002<\/li>\n<li>\u53ef\u9002\u5e94\u6027: Agentic Chunking \u53ef\u4ee5\u4e0e\u4e0d\u540c\u7684 LLM \u65e0\u7f1d\u96c6\u6210\uff0c\u5e76\u652f\u6301\u6839\u636e\u5177\u4f53\u5e94\u7528\u9700\u6c42\u8fdb\u884c\u5fae\u8c03\u4f18\u5316\u3002<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2>Agentic Chunking \u7684\u5b9e\u9645\u6548\u679c<\/h2>\n<ul>\n<li>\u9519\u8bef\u5047\u8bbe\u51cf\u5c11 92%\uff1a \u4f20\u7edf\u5206\u5757\u65b9\u6cd5\u7684\u4e0d\u8db3\u4e4b\u5904\u5728\u4e8e\uff0c\u4e0d\u7cbe\u786e\u7684\u5206\u5757\u53ef\u80fd\u5bfc\u81f4 AI \u7cfb\u7edf\u4ea7\u751f\u9519\u8bef\u7684\u5047\u8bbe\u3002 Agentic Chunking \u6280\u672f\u6210\u529f\u5c06\u6b64\u7c7b\u9519\u8bef\u51cf\u5c11\u4e86\u60ca\u4eba\u7684 92%\u3002<\/li>\n<li>\u7b54\u6848\u5b8c\u6574\u6027\u63d0\u5347\uff1a Agentic Chunking \u663e\u8457\u63d0\u5347\u4e86\u7b54\u6848\u7684\u5b8c\u6574\u6027\uff0c\u4e3a\u7528\u6237\u63d0\u4f9b\u66f4\u5168\u9762\u3001\u66f4\u7cbe\u51c6\u7684\u7b54\u590d\uff0c\u7528\u6237\u4f53\u9a8c\u5f97\u5230\u5927\u5e45\u63d0\u5347\u3002<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2>Agentic Chunking \u7684\u5b9e\u73b0 (Python \u793a\u4f8b)<\/h2>\n<p>\u672c\u8282\u5c06\u63d0\u4f9b\u4e00\u4e2a\u57fa\u4e8e Langchain \u6846\u67b6\u7684 Agentic Chunking Python \u4ee3\u7801\u5b9e\u73b0\u793a\u4f8b\uff0c\u5e76\u5bf9\u4ee3\u7801\u8fdb\u884c\u9010\u6b65\u8be6\u7ec6\u8bb2\u89e3\uff0c\u5e2e\u52a9\u8bfb\u8005\u5feb\u901f\u4e0a\u624b\u5b9e\u8df5\u3002<\/p>\n<p>\u524d\u63d0\u6761\u4ef6\uff1a<\/p>\n<ul>\n<li>\u786e\u4fdd\u5df2\u5b89\u88c5 Langchain \u548c OpenAI Python \u5e93\uff1a<code>pip install langchain openai<\/code><\/li>\n<li>\u914d\u7f6e OpenAI API \u5bc6\u94a5\u3002<\/li>\n<\/ul>\n<p>\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<pre><code>from langchain_core.prompts import ChatPromptTemplate\r\nfrom langchain_openai import ChatOpenAI\r\nfrom langchain_core.pydantic_v1 import BaseModel, Field\r\nfrom langchain import hub\r\n# 1. \u6587\u672c\u547d\u9898\u5316 (Propositioning)\r\n# \u793a\u4f8b\u6587\u672c\r\ntext = \"\"\"\r\nOn July 20, 1969, astronaut Neil Armstrong walked on the moon.\r\nHe was leading NASA's Apollo 11 mission.\r\nArmstrong famously said, \"That's one small step for man, one giant leap for mankind\" as he stepped onto the lunar surface.\r\nLater, he planted the American flag.\r\nThe mission was a success.\r\n\"\"\"\r\n# \u4ece Langchain hub \u83b7\u53d6\u547d\u9898\u5316\u63d0\u793a\u6a21\u677f\r\nobj = hub.pull(\"wfh\/proposal-indexing\")\r\n# \u4f7f\u7528 GPT-4o \u6a21\u578b\r\nllm = ChatOpenAI(model=\"gpt-4o\")\r\n# \u5b9a\u4e49 Pydantic \u6a21\u578b\u4ee5\u63d0\u53d6\u53e5\u5b50\r\nclass Sentences(BaseModel):\r\nsentences: list[str]\r\n# \u521b\u5efa\u7ed3\u6784\u5316\u8f93\u51fa\u7684 LLM\r\nextraction_llm = llm.with_structured_output(Sentences)\r\n# \u521b\u5efa\u53e5\u5b50\u63d0\u53d6\u94fe\r\nextraction_chain = obj | extraction_llm\r\n# \u5c06\u6587\u672c\u5206\u5272\u6210\u6bb5\u843d (\u4e3a\u7b80\u5316\u793a\u4f8b\uff0c\u672c\u6587\u5047\u8bbe\u8f93\u5165\u6587\u672c\u4ec5\u5305\u542b\u4e00\u4e2a\u6bb5\u843d\uff0c\u5b9e\u9645\u5e94\u7528\u4e2d\u53ef\u5904\u7406\u591a\u6bb5\u843d\u6587\u672c\u3002)\r\nparagraphs = [text]\r\npropositions = []\r\nfor p in paragraphs:\r\nsentences = extraction_chain.invoke(p)\r\npropositions.extend(sentences.sentences)\r\nprint(\"Propositions:\", propositions)\r\n# 2. \u521b\u5efa LLM Agent\r\n# \u5b9a\u4e49\u5757\u5143\u6570\u636e\u6a21\u578b\r\nclass ChunkMeta(BaseModel):\r\ntitle: str = Field(description=\"The title of the chunk.\")\r\nsummary: str = Field(description=\"The summary of the chunk.\")\r\n# \u7528\u4e8e\u751f\u6210\u6458\u8981\u548c\u6807\u9898\u7684 LLM (\u8fd9\u91cc\u53ef\u4ee5\u4f7f\u7528\u6e29\u5ea6\u8f83\u4f4e\u7684\u6a21\u578b)\r\nsummary_llm = ChatOpenAI(temperature=0)\r\n# \u7528\u4e8e\u5757\u5206\u914d\u7684 LLM\r\nallocation_llm = ChatOpenAI(temperature=0)\r\n# \u5b58\u50a8\u5df2\u521b\u5efa\u7684\u6587\u672c\u5757\u7684\u5b57\u5178\r\nchunks = {}\r\n# 3. \u521b\u5efa\u65b0\u5757\u7684\u51fd\u6570\r\ndef create_new_chunk(chunk_id, proposition):\r\nsummary_prompt_template = ChatPromptTemplate.from_messages(\r\n[\r\n(\r\n\"system\",\r\n\"Generate a new summary and a title based on the propositions.\",\r\n),\r\n(\r\n\"user\",\r\n\"propositions:{propositions}\",\r\n),\r\n]\r\n)\r\nsummary_chain = summary_prompt_template | summary_llm\r\nchunk_meta = summary_chain.invoke(\r\n{\r\n\"propositions\": [proposition],\r\n}\r\n)\r\nchunks[chunk_id] = {\r\n\"chunk_id\": chunk_id,  # \u6dfb\u52a0 chunk_id\r\n\"summary\": chunk_meta.summary,\r\n\"title\": chunk_meta.title,\r\n\"propositions\": [proposition],\r\n}\r\nreturn chunk_id  # \u8fd4\u56de chunk_id\r\n# 4. \u5c06\u547d\u9898\u6dfb\u52a0\u5230\u73b0\u6709\u5757\u7684\u51fd\u6570\r\ndef add_proposition(chunk_id, proposition):\r\nsummary_prompt_template = ChatPromptTemplate.from_messages(\r\n[\r\n(\r\n\"system\",\r\n\"If the current_summary and title is still valid for the propositions, return them.\"\r\n\"If not, generate a new summary and a title based on the propositions.\",\r\n),\r\n(\r\n\"user\",\r\n\"current_summary:{current_summary}\\ncurrent_title:{current_title}\\npropositions:{propositions}\",\r\n),\r\n]\r\n)\r\nsummary_chain = summary_prompt_template | summary_llm\r\nchunk = chunks[chunk_id]\r\ncurrent_summary = chunk[\"summary\"]\r\ncurrent_title = chunk[\"title\"]\r\ncurrent_propositions = chunk[\"propositions\"]\r\nall_propositions = current_propositions + [proposition]\r\nchunk_meta = summary_chain.invoke(\r\n{\r\n\"current_summary\": current_summary,\r\n\"current_title\": current_title,\r\n\"propositions\": all_propositions,\r\n}\r\n)\r\nchunk[\"summary\"] = chunk_meta.summary\r\nchunk[\"title\"] = chunk_meta.title\r\nchunk[\"propositions\"] = all_propositions\r\n# 5. Agent \u7684\u6838\u5fc3\u903b\u8f91\r\ndef find_chunk_and_push_proposition(proposition):\r\nclass ChunkID(BaseModel):\r\nchunk_id: int = Field(description=\"The chunk id.\")\r\nallocation_prompt = ChatPromptTemplate.from_messages(\r\n[\r\n(\r\n\"system\",\r\n\"You have the chunk ids and the summaries. \"\r\n\"Find the chunk that best matches the proposition. \"\r\n\"If no chunk matches, return a new chunk id. \"\r\n\"Return only the chunk id.\",\r\n),\r\n(\r\n\"user\",\r\n\"proposition:{proposition}\\nchunks_summaries:{chunks_summaries}\",\r\n),\r\n]\r\n)\r\nallocation_chain = allocation_prompt | allocation_llm.with_structured_output(ChunkID)\r\nchunks_summaries = {\r\nchunk_id: chunk[\"summary\"] for chunk_id, chunk in chunks.items()\r\n}\r\n# \u521d\u59cbchunks\u53ef\u80fd\u4e3a\u7a7a\uff0c\u5bfc\u81f4allocation_chain.invoke\u62a5\u9519\r\nif not chunks_summaries:\r\n# \u5982\u679c\u6ca1\u6709\u5df2\u5b58\u5728\u7684\u5757\uff0c\u76f4\u63a5\u521b\u5efa\u65b0\u5757\r\nnext_chunk_id = 1\r\ncreate_new_chunk(next_chunk_id, proposition)\r\nreturn\r\nbest_chunk_id = allocation_chain.invoke(\r\n{\"proposition\": proposition, \"chunks_summaries\": chunks_summaries}\r\n).chunk_id\r\nif best_chunk_id not in chunks:\r\n# \u5982\u679c\u8fd4\u56de\u7684 chunk_id \u4e0d\u5b58\u5728\uff0c\u521b\u5efa\u65b0\u5757\r\nnext_chunk_id = max(chunks.keys(), default=0) + 1 if chunks else 1\r\ncreate_new_chunk(next_chunk_id, proposition)\r\nelse:\r\nadd_proposition(best_chunk_id, proposition)\r\n# \u904d\u5386\u547d\u9898\u5217\u8868\uff0c\u8fdb\u884c\u5206\u5757\r\nfor i, proposition in enumerate(propositions):\r\nfind_chunk_and_push_proposition(proposition)\r\n# \u6253\u5370\u6700\u7ec8\u7684\u5757\r\nprint(\"\\nFinal Chunks:\")\r\nfor chunk_id, chunk in chunks.items():\r\nprint(f\"Chunk {chunk_id}:\")\r\nprint(f\"  Title: {chunk['title']}\")\r\nprint(f\"  Summary: {chunk['summary']}\")\r\nprint(f\"  Propositions: {chunk['propositions']}\")\r\nprint(\"-\" * 20)\r\n<\/code><\/pre>\n<p>\u4ee3\u7801\u89e3\u91ca\uff1a<\/p>\n<ul>\n<li>\u547d\u9898\u5316\uff1a\n<ul>\n<li>\u4ee3\u7801\u793a\u4f8b\u9996\u5148\u4f7f\u7528 hub.pull(&#8220;wfh\/proposal-indexing&#8221;) \u4ece Langchain Hub \u52a0\u8f7d\u9884\u8bbe\u7684\u547d\u9898\u5316\u63d0\u793a\u6a21\u677f\u3002<\/li>\n<li>\u63a5\u7740\uff0c\u4f7f\u7528 ChatOpenAI(model=&#8221;gpt-4o&#8221;) \u521d\u59cb\u5316 LLM \u5b9e\u4f8b\uff0c\u9009\u7528 GPT-4o \u6a21\u578b\u4ee5\u83b7\u5f97\u66f4\u4f18\u7684\u6027\u80fd\u3002<\/li>\n<li>\u5b9a\u4e49 Sentences Pydantic \u6a21\u578b\uff0c\u7528\u4e8e\u7ed3\u6784\u5316\u89e3\u6790 LLM \u8f93\u51fa\u7684\u53e5\u5b50\u5217\u8868\u3002<\/li>\n<li>\u6784\u5efa\u63d0\u793a\u6a21\u677f\u4e0e LLM \u7684\u8fde\u63a5\u94fe extraction_chain\u3002<\/li>\n<li>\u4e3a\u7b80\u5316\u793a\u4f8b\uff0c\u672c\u6587\u5047\u8bbe\u8f93\u5165\u6587\u672c\u4ec5\u5305\u542b\u4e00\u4e2a\u6bb5\u843d\uff0c\u5b9e\u9645\u5e94\u7528\u4e2d\u53ef\u5904\u7406\u591a\u6bb5\u843d\u6587\u672c\u3002 \u4ee3\u7801\u5c06\u793a\u4f8b\u6587\u672c\u5206\u5272\u6210\u6bb5\u843d\u5217\u8868\u3002<\/li>\n<li>\u5faa\u73af\u904d\u5386\u6bb5\u843d\uff0c\u5e76\u4f7f\u7528 extraction_chain \u5c06\u6bb5\u843d\u8f6c\u5316\u4e3a\u547d\u9898\u5217\u8868\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u521b\u5efa LLM Agent\uff1a\n<ul>\n<li>\u5b9a\u4e49 ChunkMeta Pydantic \u6a21\u578b\uff0c\u5b9a\u4e49\u5757\u5143\u6570\u636e\u7ed3\u6784\uff08\u6807\u9898\u548c\u6458\u8981\uff09\u3002<\/li>\n<li>\u521b\u5efa summary_llm \u548c allocation_llm \u4e24\u4e2a LLM \u5b9e\u4f8b\u3002 summary_llm \u7528\u4e8e\u751f\u6210\u6587\u672c\u5757\u7684\u6458\u8981\u548c\u6807\u9898\uff0c\u800c allocation_llm \u5219\u8d1f\u8d23\u5224\u65ad\u547d\u9898\u5e94\u5f52\u5165\u54ea\u4e2a\u5df2\u6709\u7684\u5757\u6216\u521b\u5efa\u65b0\u5757\u3002<\/li>\n<li>\u521d\u59cb\u5316 chunks \u5b57\u5178\uff0c\u7528\u4e8e\u5b58\u50a8\u5df2\u521b\u5efa\u7684\u6587\u672c\u5757\u3002<\/li>\n<\/ul>\n<\/li>\n<li>create_new_chunk \u51fd\u6570\uff1a\n<ul>\n<li>\u51fd\u6570\u63a5\u53d7 chunk_id \u548c proposition \u4f5c\u4e3a\u8f93\u5165\u53c2\u6570\u3002<\/li>\n<li>\u57fa\u4e8e\u547d\u9898\uff0c\u5229\u7528 summary_prompt_template \u548c summary_llm \u751f\u6210\u5757\u7684\u6807\u9898\u548c\u6458\u8981\u3002<\/li>\n<li>\u5e76\u5c06\u65b0\u5757\u5b58\u5165 chunks \u5b57\u5178\u3002<\/li>\n<\/ul>\n<\/li>\n<li>add_proposition \u51fd\u6570\uff1a\n<ul>\n<li>\u51fd\u6570\u540c\u6837\u63a5\u6536 chunk_id \u548c proposition \u4f5c\u4e3a\u8f93\u5165\u3002<\/li>\n<li>\u4ece chunks \u5b57\u5178\u68c0\u7d22\u73b0\u6709\u5757\u4fe1\u606f\u3002<\/li>\n<li>\u66f4\u65b0\u5f53\u524d\u5757\u7684\u547d\u9898\u5217\u8868\u3002<\/li>\n<li>\u91cd\u65b0\u8bc4\u4f30\u5e76\u66f4\u65b0\u5757\u7684\u6807\u9898\u548c\u6458\u8981\u3002<\/li>\n<li>\u5e76\u66f4\u65b0 chunks \u5b57\u5178\u4e2d\u5bf9\u5e94\u5757\u7684\u5143\u6570\u636e\u3002<\/li>\n<\/ul>\n<\/li>\n<li>find_chunk_and_push_proposition \u51fd\u6570 (Agent \u6838\u5fc3\u903b\u8f91)\uff1a\n<ul>\n<li>\u5b9a\u4e49 ChunkID Pydantic \u6a21\u578b\uff0c\u7528\u4e8e\u89e3\u6790 LLM \u8f93\u51fa\u7684\u5757 ID\u3002<\/li>\n<li>\u521b\u5efa allocation_prompt\uff0c\u6307\u793a LLM \u5bfb\u627e\u4e0e\u5f53\u524d\u547d\u9898\u6700\u5339\u914d\u7684\u73b0\u6709\u5757\uff0c\u6216\u8fd4\u56de\u65b0\u7684\u5757 ID\u3002<\/li>\n<li>\u6784\u5efa allocation_chain\uff0c\u8fde\u63a5\u63d0\u793a\u6a21\u677f\u548c allocation_llm\u3002<\/li>\n<li>\u6784\u5efa chunks_summaries \u5b57\u5178\uff0c\u5176\u4e2d\u5b58\u50a8\u4e86\u73b0\u6709\u5757\u7684 ID \u548c\u6458\u8981\u4fe1\u606f\u3002<\/li>\n<li>\u82e5 chunks \u5b57\u5178\u4e3a\u7a7a\uff08\u5373\u5c1a\u65e0\u4efb\u4f55\u6587\u672c\u5757\uff09\uff0c\u5219\u76f4\u63a5\u521b\u5efa\u65b0\u5757\u3002<\/li>\n<li>\u4f7f\u7528 allocation_chain \u8c03\u7528 LLM\uff0c\u4ee5\u83b7\u53d6\u6700\u4f73\u5339\u914d\u5757\u7684 ID\u3002<\/li>\n<li>\u5982\u679c LLM \u8fd4\u56de\u7684 chunk_id \u4e0d\u5728 chunks \u5b57\u5178\u4e2d\uff0c\u8868\u660e\u9700\u8981\u521b\u5efa\u65b0\u7684\u6587\u672c\u5757\uff0c\u6b64\u65f6\u8c03\u7528 create_new_chunk \u51fd\u6570\u3002<\/li>\n<li>\u5982\u679c\u8fd4\u56de\u7684 chunk_id \u5df2\u5b58\u5728\u4e8e chunks \u5b57\u5178\u4e2d\uff0c\u8868\u660e\u5e94\u5c06\u5f53\u524d\u547d\u9898\u6dfb\u52a0\u5230\u73b0\u6709\u6587\u672c\u5757\u4e2d\uff0c\u8c03\u7528 add_proposition \u51fd\u6570\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u4e3b\u5faa\u73af\uff1a\n<ul>\n<li>\u5faa\u73af\u904d\u5386\u547d\u9898\u5217\u8868\u3002<\/li>\n<li>\u9488\u5bf9\u6bcf\u4e2a\u547d\u9898\uff0c\u8c03\u7528 find_chunk_and_push_proposition \u51fd\u6570\uff0c\u5e76\u5c06\u547d\u9898\u5206\u914d\u81f3\u76f8\u5e94\u7684\u6587\u672c\u5757\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u8f93\u51fa\u7ed3\u679c\uff1a\n<ul>\n<li>\u6700\u7ec8\u8f93\u51fa\u751f\u6210\u7684\u6587\u672c\u5757\uff0c\u5305\u62ec\u6807\u9898\u3001\u6458\u8981\u53ca\u5305\u542b\u7684\u547d\u9898\u5217\u8868\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u4ee3\u7801\u6539\u8fdb\u8bf4\u660e\uff1a<\/p>\n<ul>\n<li>\u6539\u8fdb find_chunk_and_push_proposition \u51fd\u6570\uff0c\u5728 chunks \u5b57\u5178\u4e3a\u7a7a\u65f6\u76f4\u63a5\u8c03\u7528 create_new_chunk \u51fd\u6570\uff0c\u4ee5\u907f\u514d\u6f5c\u5728\u7684\u9519\u8bef\u3002<\/li>\n<li>\u5728 create_new_chunk \u51fd\u6570\u4e2d\uff0c\u4e3a chunks[chunk_id] \u5b57\u5178\u6dfb\u52a0\u4e86 chunk_id \u952e\u503c\u5bf9\uff0c\u4ee5\u663e\u5f0f\u8bb0\u5f55\u5757 ID\u3002<\/li>\n<li>\u4f18\u5316 next_chunk_id \u7684\u751f\u6210\u903b\u8f91\uff0c\u63d0\u5347\u4e86 ID \u751f\u6210\u903b\u8f91\u7684\u5065\u58ee\u6027\uff0c\u786e\u4fdd\u5728\u4e0d\u540c\u573a\u666f\u4e0b ID \u751f\u6210\u7684\u6b63\u786e\u6027\u3002<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2>\u81ea\u5efa vs. \u8d2d\u4e70 (Build vs. Buy)<\/h2>\n<p>\u867d\u7136 Agentic Chunking \u53ea\u662f AI Agent \u5de5\u4f5c\u6d41\u7a0b\u4e2d\u7684\u4e00\u4e2a\u73af\u8282\uff0c\u4f46\u5b83\u5bf9\u751f\u6210\u8bed\u4e49\u8fde\u8d2f\u7684\u6587\u672c\u5757\u81f3\u5173\u91cd\u8981\u3002 \u5173\u4e8e\u81ea\u5efa Agentic Chunking \u65b9\u6848\u4e0e\u8d2d\u4e70\u73b0\u6210\u65b9\u6848\uff0c\u5404\u6709\u4f18\u52a3\uff1a<\/p>\n<p>\u81ea\u5efa\u7684\u4f18\u70b9\uff1a<\/p>\n<ul>\n<li>\u9ad8\u5ea6\u63a7\u5236\u4e0e\u5b9a\u5236\u5316\uff1a \u81ea\u5efa\u65b9\u6848\u5141\u8bb8\u7528\u6237\u6839\u636e\u81ea\u8eab\u7279\u5b9a\u9700\u6c42\u8fdb\u884c\u6df1\u5ea6\u5b9a\u5236\uff0c\u4ece\u63d0\u793a\u8bed\u8bbe\u8ba1\u5230\u7b97\u6cd5\u4f18\u5316\uff0c\u90fd\u80fd\u4e0e\u5b9e\u9645\u5e94\u7528\u573a\u666f\u5b8c\u7f8e\u5951\u5408\u3002<\/li>\n<li>\u7cbe\u51c6\u7684\u9488\u5bf9\u6027\uff1a \u4f01\u4e1a\u53ef\u4ee5\u6839\u636e\u81ea\u8eab\u7279\u6709\u7684\u6570\u636e\u7279\u70b9\u548c\u5e94\u7528\u9700\u6c42\uff0c\u91cf\u8eab\u6253\u9020\u6700\u5408\u9002\u7684\u6587\u672c\u5206\u5757\u7b56\u7565\uff0c\u5b9e\u73b0\u6700\u4f73\u6027\u80fd\u3002<\/li>\n<\/ul>\n<p>\u81ea\u5efa\u7684\u7f3a\u70b9\uff1a<\/p>\n<ul>\n<li>\u9ad8\u6602\u7684\u5de5\u7a0b\u6210\u672c\uff1a \u81ea\u5efa Agentic Chunking \u65b9\u6848\u9700\u8981\u4e13\u4e1a\u7684\u81ea\u7136\u8bed\u8a00\u5904\u7406\u6280\u672f\u77e5\u8bc6\u548c\u5927\u91cf\u7684\u5f00\u53d1\u65f6\u95f4\u6295\u5165\uff0c\u6210\u672c\u8f83\u9ad8\u3002<\/li>\n<li>LLM \u884c\u4e3a\u7684\u4e0d\u53ef\u9884\u6d4b\u6027\uff1a \u5927\u578b\u8bed\u8a00\u6a21\u578b\u7684\u884c\u4e3a\u6709\u65f6\u96be\u4ee5\u9884\u6d4b\u548c\u63a7\u5236\uff0c\u8fd9\u4e3a\u81ea\u5efa\u65b9\u6848\u5e26\u6765\u4e86\u6280\u672f\u6311\u6218\u3002<\/li>\n<li>\u6301\u7eed\u7ef4\u62a4\u5f00\u9500\uff1a \u751f\u6210\u5f0f AI \u6280\u672f\u53d1\u5c55\u65e5\u65b0\u6708\u5f02\uff0c\u81ea\u5efa\u65b9\u6848\u9700\u8981\u6301\u7eed\u6295\u5165\u7ef4\u62a4\u548c\u66f4\u65b0\uff0c\u4ee5\u8ddf\u4e0a\u6280\u672f\u53d1\u5c55\u7684\u6b65\u4f10\u3002<\/li>\n<li>\u751f\u4ea7\u73af\u5883\u6311\u6218\uff1a \u5728\u539f\u578b\u9a8c\u8bc1\u9636\u6bb5\u53d6\u5f97\u826f\u597d\u6548\u679c\u662f\u4e00\u56de\u4e8b\uff0c\u8981\u5c06 Agentic Chunking \u65b9\u6848\u771f\u6b63\u5e94\u7528\u4e8e\u751f\u4ea7\u73af\u5883\uff0c\u5e76\u8fbe\u5230 99% \u4ee5\u4e0a\u7684\u9ad8\u51c6\u786e\u7387\uff0c\u4ecd\u7136\u9762\u4e34\u5de8\u5927\u7684\u6311\u6218\u3002<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2>\u603b\u7ed3<\/h2>\n<p>Agentic Chunking \u662f\u4e00\u9879\u5f3a\u5927\u7684\u6587\u672c\u5206\u5757\u6280\u672f\uff0c\u5b83\u901a\u8fc7\u6a21\u62df\u4eba\u7c7b\u7684\u7406\u89e3\u548c\u5224\u65ad\u80fd\u529b\u6765\u521b\u5efa\u8bed\u4e49\u8fde\u8d2f\u7684\u6587\u672c\u5757\uff0c\u4ece\u800c\u663e\u8457\u63d0\u5347 RAG \u7cfb\u7edf\u7684\u6027\u80fd\u3002 \u76f8\u8f83\u4e8e\u4f20\u7edf\u7684\u6587\u672c\u5206\u5757\u65b9\u6cd5\uff0cAgentic Chunking \u514b\u670d\u4e86\u8bf8\u591a\u5c40\u9650\u6027\uff0c\u4f7f\u5f97 LLM \u80fd\u591f\u751f\u6210\u66f4\u51c6\u786e\u3001\u66f4\u5b8c\u6574\u4e14\u66f4\u7b26\u5408\u4e0a\u4e0b\u6587\u8bed\u5883\u7684\u7b54\u6848\u3002<\/p>\n<p>\u672c\u6587\u901a\u8fc7\u8be6\u5c3d\u7684\u4ee3\u7801\u793a\u4f8b\u548c\u9010\u6b65\u8bb2\u89e3\uff0c\u5e2e\u52a9\u8bfb\u8005\u6df1\u5165\u7406\u89e3 Agentic Chunking \u7684\u5de5\u4f5c\u539f\u7406\u548c\u5177\u4f53\u5b9e\u73b0\u65b9\u6cd5\u3002 \u8bda\u7136\uff0cAgentic Chunking \u7684\u5b9e\u73b0\u9700\u8981\u4e00\u5b9a\u7684\u6280\u672f\u6295\u5165\uff0c\u4f46\u5176\u5e26\u6765\u7684\u6027\u80fd\u63d0\u5347\u548c\u5e94\u7528\u4ef7\u503c\u662f\u663e\u800c\u6613\u89c1\u7684\u3002 \u5bf9\u4e8e\u90a3\u4e9b\u9700\u8981\u5904\u7406\u6d77\u91cf\u6587\u672c\u6570\u636e\uff0c\u5e76\u5bf9 RAG \u7cfb\u7edf\u6027\u80fd\u6709\u8f83\u9ad8\u8981\u6c42\u7684\u5e94\u7528\u573a\u666f\u800c\u8a00\uff0cAgentic Chunking \u65e0\u7591\u662f\u4e00\u79cd\u503c\u5f97\u91cd\u70b9\u8003\u8651\u7684\u6709\u6548\u6280\u672f\u65b9\u6848\u3002<\/p>\n<p>\u672a\u6765\u8d8b\u52bf\uff1a Agentic Chunking \u7684\u672a\u6765\u53d1\u5c55\u65b9\u5411\u53ef\u80fd\u5305\u62ec\uff1a<\/p>\n<ul>\n<li>\u4e0e\u56fe\u6570\u636e\u5e93\u6df1\u5ea6\u878d\u5408\uff0c\u6784\u5efa\u77e5\u8bc6\u56fe\u8c31\uff0c\u8fdb\u4e00\u6b65\u53d1\u5c55\u57fa\u4e8e\u56fe\u7ed3\u6784\u7684\u68c0\u7d22\u589e\u5f3a\u751f\u6210 (Graph RAG) \u6280\u672f\uff0c\u5b9e\u73b0\u66f4\u6df1\u5c42\u6b21\u7684\u77e5\u8bc6\u6316\u6398\u548c\u5229\u7528\u3002<\/li>\n<li>\u6301\u7eed\u4f18\u5316 LLM \u7684\u63d0\u793a\u5de5\u7a0b\u548c\u6307\u4ee4\u8bbe\u8ba1\uff0c\u8fdb\u4e00\u6b65\u63d0\u5347\u6587\u672c\u5206\u5757\u7684\u51c6\u786e\u6027\u548c\u5904\u7406\u6548\u7387\u3002<\/li>\n<li>\u7814\u53d1\u66f4\u667a\u80fd\u7684\u6587\u672c\u5757\u5408\u5e76\u4e0e\u5206\u5272\u7b56\u7565\uff0c\u4ee5\u6709\u6548\u5e94\u5bf9\u66f4\u52a0\u590d\u6742\u591a\u6837\u7684\u6587\u6863\u7ed3\u6784\uff0c\u63d0\u5347 Agentic Chunking \u7684\u901a\u7528\u6027\u3002<\/li>\n<li>\u79ef\u6781\u63a2\u7d22 Agentic Chunking \u5728\u66f4\u5e7f\u6cdb\u9886\u57df\u7684\u5e94\u7528\uff0c\u4f8b\u5982\u667a\u80fd\u6587\u672c\u6458\u8981\u3001\u9ad8\u8d28\u91cf\u673a\u5668\u7ffb\u8bd1\u7b49\uff0c\u62d3\u5c55\u5176\u5e94\u7528\u8fb9\u754c\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u5f15\u8a00 \u5728\u5927\u578b\u8bed\u8a00\u6a21\u578b (LLMs) \u7684\u5e94\u7528\u9886\u57df\uff0c\u5c24\u5176\u662f\u5728\u68c0\u7d22\u589e\u5f3a\u751f\u6210 (RAG) \u7cfb\u7edf\u4e2d\uff0c\u6587\u672c\u5206\u5757 (Chunking) \u626e\u6f14\u7740\u81f3\u5173\u91cd\u8981\u7684\u89d2\u8272\u3002 \u6587\u672c\u5206\u5757\u7684\u8d28\u91cf\u76f4\u63a5\u5173\u7cfb\u5230\u4e0a\u4e0b\u6587\u4fe1\u606f\u7684\u6709\u6548\u6027\uff0c\u8fdb\u800c\u5f71\u54cd LLM \u751f\u6210\u7b54\u6848\u7684\u51c6\u786e\u6027\u548c\u5b8c\u6574\u6027\u3002 \u4f20\u7edf&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34],"tags":[],"class_list":["post-21670","post","type-post","status-publish","format-standard","hentry","category-knowledge"],"_links":{"self":[{"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/posts\/21670","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/comments?post=21670"}],"version-history":[{"count":0,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/posts\/21670\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/media?parent=21670"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/categories?post=21670"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/tags?post=21670"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}