{"id":114800,"date":"2026-10-10T09:09:46","date_gmt":"2026-10-10T01:09:46","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/114800.html"},"modified":"2026-10-10T09:09:46","modified_gmt":"2026-10-10T01:09:46","slug":"%e9%80%86%e8%bd%ac-rag%ef%bc%9allm-wiki-%e7%9a%84%e7%9f%a5%e8%af%86%e5%a4%8d%e5%88%a9","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/114800.html","title":{"rendered":"\u9006\u8f6c RAG\uff1aLLM\u2011wiki \u7684\u77e5\u8bc6\u590d\u5229"},"content":{"rendered":"<h3>&#x1f9e0;\u524d\u8a00<\/h3>\n<p>\u4f60\u8fd8\u5728\u8ba9 RAG \u50cf\u4e2a\u4e34\u8003\u524d\u4e00\u901a\u4e71\u7ffb\u7684\u5b66\u6e23\u5417&#xff1f;&#x1f629; \u6bcf\u6b21\u63d0\u95ee\u624d\u624b\u5fd9\u811a\u4e71\u5730\u68c0\u7d22&#xff0c;\u7528\u5b8c\u5373\u5f03&#xff0c;\u77e5\u8bc6\u5e93\u6d3b\u6210\u4e86\u4e00\u6b21\u6027\u7b77\u5b50 &#x1f962;<\/p>\n<p>\u2728\u00a0\u73b0\u5728&#xff0c;\u6362\u4e2a\u73a9\u6cd5&#xff01; \u628a\u68c0\u7d22\u4ece\u67e5\u8be2\u671f\u63d0\u524d\u5230\u6444\u5165\u671f\u7f16\u8bd1\u2014\u2014\u5728\u77e5\u8bc6\u5165\u5e93\u7684\u90a3\u4e00\u523b&#xff0c;\u5c31\u628a\u201c\u6d88\u5316\u201d\u548c\u201c\u7d22\u5f15\u201d\u505a\u5230\u4f4d&#xff0c;\u8ba9\u77e5\u8bc6\u5e93\u4ece\u6d88\u8017\u54c1&#xff0c;\u5f7b\u5e95\u53d8\u6210\u80fd\u4e0d\u65ad\u589e\u503c\u7684\u590d\u5229\u8d44\u4ea7 &#x1f4b0;&#x1f4c8;<\/p>\n<p>&#x1f525;\u00a0\u5f00\u7bb1\u5373\u98df&#xff1a;\u628a\u201c\u9884\u7f16\u8bd1\u201d\u76f4\u63a5\u6302\u7ed9\u4f60\u7684 Agent<\/p>\n<p>\u5149\u770b\u4e0d\u8fc7\u763e&#xff1f;\u6211\u5199\u4e86\u4e00\u4e2a \u76f4\u63a5\u53ef\u4ee5\u6302\u8f7d\u5230\u4efb\u610fagent\u7684Skill\u2014\u2014 &#x1f449;GitHub&#xff1a;\u00a0llm-wiki-skill<\/p>\n<p>&#x1f4d6;\u00a0\u672c\u6587\u5e26\u4f60\u8f7b\u677e\u62c6\u89e3<\/p>\n<ul>\n<li>\n<p>&#x1f9e0; Andrej Karpathy \u7684\u539f\u59cb pattern<\/p>\n<\/li>\n<li>\n<p>&#x1f50d; \u94bb\u8fdb\u4e24\u4e2a\u5f00\u6e90\u9879\u76ee&#xff0c;\u770b\u4e0d\u540c\u6280\u672f\u8840\u7edf\u600e\u4e48\u843d\u5730&#xff1a;<\/p>\n<ul>\n<li>\n<p>nashsu\/llm_wiki\u00a0&#x1f9e9;<\/p>\n<\/li>\n<li>\n<p>garrytan\/gbrain\u00a0&#x1f9e0;<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u4e0d\u7528\u82e6\u5927\u4ec7\u6df1&#xff0c;\u8ddf\u7740\u73a9\u4e00\u904d&#xff0c;\u4f60\u4f1a\u7b11\u7740\u628a\u201c\u9884\u7f16\u8bd1\u77e5\u8bc6\u5e93\u201d\u88c5\u8fdb\u8111\u888b &#x1f604;&#x1f680;<\/p>\n<hr \/>\n<h3>&#x1f4da; \u4e00\u3001Karpathy LLM\u2011wiki \u6838\u5fc3\u673a\u5236<\/h3>\n<h4>1.1 &#x1f3d7;\ufe0f \u4e09\u5c42\u67b6\u6784<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1600\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261010010940-6ac9905444859.png\" width=\"2848\" \/><\/p>\n<ul>\n<li>\n<p>&#x1f4c4; Raw sources&#xff1a;\u6587\u7ae0\u3001\u8bba\u6587\u3001\u56fe\u7247\u3002LLM \u53ea\u8bfb\u4e0d\u6539\u2014\u2014\u771f\u76f8\u6e90<\/p>\n<\/li>\n<li>\n<p>&#x1f4dd; The wiki&#xff1a;\u6458\u8981\/\u5b9e\u4f53\/\u6982\u5ff5\/\u5bf9\u6bd4\/\u7efc\u8ff0\u9875\u3002LLM \u5168\u6743\u62e5\u6709\u2014\u2014\u4eba\u53ea\u8bfb\u4e0d\u5199<\/p>\n<\/li>\n<li>\n<p>\u2699\ufe0f The schema&#xff1a;\u4e00\u4efd markdown&#xff0c;\u544a\u8bc9 LLM wiki \u7684\u7ed3\u6784\u3001\u547d\u540d\u7ea6\u5b9a\u3001\u51b2\u7a81\u5904\u7406\u3001\u4f55\u65f6\u5f00\u65b0\u9875\/\u5408\u5e76\u9875<\/p>\n<\/li>\n<\/ul>\n<p>\u4eba\u548c LLM \u4e00\u8d77\u8fed\u4ee3\u5b83\u2014\u2014\u672c\u8d28\u662f\u7528\u81ea\u7136\u8bed\u8a00\u5199\u4e00\u4efd\u201c\u77e5\u8bc6\u5e93\u5baa\u6cd5\u201d<\/p>\n<hr \/>\n<h4>1.2 \u26a1 \u4e09\u4e2a\u6838\u5fc3\u64cd\u4f5c<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"439\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261010010943-6ac99057c8a19.png\" width=\"936\" \/><\/p>\n<p>&#x1f539; Ingest&#xff08;\u6444\u5165&#xff09; \u2014\u2014 \u4e22\u4e00\u4efd\u65b0\u6e90&#xff0c;LLM \u505a&#xff1a;<\/p>\n<li>\n<p>\u8bfb\u6e90 \u2192 \u8ba8\u8bba key takeaways<\/p>\n<\/li>\n<li>\n<p>\u5199 summary \u9875<\/p>\n<\/li>\n<li>\n<p>\u66f4\u65b0 index.md<\/p>\n<\/li>\n<li>\n<p>\u89e6\u8fbe 10\u201315 \u4e2a\u76f8\u5173\u9875&#xff08;\u5b9e\u4f53\/\u6982\u5ff5\u9875\u90fd\u66f4\u65b0&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u5728 log.md \u8ffd\u52a0\u4e00\u6761<\/p>\n<\/p>\n<\/li>\n<p>&#x1f539; Query&#xff08;\u67e5\u8be2&#xff09; \u2014\u2014 \u4f60\u95ee\u95ee\u9898&#xff0c;LLM \u505a&#xff1a;<\/p>\n<li>\n<p>\u8bfb index.md \u5b9a\u4f4d\u76f8\u5173\u9875<\/p>\n<\/li>\n<li>\n<p>\u8bfb\u8fd9\u4e9b\u9875<\/p>\n<\/li>\n<li>\n<p>\u7efc\u5408\u6210\u5e26\u5f15\u7528\u7684\u7b54\u6848<\/p>\n<\/li>\n<li>\n<p>\u628a\u597d\u7b54\u6848\u56de\u586b\u8fdb wiki \u5f53\u65b0\u9875\u2014\u2014\u8ba9\u63a2\u7d22\u672c\u8eab\u590d\u5229<\/p>\n<\/li>\n<p>&#x1f539; Lint&#xff08;\u4f53\u68c0&#xff09; \u2014\u2014 \u5b9a\u671f\u8ba9 LLM \u5065\u5eb7\u68c0\u67e5&#xff1a;<\/p>\n<p>\u9875\u95f4\u77db\u76fe\u3001\u88ab\u65b0\u6e90\u63a8\u7ffb\u7684\u65e7\u8bba\u65ad\u3001\u5b64\u513f\u9875\u3001\u7f3a\u5931\u7684\u4ea4\u53c9\u5f15\u7528\u3001data gap\u3002<\/p>\n<hr \/>\n<h4>1.3 &#x1f4c7; index.md&#xff1a;\u4e00\u4e2a\u6587\u4ef6\u66ff\u4ee3\u5411\u91cf RAG<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"719\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261010010944-6ac99058167a4.png\" width=\"1280\" \/><\/p>\n<p>index.md \u662f wiki \u7684\u76ee\u5f55\u5361\u7247\u67dc&#xff1a;\u6bcf\u9875\u5e26\u94fe\u63a5 &#043; \u4e00\u53e5\u8bdd\u6458\u8981 &#043; metadata&#xff0c;\u6309\u5206\u7c7b\u7ec4\u7ec7<\/p>\n<p>LLM \u7b54\u9898\u524d\u5148\u8bfb\u5b83\u5b9a\u4f4d\u76f8\u5173\u9875<\/p>\n<p>\u2728 \u5728 ~100 \u6e90\u3001\u51e0\u767e\u9875\u89c4\u6a21\u4e0b&#xff0c;\u8fd9\u4e00\u4e2a\u6587\u4ef6\u5c31\u591f\u66ff\u4ee3\u5411\u91cf RAG \u57fa\u7840\u8bbe\u65bd\u3002<\/p>\n<p>\u4e0d\u9700\u8981 embedding&#xff0c;\u4e0d\u9700\u8981\u5411\u91cf\u5e93\u3002<\/p>\n<p>\u7528 LLM \u7684\u8bed\u4e49\u7406\u89e3\u80fd\u529b\u66ff\u4ee3\u5411\u91cf\u76f8\u4f3c\u5ea6\u2014\u2014\u5c0f\u89c4\u6a21\u4e0b\u524d\u8005\u53cd\u800c\u66f4\u51c6\u3002<\/p>\n<p>\u4e00\u4e2a markdown \u76ee\u5f55 &#043; \u4e00\u4e2a append\u2011only \u65e5\u5fd7&#xff0c;\u6a21\u62df\u51fa mini \u6570\u636e\u5e93\u7684\u5bfc\u822a\u80fd\u529b<\/p>\n<hr \/>\n<h3>&#x1f6e0;\ufe0f \u4e8c\u3001\u4e24\u6761\u5de5\u7a0b\u843d\u5730\u8def\u7ebf<\/h3>\n<table>\n<tbody>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>&#x1f916; nashsu\/llm_wiki<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>&#x1f9e0; garrytan\/gbrain<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u8840\u7edf<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u663e\u5f0f\u81f4\u656c Karpathy pattern<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u72ec\u7acb\u8840\u7edf&#xff0c;\u4ece OpenClaw agent fork \u957f\u51fa\u6765<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u5f62\u6001<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u8de8\u5e73\u53f0\u684c\u9762 GUI<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>CLI \/ daemon \/ MCP server<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u76ee\u6807\u7528\u6237<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u4e2a\u4eba\u77e5\u8bc6\u7ba1\u7406\u8005<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>AI coding agent &#043; \u56e2\u961f<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u540e\u7aef<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>Rust &#043; \u53ef\u9009 LanceDB<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>TypeScript (Bun) &#043; PGLite\/Postgres&#043;pgvector<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u751f\u4ea7\u89c4\u6a21<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>\u4e2a\u4eba\u7528<\/p>\n<\/td>\n<td colspan=\"1\" rowspan=\"1\">\n<p>146K \u9875\u300124K \u4eba\u30015K \u516c\u53f8\u300166 cron jobs<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h4>&#x1f5a5;\ufe0f llm_wiki&#xff1a;\u4e2a\u4eba\u77e5\u8bc6\u7ba1\u7406\u8005\u7684\u201c\u81ea\u52a8\u9a7e\u9a76\u7b14\u8bb0\u201d<\/h4>\n<p>&#x1f3af;\u00a0\u6838\u5fc3\u5b9a\u4f4d \u628a Obsidian \u53d8\u6210 LLM \u80fd\u81ea\u52a8\u7f16\u5199\u3001\u6574\u7406\u3001\u4ea4\u53c9\u5f15\u7528\u7684\u77e5\u8bc6\u5e93<\/p>\n<p>&#x1f4a2;\u00a0\u89e3\u51b3\u7684\u75db\u70b9 \u4f60\u6254\u8fdb\u53bb\u4e00\u5806\u6587\u7ae0\/\u8bba\u6587&#xff0c;\u5e0c\u671b LLM \u81ea\u52a8\u62c6\u89e3\u6210\u6982\u5ff5\u3001\u5b9e\u4f53&#xff0c;\u5e76\u6301\u7eed\u7ef4\u62a4\u5b83\u4eec\u4e4b\u95f4\u7684\u5173\u8054\u2014\u2014\u4f46\u4f60\u4ecd\u9700\u8981\u4fdd\u7559\u4eba\u7c7b\u7684\u5ba1\u9605\u6743&#xff0c;\u4e14\u4e0d\u4fe1\u4efb LLM \u81ea\u7531\u53d1\u6325\u65f6\u53ef\u80fd\u4ea7\u751f\u7684\u5e7b\u89c9<\/p>\n<p>&#x1f9e9;\u00a0\u6838\u5fc3\u6269\u5c55&#xff08;\u8d85\u8d8a Karpathy \u539f\u6587\u7684\u90e8\u5206&#xff09;<\/p>\n<p>&#x1f539;\u00a0\u4e24\u6b65\u94fe\u5f0f\u63a8\u7406\u5f55\u5165 \u5148\u8ba9 LLM \u5206\u6790\u6e90\u6750\u6599&#xff08;\u62bd\u5b9e\u4f53\u3001\u6982\u5ff5\u3001\u77db\u76fe\u70b9\u3001\u5efa\u8bae&#xff09;&#xff0c;\u518d\u751f\u6210 wiki \u9875\u3002\u597d\u5904\u662f\u63a8\u7406\u8fc7\u7a0b\u53ef\u56de\u6eaf&#xff0c;\u5185\u5bb9\u66f4\u7ed3\u6784\u5316<\/p>\n<p>&#x1f539;\u00a04 \u4fe1\u53f7\u77e5\u8bc6\u56fe\u8c31 &#043; \u81ea\u52a8\u805a\u7c7b \u4e0d\u53ea\u4f9d\u8d56\u00a0[[wikilink]]&#xff0c;\u8fd8\u5229\u7528\u76f4\u63a5\u94fe\u63a5\u3001\u8d44\u6e90\u91cd\u5408\u5ea6\u3001Adamic\u2011Adar \u7b49\u56fe\u7b97\u6cd5\u81ea\u52a8\u53d1\u73b0\u9690\u6027\u5173\u8054\u3002\u53ef\u4ee5\u95ee\u201c\u54ea\u4e9b\u4e3b\u9898\u88ab\u610f\u5916\u8fde\u5728\u4e86\u4e00\u8d77&#xff1f;\u201d<\/p>\n<p>&#x1f539;\u00a0\u201c\u4ec5\u67e5\u539f\u59cb\u6750\u6599\u201d\u6a21\u5f0f \u5f53\u4f60\u5bf9 LLM \u7684\u603b\u7ed3\u4e0d\u653e\u5fc3\u65f6&#xff0c;\u4e00\u952e\u5207\u56de\u4f20\u7edf RAG\u2014\u2014\u53ea\u4ece\u539f\u6587\u62bd\u53d6\u7b54\u6848&#xff0c;\u4e0d\u8fdb\u884c\u4e8c\u6b21\u5408\u6210<\/p>\n<p>\u2699\ufe0f\u00a0\u6280\u672f\u5f62\u6001 \u8de8\u5e73\u53f0\u684c\u9762 GUI&#xff08;\u6240\u89c1\u5373\u6240\u5f97\u7684\u4e09\u680f\u5e03\u5c40&#xff09;&#xff0c;\u540e\u7aef Rust &#043; \u53ef\u9009\u7684\u5411\u91cf\u6570\u636e\u5e93&#xff0c;\u9762\u5411\u4e2a\u4eba<\/p>\n<hr \/>\n<h4>&#x1f310; gbrain&#xff1a;AI Agent \u548c\u56e2\u961f\u7684\u201c\u53ef\u81ea\u6211\u6f14\u5316\u7684\u516c\u53f8\u5927\u8111\u201d<\/h4>\n<p>\u4e00\u53e5\u8bdd&#xff1a;\u8ba9 agent \u80fd\u50cf\u4eba\u67e5\u516c\u53f8 wiki \u4e00\u6837&#xff0c;\u81ea\u52a8\u5b58\u53d6\u3001\u6574\u7406\u3001\u53d1\u73b0\u95ee\u9898&#xff0c;\u5e76\u5141\u8bb8 schema \u81ea\u884c\u6f14\u5316<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"417\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261010010944-6ac99058b70af.png\" width=\"881\" \/><\/p>\n<h4>&#x1f914; \u5b83\u60f3\u89e3\u51b3\u4ec0\u4e48&#xff1f;<\/h4>\n<p>\u751f\u4ea7\u73af\u5883\u4e2d&#xff0c;Agent \u8de8\u4f1a\u8bdd\u4f1a\u5931\u5fc6&#xff0c;\u91cd\u590d\u52b3\u52a8\u4e25\u91cd\u3002<\/p>\n<p>\u9700\u8981\u4e00\u79cd\u673a\u5236&#xff0c;\u8ba9 Agent \u5c06\u5bf9\u8bdd\u4e2d\u4ea7\u751f\u7684\u77e5\u8bc6\u6301\u4e45\u5316&#xff0c;\u4e14\u8fd9\u4e2a\u77e5\u8bc6\u5e93\u7684\u7ed3\u6784&#xff08;\u5b9e\u4f53\u7c7b\u578b\u3001\u5173\u7cfb\u7c7b\u578b&#xff09;\u80fd\u968f\u4e1a\u52a1\u81ea\u52a8\u751f\u957f&#xff0c;\u65e0\u9700\u4eba\u7c7b\u9884\u5148\u8bbe\u8ba1\u5b8c\u6574\u3002<\/p>\n<hr \/>\n<h4>&#x1f9f1; \u6838\u5fc3\u8bbe\u8ba1<\/h4>\n<h5>&#x1f9e9; \u96f6 LLM \u8c03\u7528\u7684\u5173\u7cfb\u62bd\u53d6<\/h5>\n<p>\u4e0d\u9760 LLM \u8bc6\u522b\u5b9e\u4f53\u5173\u7cfb&#xff0c;\u800c\u662f\u76f4\u63a5\u5339\u914d\u00a0[[wiki\/people\/bob]]\u00a0\u8fd9\u6837\u7684\u94fe\u63a5\u8bed\u6cd5&#xff0c;\u81ea\u52a8\u751f\u6210 typed edges&#xff08;attended,\u00a0works_at\u00a0\u7b49&#xff09;<\/p>\n<ul>\n<li>\n<p>\u2705 \u56fe\u968f\u9875\u9762\u66f4\u65b0\u5b9e\u65f6\u589e\u957f<\/p>\n<\/li>\n<li>\n<p>\u2705 \u65e0 LLM \u6210\u672c\u3001\u5ef6\u8fdf\u548c\u5931\u8d25\u6a21\u5f0f<\/p>\n<\/li>\n<\/ul>\n<h5>&#x1f50c; MCP \u539f\u751f\u63a5\u53e3<\/h5>\n<p>\u6240\u6709\u64cd\u4f5c\u901a\u8fc7 MCP \u534f\u8bae\u66b4\u9732&#xff0c;Agent \u7528\u00a0search\u00a0\/\u00a0think\u00a0\/\u00a0put_page\u00a0\u7b49\u5de5\u5177\u81ea\u52a8\u7ec4\u88c5\u4e0a\u4e0b\u6587&#xff0c;\u4eba\u7c7b\u4e0d\u518d\u76f4\u63a5\u64cd\u4f5c wiki<\/p>\n<p>\u628a Karpathy \u7684\u201c\u4eba\u673a\u5206\u5de5\u201d\u518d\u5411\u524d\u63a8\u4e86\u4e00\u6b65&#xff1a;\u4eba\u53ea\u5b9a\u89c4\u5219&#xff0c;Agent \u8d1f\u8d23\u8bfb\u5199\u3002<\/p>\n<h5>&#x1f4e6; \u53ef\u6f14\u5316\u7684 Schema \u5305<\/h5>\n<p>\u4e0d\u518d\u662f\u5199\u6b7b\u4e00\u4efd markdown \u5baa\u6cd5&#xff0c;\u800c\u662f\u7248\u672c\u5316\u3001\u53ef\u5207\u6362\u7684 schema \u5305&#xff08;\u5982\u00a0gbrain-base-v2&#xff09;<\/p>\n<ul>\n<li>\n<p>Agent \u53ef\u901a\u8fc7\u00a0schema suggest\u00a0\u63d0\u51fa\u65b0\u5b9e\u4f53\/\u5173\u7cfb\u7c7b\u578b<\/p>\n<\/li>\n<li>\n<p>\u4eba\u7c7b\u5ba1\u6838\u540e\u81ea\u52a8\u7eb3\u5165<\/p>\n<\/li>\n<li>\n<p>\u5b9e\u73b0\u00a0\u52a8\u6001\u7ed3\u6784 &#043; \u52a8\u6001\u5185\u5bb9<\/p>\n<\/li>\n<\/ul>\n<h5>&#x1fa7a; \u6bcf\u6b21\u67e5\u8be2\u81ea\u5e26\u201c\u8bda\u5b9e\u68c0\u67e5\u201d<\/h5>\n<p>think\u00a0\u547d\u4ee4\u5728\u6bcf\u6b21\u67e5\u8be2\u65f6\u663e\u5f0f\u8f93\u51fa&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u54ea\u4e9b\u9875\u9762\u8fc7\u65f6\u4e86<\/p>\n<\/li>\n<li>\n<p>\u54ea\u6761\u58f0\u660e\u6ca1\u6709\u51fa\u5904<\/p>\n<\/li>\n<li>\n<p>\u54ea\u4e24\u9875\u76f8\u4e92\u77db\u76fe<\/p>\n<\/li>\n<li>\n<p>\u54ea\u91cc\u6709\u8be5\u8865\u7684\u6d1e<\/p>\n<\/li>\n<\/ul>\n<p>\u4e0d\u7b49\u5b9a\u671f lint&#xff0c;\u76f2\u533a\u5b9e\u65f6\u66b4\u9732\u3002<\/p>\n<hr \/>\n<h4>\u2699\ufe0f \u6280\u672f\u5f62\u6001<\/h4>\n<p>CLI \/ \u5b88\u62a4\u8fdb\u7a0b \/ MCP Server TypeScript(Bun) &#043; PGLite\/Postgres &#043; pgvector<\/p>\n<p>\u751f\u4ea7\u89c4\u6a21\u5df2\u9a8c\u8bc1&#xff1a;146K \u9875 \u00b7 24K \u4eba \u00b7 5K \u516c\u53f8<\/p>\n<hr \/>\n<h4>&#x1f4cc; \u4e00\u53e5\u8bdd\u9009\u578b<\/h4>\n<table>\n<tr>\u573a\u666f\u9009\u62e9<\/tr>\n<tbody>\n<tr>\n<td>\u4e2a\u4eba\u7814\u7a76\u8005\u3001\u7b14\u8bb0\u91cd\u5ea6\u7528\u6237&#xff0c;\u91cd\u89c6\u4eba\u5de5\u5ba1\u9605\u548c\u77e5\u8bc6\u53d1\u73b0<\/td>\n<td>llm_wiki<\/td>\n<\/tr>\n<tr>\n<td>\u7ed9 AI Agent \u6216\u56e2\u961f\u642d\u5efa\u957f\u671f\u8bb0\u5fc6\u7cfb\u7edf&#xff0c;\u9700\u8981\u81ea\u52a8\u5316\u6f14\u5316\u3001\u65e0 LLM \u5f00\u9500\u548c\u5185\u7f6e\u8bda\u4fe1\u673a\u5236<\/td>\n<td>gbrain<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h3>&#x1f680; \u4e09\u3001\u5bf9 Agent \u5f00\u53d1\u8005\u7684\u67b6\u6784\u542f\u793a<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"535\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261010010945-6ac990590547b.png\" width=\"780\" \/><\/p>\n<h4>&#x1f4cc; \u77e5\u8bc6\u5e93\u4e0d\u505a RAG \u515c\u5e95&#xff0c;\u505a\u00a0Context Compiler<\/h4>\n<p>RAG \u628a raw chunks \u5f53\u201c\u68c0\u7d22\u6e90\u201d&#xff0c;\u6bcf\u6b21 query \u4ece\u5934\u62fc\u3002<\/p>\n<p>Context Compiler\u00a0\u5219\u53cd\u8fc7\u6765&#xff1a;Agent \u7684\u8bb0\u5fc6\u5c42\u5e94\u63d0\u524d\u5c06\u539f\u59cb\u4fe1\u53f7&#xff08;\u90ae\u4ef6 \/ \u4f1a\u8bae \/ \u63a8\u6587 \/ \u6587\u6863&#xff09;\u7f16\u8bd1\u6210\u7ed3\u6784\u5316\u7684 context&#xff0c;\u6bcf\u6b21 query \u76f4\u63a5\u8bfb\u53d6\u5df2\u7f16\u8bd1\u597d\u7684 wiki\u3002<\/p>\n<ul>\n<li>\n<p>\u4ef7\u503c\u8dc3\u8fc1&#xff1a;\u7ef4\u62a4\u6210\u672c\u4ece\u00a0O(n) \u2192 O(1)&#xff0c;\u77e5\u8bc6\u624d\u771f\u6b63\u6210\u4e3a\u8d44\u4ea7<\/p>\n<\/li>\n<li>\n<p>\u672a\u6765\u67b6\u6784&#xff1a;\u5927\u6982\u7387\u8d70\u5411\u00a0\u53cc\u5c42\u6a21\u578b<\/p>\n<ul>\n<li>\n<p>wiki \u5c42&#xff08;\u7efc\u5408 \/ \u5173\u7cfb\u7b54\u6848&#xff09;<\/p>\n<\/li>\n<li>\n<p>RAG \u5c42&#xff08;raw chunk \u515c\u5e95&#xff09;<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<hr \/>\n<h4>&#x1fa7b; Agent \u8bb0\u5fc6\u5c42&#xff1a;\u81ea\u6211\u4f53\u68c0 &amp; \u81ea\u6211\u7ea0\u9519<\/h4>\n<table>\n<tr>\u673a\u5236\u4f5c\u7528\u72ec\u7279\u5356\u70b9<\/tr>\n<tbody>\n<tr>\n<td>Lint<\/td>\n<td>\u8ba9\u77e5\u8bc6\u5e93\u4e0d\u81ea\u76f8\u77db\u76fe<\/td>\n<td>\u7ef4\u6301\u5185\u90e8\u4e00\u81f4\u6027<\/td>\n<\/tr>\n<tr>\n<td>Gap Analysis<\/td>\n<td>\u8bda\u5b9e\u66b4\u9732\u76f2\u533a&#xff1a;\u201c\u6211\u54ea\u91cc\u4e0d\u77e5\u9053\u201d<\/td>\n<td>\u533a\u522b\u4e8e\u4f20\u7edf RAG \u7684\u6838\u5fc3\u4f18\u52bf<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li>\n<p>gbrain \u7684\u00a0think\u00a0\u547d\u4ee4\u5df2\u5c06\u8fd9\u79cd\u81ea\u7701\u80fd\u529b\u505a\u5230\u4e86\u6bcf\u6b21\u67e5\u8be2\u7ea7\u522b&#xff0c;\u800c\u975e\u7b49\u5b9a\u671f lint \u624d\u66b4\u9732\u76f2\u533a&#xff0c;\u8ba9\u77e5\u8bc6\u8fdb\u5316\u53d8\u4e3a\u5b9e\u65f6\u8fc7\u7a0b<\/p>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>&#x1f9e0;\u524d\u8a00<br \/>\n\u4f60\u8fd8\u5728\u8ba9 RAG \u50cf\u4e2a\u4e34\u8003\u524d\u4e00\u901a\u4e71\u7ffb\u7684\u5b66\u6e23\u5417&#xff1f;&#x1f629; \u6bcf\u6b21\u63d0\u95ee\u624d\u624b\u5fd9\u811a\u4e71\u5730\u68c0\u7d22&#xff0c;\u7528\u5b8c\u5373\u5f03&#xff0c;\u77e5\u8bc6\u5e93\u6d3b\u6210\u4e86\u4e00\u6b21\u6027\u7b77\u5b50 &#x1f962;<br \/>\n\u2728\u00a0\u73b0\u5728&#xff0c;\u6362\u4e2a\u73a9\u6cd5&#xff01; \u628a\u68c0\u7d22\u4ece\u67e5\u8be2\u671f\u63d0\u524d\u5230\u6444\u5165\u671f\u7f16\u8bd1\u2014\u2014\u5728\u77e5\u8bc6\u5165\u5e93\u7684\u90a3\u4e00\u523b&#xff0c;\u5c31\u628a\u201c\u6d88\u5316\u201d\u548c\u201c\u7d22\u5f15\u201d\u505a\u5230\u4f4d&#xff0c;\u8ba9\u77e5\u8bc6\u5e93\u4ece\u6d88\u8017\u54c1&#xff0c;\u5f7b\u5e95\u53d8\u6210\u80fd\u4e0d\u65ad\u589e\u503c\u7684\u590d\u5229\u8d44\u4ea7 &#x1f4b0;&#x1f4c8; <\/p>\n","protected":false},"author":2,"featured_media":114795,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[10533,74,52,2983,1807],"topic":[],"class_list":["post-114800","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-llm-wiki","tag-agent","tag-aigc","tag-2983","tag-1807"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u9006\u8f6c RAG\uff1aLLM\u2011wiki \u7684\u77e5\u8bc6\u590d\u5229 - \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\/114800.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u9006\u8f6c RAG\uff1aLLM\u2011wiki \u7684\u77e5\u8bc6\u590d\u5229 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"&#x1f9e0;\u524d\u8a00 \u4f60\u8fd8\u5728\u8ba9 RAG \u50cf\u4e2a\u4e34\u8003\u524d\u4e00\u901a\u4e71\u7ffb\u7684\u5b66\u6e23\u5417&#xff1f;&#x1f629; \u6bcf\u6b21\u63d0\u95ee\u624d\u624b\u5fd9\u811a\u4e71\u5730\u68c0\u7d22&#xff0c;\u7528\u5b8c\u5373\u5f03&#xff0c;\u77e5\u8bc6\u5e93\u6d3b\u6210\u4e86\u4e00\u6b21\u6027\u7b77\u5b50 &#x1f962; \u2728\u00a0\u73b0\u5728&#xff0c;\u6362\u4e2a\u73a9\u6cd5&#xff01; \u628a\u68c0\u7d22\u4ece\u67e5\u8be2\u671f\u63d0\u524d\u5230\u6444\u5165\u671f\u7f16\u8bd1\u2014\u2014\u5728\u77e5\u8bc6\u5165\u5e93\u7684\u90a3\u4e00\u523b&#xff0c;\u5c31\u628a\u201c\u6d88\u5316\u201d\u548c\u201c\u7d22\u5f15\u201d\u505a\u5230\u4f4d&#xff0c;\u8ba9\u77e5\u8bc6\u5e93\u4ece\u6d88\u8017\u54c1&#xff0c;\u5f7b\u5e95\u53d8\u6210\u80fd\u4e0d\u65ad\u589e\u503c\u7684\u590d\u5229\u8d44\u4ea7 &#x1f4b0;&#x1f4c8;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/114800.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-10T01:09:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261010010940-6ac9905444859.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\/114800.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/114800.html\",\"name\":\"\u9006\u8f6c RAG\uff1aLLM\u2011wiki \u7684\u77e5\u8bc6\u590d\u5229 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-10T01:09:46+00:00\",\"dateModified\":\"2026-10-10T01:09:46+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/114800.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/114800.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/114800.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u9006\u8f6c RAG\uff1aLLM\u2011wiki \u7684\u77e5\u8bc6\u590d\u5229\"}]},{\"@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":"\u9006\u8f6c RAG\uff1aLLM\u2011wiki \u7684\u77e5\u8bc6\u590d\u5229 - \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\/114800.html","og_locale":"zh_CN","og_type":"article","og_title":"\u9006\u8f6c RAG\uff1aLLM\u2011wiki \u7684\u77e5\u8bc6\u590d\u5229 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"&#x1f9e0;\u524d\u8a00 \u4f60\u8fd8\u5728\u8ba9 RAG \u50cf\u4e2a\u4e34\u8003\u524d\u4e00\u901a\u4e71\u7ffb\u7684\u5b66\u6e23\u5417&#xff1f;&#x1f629; \u6bcf\u6b21\u63d0\u95ee\u624d\u624b\u5fd9\u811a\u4e71\u5730\u68c0\u7d22&#xff0c;\u7528\u5b8c\u5373\u5f03&#xff0c;\u77e5\u8bc6\u5e93\u6d3b\u6210\u4e86\u4e00\u6b21\u6027\u7b77\u5b50 &#x1f962; \u2728\u00a0\u73b0\u5728&#xff0c;\u6362\u4e2a\u73a9\u6cd5&#xff01; \u628a\u68c0\u7d22\u4ece\u67e5\u8be2\u671f\u63d0\u524d\u5230\u6444\u5165\u671f\u7f16\u8bd1\u2014\u2014\u5728\u77e5\u8bc6\u5165\u5e93\u7684\u90a3\u4e00\u523b&#xff0c;\u5c31\u628a\u201c\u6d88\u5316\u201d\u548c\u201c\u7d22\u5f15\u201d\u505a\u5230\u4f4d&#xff0c;\u8ba9\u77e5\u8bc6\u5e93\u4ece\u6d88\u8017\u54c1&#xff0c;\u5f7b\u5e95\u53d8\u6210\u80fd\u4e0d\u65ad\u589e\u503c\u7684\u590d\u5229\u8d44\u4ea7 &#x1f4b0;&#x1f4c8;","og_url":"https:\/\/www.wsisp.com\/helps\/114800.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-10T01:09:46+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261010010940-6ac9905444859.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\/114800.html","url":"https:\/\/www.wsisp.com\/helps\/114800.html","name":"\u9006\u8f6c RAG\uff1aLLM\u2011wiki \u7684\u77e5\u8bc6\u590d\u5229 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-10T01:09:46+00:00","dateModified":"2026-10-10T01:09:46+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/114800.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/114800.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/114800.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u9006\u8f6c RAG\uff1aLLM\u2011wiki \u7684\u77e5\u8bc6\u590d\u5229"}]},{"@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\/114800","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=114800"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/114800\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/114795"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=114800"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=114800"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=114800"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=114800"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}