{"id":115861,"date":"2026-10-20T13:41:04","date_gmt":"2026-10-20T05:41:04","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/115861.html"},"modified":"2026-10-20T13:41:04","modified_gmt":"2026-10-20T05:41:04","slug":"rag%e8%bf%98%e6%98%afast%e5%9b%be%e8%b0%b1%ef%bc%9f%e6%8a%8a30%e4%b8%87%e8%a1%8c%e4%bb%93%e5%ba%93%e5%bb%ba%e6%88%90%e5%8f%af%e6%9f%a5%e8%af%a2%e5%9b%be%e8%b0%b1%e7%9a%84%e7%9c%9f%e5%ae%9e%e4%bb%a3","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/115861.html","title":{"rendered":"RAG\u8fd8\u662fAST\u56fe\u8c31\uff1f\u628a30\u4e07\u884c\u4ed3\u5e93\u5efa\u6210\u53ef\u67e5\u8be2\u56fe\u8c31\u7684\u771f\u5b9e\u4ee3\u4ef7"},"content":{"rendered":"<p>\u672c\u6587\u6458\u8981&#xff1a;\u7eaf\u5411\u91cf RAG \u505a\u4ed3\u5e93\u7ea7\u95ee\u7b54\u65f6&#xff0c;\u8de8\u6587\u4ef6\u8c03\u7528\u94fe\u68c0\u7d22\u7ecf\u5e38\u62fc\u9519\u4e14\u4e0d\u6613\u5bdf\u89c9\u3002\u7528 AST \u56fe\u8c31\u628a\u5b9a\u4e49\u4e0e\u8c03\u7528\u5efa\u4e3a\u5e26\u6765\u6e90\u6807\u6ce8\u7684\u8fb9&#xff0c;\u53ef\u76f4\u63a5\u904d\u5386\u56de\u7b54\u8c03\u7528\u94fe\u3002\u4f46\u52a8\u6001\u5bfc\u5165\u7b49\u9759\u6001\u76f2\u533a\u4ecd\u9700\u4eba\u5de5\u9a8c\u8bc1&#xff0c;\u4e0d\u80fd\u53ea\u4fe1\u786e\u5b9a\u6027\u3002<\/p>\n<h3>\u4e00\u3001\u95ee\u9898\u4e0e\u7ed3\u8bba<\/h3>\n<p>\u5728 Claude Code \u91cc\u95ee\u4e00\u4e2a\u8de8\u6587\u4ef6\u95ee\u9898&#xff0c;\u6bd4\u5982&#xff1a;&#034;requests \u7684 Session.send \u5728\u54ea\u5b9a\u4e49&#xff1f;\u5b83\u5728\u8c03\u7528\u94fe\u4e0a\u8fd8\u4f1a\u8c03\u5230\u54ea\u4e9b\u6a21\u5757\u7684\u65b9\u6cd5&#xff1f;\u201c\u7eaf\u5411\u91cf RAG \u6309\u51fd\u6570\u5207\u7247\u5165\u5e93&#xff0c;\u68c0\u7d22\u53ea\u80fd\u8fd4\u56de\u5305\u542b def send \u7684\u82e5\u5e72\u4ee3\u7801\u5757\u2014\u2014embedding \u76f8\u4f3c\u5ea6\u4e0d\u7406\u89e3&#034;\u8c01\u8c03\u7528\u8c01\u201d&#xff0c;import \u94fe\u4e00\u65ad&#xff0c;Agent \u53ea\u80fd\u9760\u63a8\u7406\u62fc\u63a5&#xff0c;\u62fc\u9519\u65f6\u8fd8\u770b\u8d77\u6765\u5f88\u81ea\u4fe1\u3002<\/p>\n<p>\u7ed3\u8bba\u5148\u884c&#xff1a;<\/p>\n<li>AST \u56fe\u8c31\u628a&#034;\u5b9a\u4e49\u3001\u8c03\u7528\u3001\u5f15\u7528&#034;\u5efa\u6a21\u4e3a\u5e26\u6765\u6e90\u6807\u6ce8\u7684\u8fb9&#xff0c;\u8de8\u6587\u4ef6\u8c03\u7528\u94fe\u7531\u8fb9\u904d\u5386\u76f4\u63a5\u56de\u7b54&#xff0c;\u4e0d\u4f9d\u8d56 LLM \u591a\u8f6e\u62fc\u63a5\u3002<\/li>\n<li>\u4f46\u786e\u5b9a\u6027\u53ea\u8986\u76d6\u9759\u6001\u53ef\u5206\u6790\u7684\u90e8\u5206&#xff1b;\u52a8\u6001\u5bfc\u5165\u3001\u914d\u7f6e\u9a71\u52a8\u7684\u52a0\u8f7d\u4f1a\u8ba9\u56fe\u8c31&#034;\u770b\u8d77\u6765\u6709\u8fb9\u3001\u5b9e\u9645\u65ad\u88c2&#034;&#xff0c;\u8fd9\u7c7b\u9519\u8bef\u6bd4 RAG \u6f0f\u68c0\u66f4\u96be\u88ab\u53d1\u73b0\u3002<\/li>\n<li>30 \u4e07\u884c\u4ed3\u5e93\u5168\u91cf\u5efa\u56fe\u4e4b\u524d&#xff0c;\u5148\u7528\u4e09\u6761 grep \u5224\u65ad\u9759\u6001\u76f2\u533a\u5927\u5c0f&#xff0c;\u518d\u51b3\u5b9a\u5efa\u56fe\u8303\u56f4\u3002<\/li>\n<h3>\u4e8c\u3001\u6392\u67e5\u4e0e\u9009\u62e9\u4f9d\u636e<\/h3>\n<p>\u5efa\u56fe\u524d\u5148\u56de\u7b54\u4e00\u4e2a\u95ee\u9898&#xff1a;\u4f60\u7684\u4ed3\u5e93\u6709\u591a\u5927\u6bd4\u4f8b\u662f\u9759\u6001\u5206\u6790\u8986\u76d6\u4e0d\u5230\u7684\u3002\u5728\u76ee\u6807\u4ed3\u5e93\u6839\u76ee\u5f55\u6267\u884c&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u52a8\u6001\u5bfc\u5165 \/ \u53cd\u5c04<\/span><br \/>\n<span class=\"token function\">grep<\/span> <span class=\"token parameter variable\">-rn<\/span> <span class=\"token string\">&#034;importlib\\\\|__import__\\\\|import_module&#034;<\/span> <span class=\"token parameter variable\">&#8211;include<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;*.py&#034;<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">wc<\/span> <span class=\"token parameter variable\">-l<\/span><br \/>\n<span class=\"token comment\"># \u5b57\u7b26\u4e32\u62fc\u63a5\u7684\u6a21\u5757\u8def\u5f84<\/span><br \/>\n<span class=\"token function\">grep<\/span> <span class=\"token parameter variable\">-rn<\/span> <span class=\"token string\">&#039;import_module(f&#034;&#039;<\/span> <span class=\"token parameter variable\">&#8211;include<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;*.py&#034;<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">wc<\/span> <span class=\"token parameter variable\">-l<\/span><br \/>\n<span class=\"token comment\"># \u914d\u7f6e\u6587\u4ef6\u4e2d\u7684\u4ee3\u7801\u5f15\u7528<\/span><br \/>\n<span class=\"token function\">grep<\/span> <span class=\"token parameter variable\">-rn<\/span> <span class=\"token string\">&#034;handler\\\\|plugin\\\\|module&#034;<\/span> config.yaml config.json settings.py <span class=\"token operator\"><span class=\"token file-descriptor important\">2<\/span>&gt;<\/span>\/dev\/null <span class=\"token operator\">|<\/span> <span class=\"token function\">wc<\/span> <span class=\"token parameter variable\">-l<\/span><\/p>\n<p>\u4e09\u6761\u7ed3\u679c\u4e2d\u4efb\u610f\u4e00\u6761\u975e\u96f6&#xff0c;\u56fe\u8c31\u5728\u8be5\u4ed3\u5e93\u4e0a\u5c31\u5b58\u5728\u5df2\u77e5\u76f2\u533a\u3002\u53e6\u5916\u7edf\u8ba1\u81ea\u52a8\u751f\u6210\u4ee3\u7801\u5360\u6bd4&#xff08;protobuf \u751f\u6210\u7684 _pb2.py\u3001.pb.go \u7b49&#xff09;&#xff1a;AST \u4f1a\u89e3\u6790\u51fa\u5927\u91cf&#034;\u6709\u8fb9\u65e0\u8bed\u4e49&#034;\u7684\u8282\u70b9&#xff0c;\u56fe\u8c31\u4f53\u79ef\u81a8\u80c0&#xff0c;\u4f46\u67e5\u8be2\u4ef7\u503c\u63a5\u8fd1\u96f6\u3002<\/p>\n<h4>\u66ff\u4ee3\u65b9\u6848\u4e0e\u53d6\u820d<\/h4>\n<table>\n<tr>\u65b9\u6848\u9009\u62e9\u6761\u4ef6\u4ee3\u4ef7\u4e0e\u8fb9\u754c<\/tr>\n<tbody>\n<tr>\n<td>\u7eaf RAG&#xff08;\u5207\u7247&#043;\u5411\u91cf&#xff09;<\/td>\n<td>\u5feb\u901f\u642d\u5efa&#xff0c;\u95ee\u9898\u4ee5&#034;\u4e3a\u4ec0\u4e48&#034;\u7c7b\u6587\u6863\u95ee\u7b54\u4e3a\u4e3b<\/td>\n<td>\u8de8\u6587\u4ef6\u8c03\u7528\u94fe\u65ad\u94fe&#xff1b;\u5207\u7247\u7c92\u5ea6\u76f4\u63a5\u5f71\u54cd\u53ec\u56de<\/td>\n<\/tr>\n<tr>\n<td>LSP &#043; Agent \u5c01\u88c5<\/td>\n<td>\u5df2\u6709 IDE \u8bed\u8a00\u670d\u52a1\u5668\u57fa\u7840\u8bbe\u65bd<\/td>\n<td>\u9700\u9010\u8bed\u8a00\u914d\u7f6e&#xff1b;\u4e0d\u4ea7\u51fa\u56fe\u8c31&#xff0c;SQL\/\u914d\u7f6e\u6587\u4ef6\u4e0d\u53ef\u67e5<\/td>\n<\/tr>\n<tr>\n<td>\u6df7\u5408&#xff1a;AST \u5b9a\u4f4d &#043; RAG \u89e3\u91ca<\/td>\n<td>\u9700\u540c\u65f6\u56de\u7b54&#034;\u5728\u54ea&#034;\u548c&#034;\u4e3a\u4ec0\u4e48&#034;<\/td>\n<td>\u4e24\u5957\u57fa\u7840\u8bbe\u65bd\u7684\u7ef4\u62a4\u6210\u672c<\/td>\n<\/tr>\n<tr>\n<td>\u81ea\u5efa\u4ee3\u7801\u5c5e\u6027\u56fe&#xff08;\u5982 Joern&#xff09;<\/td>\n<td>\u9700\u8981\u6df1\u5ea6\u5b89\u5168\u5ba1\u8ba1<\/td>\n<td>\u5b66\u4e60\u66f2\u7ebf\u9661&#xff1b;\u5927\u4ed3\u5e93\u6784\u5efa\u53ef\u80fd\u8fbe\u5c0f\u65f6\u7ea7<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e0d\u8be5\u7528 AST \u56fe\u8c31\u7684\u4e09\u79cd\u60c5\u51b5&#xff1a;\u4ed3\u5e93\u4ee5\u52a8\u6001\u8bed\u8a00 &#043; \u63d2\u4ef6\u67b6\u6784\u4e3a\u4e3b\u4e14\u4e0a\u9762\u7684 grep \u7ed3\u679c\u5f88\u5927&#xff1b;\u4e3b\u8981\u95ee\u9898\u662f&#034;\u8fd9\u6bb5\u903b\u8f91\u7684\u4e1a\u52a1\u542b\u4e49\u662f\u4ec0\u4e48&#034;&#xff08;AST \u53ea\u7ed9\u7ed3\u6784&#xff0c;\u8bed\u4e49\u5728\u6587\u6863\u91cc&#xff09;&#xff1b;\u56e2\u961f\u91cc\u6ca1\u4eba\u80fd\u8bfb\u61c2\u56fe\u67e5\u8be2\u7ed3\u679c\u3001\u4e5f\u6ca1\u6709\u9884\u7b97\u505a\u67e5\u8be2\u6a21\u677f\u6c89\u6dc0\u3002<\/p>\n<h3>\u4e09\u3001\u5173\u952e\u539f\u7406<\/h3>\n<p>\u4e24\u4e2a\u673a\u5236\u51b3\u5b9a\u56fe\u8c31\u80fd\u56de\u7b54\u4ec0\u4e48\u3001\u4e0d\u80fd\u56de\u7b54\u4ec0\u4e48\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261020054102-6ad6feeeef8a5.png\" alt=\"\u6b63\u6587\u6280\u672f\u56fe\" \/><\/p>\n<p>\u8fb9\u7684\u6765\u6e90\u5206\u4e24\u7c7b\u3002 \u663e\u5f0f\u51fd\u6570\u8c03\u7528&#xff08;Session.send \u2192 HTTPAdapter.send&#xff09;\u7531 AST \u76f4\u63a5\u5efa\u8fb9&#xff0c;\u89e3\u91ca\u660e\u786e\u5230\u884c\u53f7\u3002\u8de8\u7c7b\u578b\u8fb9\u5219\u4e0d\u540c\u2014\u2014SQL \u8868\u540d\u8fde\u63a5\u5230 ORM \u6a21\u578b\u7c7b\u3001config \u952e\u8fde\u63a5\u5230 Python \u6a21\u5757&#xff0c;\u8fd9\u7c7b\u8fb9\u4f9d\u8d56\u5b57\u7b26\u4e32\u5339\u914d\u6216\u542f\u53d1\u5f0f\u63a8\u65ad\u3002\u201c\u6bcf\u6761\u8fb9\u90fd\u6709\u89e3\u91ca&#034;\u662f\u8d28\u91cf\u4e0b\u9650\u7684\u627f\u8bfa&#xff0c;\u4e0d\u662f\u6b63\u786e\u6027\u7684\u627f\u8bfa&#xff1b;\u62fc\u5199\u4e0d\u4e00\u81f4\u4f1a\u9759\u9ed8\u751f\u6210\u5b64\u5c9b\u8282\u70b9&#xff0c;Agent \u770b\u5230\u7684\u662f&#034;\u6709\u8fb9\u201d&#xff0c;\u8fb9\u6307\u5411\u7684\u5374\u4e0d\u662f\u771f\u5b9e\u4ee3\u7801\u3002<\/p>\n<p>\u786e\u5b9a\u6027\u7684\u8fb9\u754c\u5728\u8fd0\u884c\u65f6\u3002 importlib.import_module(f&#034;plugins.{name}&#034;) \u8fd9\u4e00\u884c AST \u89e3\u6790\u5f97\u4e86&#xff0c;\u4f46\u8fd0\u884c\u65f6\u5b9e\u9645\u52a0\u8f7d\u54ea\u4e9b\u6a21\u5757\u9759\u6001\u4e0d\u53ef\u77e5\u3002\u56fe\u8c31\u8981\u4e48\u7f3a\u51fa\u8fb9&#xff0c;\u8981\u4e48\u8fd1\u4f3c\u6210\u4e00\u4e2a\u901a\u914d\u8282\u70b9\u2014\u2014\u540e\u8005\u610f\u5473\u7740 Agent \u67e5\u8be2&#034;load_plugin \u4f1a\u8c03\u7528\u54ea\u4e9b handler&#034;\u65f6&#xff0c;\u62ff\u5230\u7684\u662f\u5f62\u5f0f\u5b8c\u6574\u3001\u5b9e\u8d28\u4e0d\u7cbe\u786e\u7684\u7b54\u6848&#xff0c;\u800c&#034;\u786e\u5b9a\u6027&#034;\u8fd9\u4e2a\u5356\u70b9\u4f1a\u8ba9\u4eba\u653e\u677e\u9a8c\u8bc1\u3002<\/p>\n<h3>\u56db\u3001\u53ef\u8fd0\u884c\u793a\u4f8b<\/h3>\n<p>\u73af\u5883&#xff1a;macOS\/Linux&#xff0c;Claude Code&#xff08;\u5df2\u542f\u7528 skill \u673a\u5236&#xff09;&#xff0c;Python 3.11&#043;\u3002<\/p>\n<p><span class=\"token comment\"># 1. \u51c6\u5907\u76ee\u6807\u4ed3\u5e93&#xff08;\u793a\u4f8b\u7528\u5f00\u6e90\u4ed3\u5e93&#xff0c;\u5b9e\u9645\u5efa\u8bae\u6362\u6210\u4f60\u7ef4\u62a4\u7684\u4ed3\u5e93&#xff09;<\/span><br \/>\n<span class=\"token function\">git<\/span> clone <span class=\"token parameter variable\">&#8211;depth<\/span> <span class=\"token number\">1<\/span> https:\/\/github.com\/psf\/requests \/tmp\/target-repo<\/p>\n<p><span class=\"token comment\"># 2. \u76f2\u533a\u81ea\u68c0<\/span><br \/>\n<span class=\"token builtin class-name\">cd<\/span> \/tmp\/target-repo<br \/>\n<span class=\"token function\">grep<\/span> <span class=\"token parameter variable\">-rn<\/span> <span class=\"token string\">&#034;importlib\\\\|__import__&#034;<\/span> <span class=\"token parameter variable\">&#8211;include<\/span><span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;*.py&#034;<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">head<\/span> <span class=\"token parameter variable\">-5<\/span><\/p>\n<p><span class=\"token comment\"># 3. \u5b89\u88c5 graphify skill \u5230 Claude Code \u7684 skill \u76ee\u5f55<\/span><br \/>\n<span class=\"token comment\"># \u8def\u5f84\u4e0e\u547d\u4ee4\u4ee5\u4ed3\u5e93 README \u4e3a\u51c6&#xff0c;\u6b64\u5904\u4e0d\u7f16\u9020<\/span><\/p>\n<p>\u7136\u540e\u5728 Claude Code \u4e2d\u6267\u884c&#xff08;\u547d\u4ee4\u62fc\u5199\u4ee5 README \u4e3a\u51c6&#xff09;&#xff1a;<\/p>\n<p>\/graphify init \/tmp\/target-repo<br \/>\n\/graphify query &#034;Session.send \u5b9a\u4e49\u5728\u54ea&#xff1f;\u5217\u51fa\u8c03\u7528\u94fe\u4e0a\u5176\u4ed6\u6a21\u5757\u7684\u65b9\u6cd5\u3002&#034;<\/p>\n<p>\u5bf9\u7167\u7ec4&#xff1a;\u628a\u540c\u4e00\u6279\u4ee3\u7801\u5207\u7247\u704c\u5165\u5411\u91cf\u5e93&#xff0c;\u7528\u540c\u6837\u7684\u95ee\u9898\u68c0\u7d22\u3002<\/p>\n<p>\u9884\u671f\u8f93\u51fa&#xff08;\u57fa\u4e8e\u673a\u5236\u63a8\u65ad&#xff0c;\u672a\u9a8c\u8bc1&#xff09;&#xff1a;\u56fe\u8c31\u67e5\u8be2\u8fd4\u56de Session.send \u7684\u7cbe\u786e\u6587\u4ef6\u4e0e\u884c\u53f7&#xff0c;\u5e76\u901a\u8fc7\u8fb9\u904d\u5386\u5217\u51fa\u8c03\u7528\u76ee\u6807&#xff1b;RAG \u8fd4\u56de\u82e5\u5e72\u5305\u542b send \u7684\u4ee3\u7801\u5757&#xff0c;\u8c03\u7528\u94fe\u9700\u8981 LLM \u63a8\u7406\u62fc\u63a5&#xff0c;import \u94fe\u5904\u5bb9\u6613\u65ad\u3002<\/p>\n<p>\u5b9e\u9645\u8f93\u51fa&#xff1a;\u4ee5\u4e0a\u7ed3\u679c\u5fc5\u987b\u5728\u4f60\u81ea\u5df1\u7684\u4ed3\u5e93\u4e0a\u8dd1\u8fc7\u624d\u7b97\u6570\u3002\u6838\u5bf9\u4e24\u70b9\u2014\u2014\u8c03\u7528\u94fe\u662f\u5426\u5b8c\u6574&#xff08;\u5bf9\u7167 grep -rn &#034;def send&#034; \u624b\u52a8\u8ffd\u8e2a import \u94fe&#xff09;&#xff1b;\u6bcf\u6761\u8fd4\u56de\u7684\u8fb9\u662f\u5426\u6807\u6ce8\u4e86\u6765\u6e90\u6587\u4ef6\u548c\u884c\u53f7\u3002<\/p>\n<h3>\u4e94\u3001\u9a8c\u8bc1\u7ed3\u679c\u4e0e\u8fb9\u754c<\/h3>\n<p>\u6700\u5371\u9669\u7684\u5931\u8d25\u573a\u666f&#xff1a;\u63d2\u4ef6\u67b6\u6784\u5bfc\u81f4&#034;\u56fe\u8c31\u8bf4\u5b89\u5168\u3001\u8fd0\u884c\u65f6\u5d29\u6e83&#034;\u3002\u82e5\u7b2c\u4e8c\u8282\u7684 grep \u547d\u4e2d&#xff0c;Agent \u53ef\u80fd\u57fa\u4e8e\u56fe\u8c31\u5224\u65ad\u5220\u9664\u67d0\u4e2a plugins\/billing_handler.py \u6ca1\u6709\u5f15\u7528\u2014\u2014\u800c\u5b83\u5b9e\u9645\u7531 config.yaml \u5728\u8fd0\u884c\u65f6\u52a8\u6001\u52a0\u8f7d\u3002\u4fee\u590d\u65b9\u6cd5&#xff1a;\u4e3a\u6bcf\u4e2a\u52a8\u6001\u52a0\u8f7d\u70b9\u7ef4\u62a4\u4e00\u4efd\u663e\u5f0f\u8fd0\u884c\u65f6\u4f9d\u8d56\u6e05\u5355&#xff08;\u6ce8\u91ca\u6216\u6587\u6863\u5747\u53ef&#xff09;&#xff0c;\u5efa\u56fe\u540e\u8ba9 Agent \u7ed3\u5408\u6e05\u5355\u4e8c\u6b21\u786e\u8ba4&#xff0c;\u4e0d\u5355\u72ec\u4f9d\u8d56\u56fe\u8c31\u51fa\u8fb9\u505a\u5220\u9664\u51b3\u7b56\u3002<\/p>\n<p>\u7248\u672c\u5c42\u9762\u7684\u8fb9\u754c&#xff1a;Claude Code \u7684 skill \u673a\u5236\u7ecf\u5386\u8fc7\u76ee\u5f55\u7ed3\u6784\u53d8\u66f4&#xff0c;\u5347\u7ea7 Agent \u540e skill \u53ef\u80fd\u9759\u9ed8\u5931\u6548&#xff1b;Graphify \u81ea\u8eab\u7684\u5177\u4f53\u7248\u672c\u3001\u8bed\u8a00\u8986\u76d6\u6e05\u5355\u3001\u6784\u5efa\u8017\u65f6\u5728\u5df2\u9a8c\u8bc1\u6765\u6e90\u4e2d\u5747\u65e0\u6570\u636e&#xff0c;\u63a5\u5165\u524d\u5148\u5728 5 \u4e07\u884c\u4ee5\u5185\u7684\u5b50\u4ed3\u5e93\u8dd1\u901a&#xff0c;\u68c0\u67e5\u5b64\u7acb\u8282\u70b9\u548c\u65e0\u8bed\u4e49\u8fb9\u7684\u5360\u6bd4&#xff0c;\u518d\u51b3\u5b9a\u662f\u5426\u6269\u5c55\u5230\u5168\u91cf\u4ed3\u5e93\u3002<\/p>\n<h3>\u601d\u8003<\/h3>\n<li>\u4f60\u7684\u4ed3\u5e93\u91cc\u52a8\u6001\u52a0\u8f7d\u548c\u63d2\u4ef6\u673a\u5236\u5360\u6bd4\u591a\u9ad8\u65f6&#xff0c;AST \u56fe\u8c31\u7684&#034;\u786e\u5b9a\u6027&#034;\u4f18\u52bf\u53cd\u800c\u4f1a\u53d8\u6210\u8bef\u5bfc\u6027\u7684\u5b89\u5168\u611f&#xff1f;<\/li>\n<li>\u56e2\u961f\u66f4\u9700\u8981\u7cbe\u786e\u56de\u7b54&#034;\u5728\u54ea&#034;\u7684\u95ee\u9898&#xff0c;\u8fd8\u662f\u80fd\u5bb9\u5fcd\u6982\u7387\u6027\u7684&#034;\u4e3a\u4ec0\u4e48&#034;\u2014\u2014\u8fd9\u4e2a\u5224\u65ad\u5e94\u8be5\u7531\u8c01\u6765\u505a&#xff1f;<\/li>\n<h3>\u53c2\u8003\u8d44\u6599<\/h3>\n<p>Graphify-Labs\/graphify<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u6458\u8981&#xff1a;\u7eaf\u5411\u91cf RAG \u505a\u4ed3\u5e93\u7ea7\u95ee\u7b54\u65f6&#xff0c;\u8de8\u6587\u4ef6\u8c03\u7528\u94fe\u68c0\u7d22\u7ecf\u5e38\u62fc\u9519\u4e14\u4e0d\u6613\u5bdf\u89c9\u3002\u7528 AST \u56fe\u8c31\u628a\u5b9a\u4e49\u4e0e\u8c03\u7528\u5efa\u4e3a\u5e26\u6765\u6e90\u6807\u6ce8\u7684\u8fb9&#xff0c;\u53ef\u76f4\u63a5\u904d\u5386\u56de\u7b54\u8c03\u7528\u94fe\u3002\u4f46\u52a8\u6001\u5bfc\u5165\u7b49\u9759\u6001\u76f2\u533a\u4ecd\u9700\u4eba\u5de5\u9a8c\u8bc1&#xff0c;\u4e0d\u80fd\u53ea\u4fe1\u786e\u5b9a\u6027\u3002 \u4e00\u3001\u95ee\u9898\u4e0e\u7ed3\u8bba<br \/>\n\u5728 Claude Code \u91cc\u95ee\u4e00\u4e2a\u8de8\u6587\u4ef6\u95ee\u9898&#xff0c;\u6bd4\u5982&#xff1a;\\&#8221;requests \u7684 Session.send \u5728\u54ea\u5b9a\u4e49&#xff1f;\u5b83\u5728\u8c03\u7528\u94fe\u4e0a\u8fd8\u4f1a\u8c03\u5230\u54ea\u4e9b\u6a21\u5757\u7684\u65b9\u6cd5&#xff1f;<\/p>\n","protected":false},"author":2,"featured_media":115860,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[13146,71,132,719,613],"topic":[],"class_list":["post-115861","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-ast","tag-ai-agent","tag-132","tag-719","tag-613"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>RAG\u8fd8\u662fAST\u56fe\u8c31\uff1f\u628a30\u4e07\u884c\u4ed3\u5e93\u5efa\u6210\u53ef\u67e5\u8be2\u56fe\u8c31\u7684\u771f\u5b9e\u4ee3\u4ef7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/115861.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"RAG\u8fd8\u662fAST\u56fe\u8c31\uff1f\u628a30\u4e07\u884c\u4ed3\u5e93\u5efa\u6210\u53ef\u67e5\u8be2\u56fe\u8c31\u7684\u771f\u5b9e\u4ee3\u4ef7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u672c\u6587\u6458\u8981&#xff1a;\u7eaf\u5411\u91cf RAG \u505a\u4ed3\u5e93\u7ea7\u95ee\u7b54\u65f6&#xff0c;\u8de8\u6587\u4ef6\u8c03\u7528\u94fe\u68c0\u7d22\u7ecf\u5e38\u62fc\u9519\u4e14\u4e0d\u6613\u5bdf\u89c9\u3002\u7528 AST \u56fe\u8c31\u628a\u5b9a\u4e49\u4e0e\u8c03\u7528\u5efa\u4e3a\u5e26\u6765\u6e90\u6807\u6ce8\u7684\u8fb9&#xff0c;\u53ef\u76f4\u63a5\u904d\u5386\u56de\u7b54\u8c03\u7528\u94fe\u3002\u4f46\u52a8\u6001\u5bfc\u5165\u7b49\u9759\u6001\u76f2\u533a\u4ecd\u9700\u4eba\u5de5\u9a8c\u8bc1&#xff0c;\u4e0d\u80fd\u53ea\u4fe1\u786e\u5b9a\u6027\u3002 \u4e00\u3001\u95ee\u9898\u4e0e\u7ed3\u8bba \u5728 Claude Code \u91cc\u95ee\u4e00\u4e2a\u8de8\u6587\u4ef6\u95ee\u9898&#xff0c;\u6bd4\u5982&#xff1a;&quot;requests \u7684 Session.send \u5728\u54ea\u5b9a\u4e49&#xff1f;\u5b83\u5728\u8c03\u7528\u94fe\u4e0a\u8fd8\u4f1a\u8c03\u5230\u54ea\u4e9b\u6a21\u5757\u7684\u65b9\u6cd5&#xff1f;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/115861.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-20T05:41:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261020054102-6ad6feeeef8a5.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/115861.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/115861.html\",\"name\":\"RAG\u8fd8\u662fAST\u56fe\u8c31\uff1f\u628a30\u4e07\u884c\u4ed3\u5e93\u5efa\u6210\u53ef\u67e5\u8be2\u56fe\u8c31\u7684\u771f\u5b9e\u4ee3\u4ef7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-20T05:41:04+00:00\",\"dateModified\":\"2026-10-20T05:41:04+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/115861.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/115861.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/115861.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"RAG\u8fd8\u662fAST\u56fe\u8c31\uff1f\u628a30\u4e07\u884c\u4ed3\u5e93\u5efa\u6210\u53ef\u67e5\u8be2\u56fe\u8c31\u7684\u771f\u5b9e\u4ee3\u4ef7\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"RAG\u8fd8\u662fAST\u56fe\u8c31\uff1f\u628a30\u4e07\u884c\u4ed3\u5e93\u5efa\u6210\u53ef\u67e5\u8be2\u56fe\u8c31\u7684\u771f\u5b9e\u4ee3\u4ef7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/115861.html","og_locale":"zh_CN","og_type":"article","og_title":"RAG\u8fd8\u662fAST\u56fe\u8c31\uff1f\u628a30\u4e07\u884c\u4ed3\u5e93\u5efa\u6210\u53ef\u67e5\u8be2\u56fe\u8c31\u7684\u771f\u5b9e\u4ee3\u4ef7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u672c\u6587\u6458\u8981&#xff1a;\u7eaf\u5411\u91cf RAG \u505a\u4ed3\u5e93\u7ea7\u95ee\u7b54\u65f6&#xff0c;\u8de8\u6587\u4ef6\u8c03\u7528\u94fe\u68c0\u7d22\u7ecf\u5e38\u62fc\u9519\u4e14\u4e0d\u6613\u5bdf\u89c9\u3002\u7528 AST \u56fe\u8c31\u628a\u5b9a\u4e49\u4e0e\u8c03\u7528\u5efa\u4e3a\u5e26\u6765\u6e90\u6807\u6ce8\u7684\u8fb9&#xff0c;\u53ef\u76f4\u63a5\u904d\u5386\u56de\u7b54\u8c03\u7528\u94fe\u3002\u4f46\u52a8\u6001\u5bfc\u5165\u7b49\u9759\u6001\u76f2\u533a\u4ecd\u9700\u4eba\u5de5\u9a8c\u8bc1&#xff0c;\u4e0d\u80fd\u53ea\u4fe1\u786e\u5b9a\u6027\u3002 \u4e00\u3001\u95ee\u9898\u4e0e\u7ed3\u8bba \u5728 Claude Code \u91cc\u95ee\u4e00\u4e2a\u8de8\u6587\u4ef6\u95ee\u9898&#xff0c;\u6bd4\u5982&#xff1a;\"requests \u7684 Session.send \u5728\u54ea\u5b9a\u4e49&#xff1f;\u5b83\u5728\u8c03\u7528\u94fe\u4e0a\u8fd8\u4f1a\u8c03\u5230\u54ea\u4e9b\u6a21\u5757\u7684\u65b9\u6cd5&#xff1f;","og_url":"https:\/\/www.wsisp.com\/helps\/115861.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-20T05:41:04+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261020054102-6ad6feeeef8a5.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/115861.html","url":"https:\/\/www.wsisp.com\/helps\/115861.html","name":"RAG\u8fd8\u662fAST\u56fe\u8c31\uff1f\u628a30\u4e07\u884c\u4ed3\u5e93\u5efa\u6210\u53ef\u67e5\u8be2\u56fe\u8c31\u7684\u771f\u5b9e\u4ee3\u4ef7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-20T05:41:04+00:00","dateModified":"2026-10-20T05:41:04+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/115861.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/115861.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/115861.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"RAG\u8fd8\u662fAST\u56fe\u8c31\uff1f\u628a30\u4e07\u884c\u4ed3\u5e93\u5efa\u6210\u53ef\u67e5\u8be2\u56fe\u8c31\u7684\u771f\u5b9e\u4ee3\u4ef7"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/115861","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=115861"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/115861\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/115860"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=115861"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=115861"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=115861"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=115861"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}