{"id":120992,"date":"2026-11-01T22:25:57","date_gmt":"2026-11-01T14:25:57","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/120992.html"},"modified":"2026-11-01T22:25:57","modified_gmt":"2026-11-01T14:25:57","slug":"%e5%a4%a7%e6%a8%a1%e5%9e%8b%e4%b8%8a%e4%b8%8b%e6%96%87%e7%aa%97%e5%8f%a3%e8%af%a6%e8%a7%a3%ef%bc%9a%e5%8e%9f%e7%90%86%e3%80%81%e9%99%90%e5%88%b6%e4%b8%8e%e4%bc%98%e5%8c%96%e5%ae%9e%e8%b7%b5","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/120992.html","title":{"rendered":"\u5927\u6a21\u578b\u4e0a\u4e0b\u6587\u7a97\u53e3\u8be6\u89e3\uff1a\u539f\u7406\u3001\u9650\u5236\u4e0e\u4f18\u5316\u5b9e\u8df5"},"content":{"rendered":"<h3>\u5b66\u4e60\u76ee\u6807<\/h3>\n<li>\u7406\u89e3\u4e0a\u4e0b\u6587\u7a97\u53e3\u7684\u6838\u5fc3\u5b9a\u4e49\u4e0e\u4f5c\u7528<\/li>\n<li>\u638c\u63e1\u4e3b\u6d41\u5927\u6a21\u578b\u7684\u4e0a\u4e0b\u6587\u7a97\u53e3\u5dee\u5f02<\/li>\n<li>\u5b66\u4f1a\u5728\u5b9e\u9645\u573a\u666f\u4e2d\u4f18\u5316\u4e0a\u4e0b\u6587\u7a97\u53e3\u7684\u4f7f\u7528<\/li>\n<li>\u4e86\u89e3\u4e0a\u4e0b\u6587\u7a97\u53e3\u7684\u6280\u672f\u6f14\u8fdb\u8d8b\u52bf<\/li>\n<h3>\u4e00\u3001\u4ec0\u4e48\u662f\u4e0a\u4e0b\u6587\u7a97\u53e3&#xff1f;<\/h3>\n<p>&#x1f4a1; \u6838\u5fc3\u5b9a\u4e49&#xff1a;\u4e0a\u4e0b\u6587\u7a97\u53e3\u662f\u5927\u6a21\u578b\u80fd\u591f\u540c\u65f6\u5904\u7406\u7684\u8f93\u5165\u5e8f\u5217\u6700\u5927\u957f\u5ea6&#xff08;\u4ee5tokens\u4e3a\u5355\u4f4d&#xff09;&#xff0c;\u5b83\u51b3\u5b9a\u4e86\u6a21\u578b\u80fd\u201c\u8bb0\u4f4f\u201d\u591a\u5c11\u5386\u53f2\u4fe1\u606f\u3002<\/p>\n<p>\u6bd4\u5982\u4f60\u548cGPT-4\u804a\u5929\u65f6&#xff0c;\u524d\u9762\u7684\u5bf9\u8bdd\u5185\u5bb9\u4f1a\u88ab\u7eb3\u5165\u4e0a\u4e0b\u6587\u7a97\u53e3\u2014\u2014\u5982\u679c\u7a97\u53e3\u8db3\u591f\u5927&#xff0c;\u6a21\u578b\u80fd\u8bb0\u4f4f\u4f6010\u8f6e\u524d\u8bf4\u7684\u8bdd&#xff1b;\u5982\u679c\u7a97\u53e3\u592a\u5c0f&#xff0c;\u5b83\u53ef\u80fd\u4f1a\u201c\u5fd8\u8bb0\u201d\u65e9\u671f\u7684\u5173\u952e\u4fe1\u606f\u3002<\/p>\n<h4>1.1 \u4e0a\u4e0b\u6587\u7a97\u53e3\u7684\u5355\u4f4d&#xff1a;Tokens<\/h4>\n<p>Tokens\u4e0d\u662f\u5b57\u7b26\u6216\u5355\u8bcd&#xff0c;\u800c\u662f\u6a21\u578b\u5206\u8bcd\u5668&#xff08;Tokenizer&#xff09;\u5c06\u6587\u672c\u62c6\u5206\u6210\u7684\u6700\u5c0f\u5904\u7406\u5355\u5143&#xff1a;<\/p>\n<ul>\n<li>\u82f1\u6587&#xff1a;\u901a\u5e38\u662f\u5355\u8bcd\u6216\u8bcd\u6839&#xff08;\u5982&#034;unhappiness&#034;\u62c6\u5206\u4e3a&#034;un&#034; &#043; \u201chappiness\u201d&#xff09;<\/li>\n<li>\u4e2d\u6587&#xff1a;\u901a\u5e38\u662f\u5355\u4e2a\u6c49\u5b57\u6216\u5e38\u7528\u8bcd\u7ec4&#xff08;\u5982&#034;\u4eba\u5de5\u667a\u80fd&#034;\u62c6\u5206\u4e3a&#034;\u4eba\u5de5&#034; &#043; \u201c\u667a\u80fd\u201d&#xff09;<\/li>\n<\/ul>\n<p>\u4e00\u4e2atoken\u5927\u7ea6\u5bf9\u5e940.7\u4e2a\u82f1\u6587\u5355\u8bcd\u62161.5\u4e2a\u4e2d\u6587\u5b57\u7b26\u3002<\/p>\n<h4>1.2 \u4e3a\u4ec0\u4e48\u9700\u8981\u4e0a\u4e0b\u6587\u7a97\u53e3&#xff1f;<\/h4>\n<p>Transformer\u67b6\u6784\u7684\u6ce8\u610f\u529b\u673a\u5236\u4f9d\u8d56\u5e8f\u5217\u957f\u5ea6&#xff1a;\u6a21\u578b\u9700\u8981\u901a\u8fc7\u6ce8\u610f\u529b\u8ba1\u7b97&#xff0c;\u6355\u6349\u8f93\u5165\u5e8f\u5217\u4e2d\u6bcf\u4e2atoken\u4e0e\u5176\u4ed6token\u7684\u5173\u7cfb\u3002\u4e0a\u4e0b\u6587\u7a97\u53e3\u7684\u5927\u5c0f\u76f4\u63a5\u9650\u5236\u4e86\u8fd9\u79cd\u5173\u7cfb\u6355\u6349\u7684\u8303\u56f4\u2014\u2014\u7a97\u53e3\u8d8a\u5927&#xff0c;\u6a21\u578b\u80fd\u7406\u89e3\u7684\u4e0a\u4e0b\u6587\u8d8a\u5b8c\u6574\u3002<\/p>\n<h3>\u4e8c\u3001\u4e0a\u4e0b\u6587\u7a97\u53e3\u7684\u9650\u5236\u4e0e\u6311\u6218<\/h3>\n<p>\u26a0\ufe0f \u6838\u5fc3\u75db\u70b9&#xff1a;\u7a97\u53e3\u5927\u5c0f\u4e0e\u8ba1\u7b97\u6210\u672c\u3001\u6a21\u578b\u6027\u80fd\u4e4b\u95f4\u5b58\u5728\u5929\u7136\u77db\u76fe\u3002<\/p>\n<h4>2.1 \u8bb0\u5fc6\u5bb9\u91cf\u6709\u9650<\/h4>\n<p>\u8d85\u8fc7\u7a97\u53e3\u957f\u5ea6\u7684\u5185\u5bb9\u4f1a\u88ab\u6a21\u578b\u201c\u9057\u5fd8\u201d\u3002\u6bd4\u5982\u7528GPT-4&#xff08;8k\u7a97\u53e3&#xff09;\u5904\u7406\u4e00\u7bc710k\u5b57\u7684\u6587\u6863\u65f6&#xff0c;\u6a21\u578b\u53ea\u80fd\u770b\u5230\u524d8k\u5b57\u7684\u5185\u5bb9&#xff0c;\u540e\u9762\u7684\u4fe1\u606f\u4f1a\u88ab\u622a\u65ad\u3002<\/p>\n<h4>2.2 \u8ba1\u7b97\u6210\u672c\u5267\u589e<\/h4>\n<p>Transformer\u7684\u6ce8\u610f\u529b\u8ba1\u7b97\u590d\u6742\u5ea6\u662fO(n\u00b2)&#xff08;n\u4e3a\u7a97\u53e3\u957f\u5ea6&#xff09;\u3002\u7a97\u53e3\u7ffb\u500d&#xff0c;\u8ba1\u7b97\u91cf\u4f1a\u53d8\u6210\u539f\u6765\u76844\u500d\u2014\u2014\u8fd9\u610f\u5473\u7740\u66f4\u5927\u7684\u7a97\u53e3\u9700\u8981\u66f4\u591a\u7684\u7b97\u529b\u548c\u663e\u5b58\u652f\u6301\u3002<\/p>\n<h4>2.3 \u5b9e\u9645\u5e94\u7528\u4e2d\u7684\u95ee\u9898<\/h4>\n<ul>\n<li>\u591a\u8f6e\u5bf9\u8bdd\u4e2d\u65ad&#xff1a;\u957f\u5bf9\u8bdd\u4e2d&#xff0c;\u65e9\u671f\u7684\u5173\u952e\u4fe1\u606f\u88ab\u6324\u51fa\u7a97\u53e3&#xff0c;\u5bfc\u81f4\u6a21\u578b\u7b54\u975e\u6240\u95ee\u3002<\/li>\n<li>\u957f\u6587\u6863\u5904\u7406\u56f0\u96be&#xff1a;\u65e0\u6cd5\u4e00\u6b21\u6027\u7406\u89e3\u5b8c\u6574\u7684\u62a5\u544a\u3001\u4ee3\u7801\u6216\u4e66\u7c4d\u3002<\/li>\n<li>\u63a8\u7406\u80fd\u529b\u4e0b\u964d&#xff1a;\u601d\u7ef4\u94fe&#xff08;CoT&#xff09;\u9700\u8981\u8db3\u591f\u7684\u4e0a\u4e0b\u6587\u7a7a\u95f4\u5c55\u5f00\u6b65\u9aa4&#xff0c;\u7a97\u53e3\u592a\u5c0f\u4f1a\u9650\u5236\u63a8\u7406\u6df1\u5ea6\u3002<\/li>\n<\/ul>\n<h3>\u4e09\u3001\u4e3b\u6d41\u5927\u6a21\u578b\u4e0a\u4e0b\u6587\u7a97\u53e3\u5bf9\u6bd4<\/h3>\n<p>\u4e0b\u8868\u6574\u7406\u4e862024\u5e74\u4e3b\u6d41\u95ed\u6e90\u4e0e\u5f00\u6e90\u6a21\u578b\u7684\u4e0a\u4e0b\u6587\u7a97\u53e3\u5927\u5c0f&#xff1a;<\/p>\n<table>\n<tr>\u6a21\u578b\u7c7b\u578b\u6a21\u578b\u540d\u79f0\u4e0a\u4e0b\u6587\u7a97\u53e3&#xff08;tokens&#xff09;\u9002\u7528\u573a\u666f<\/tr>\n<tbody>\n<tr>\n<td>\u95ed\u6e90<\/td>\n<td>GPT-4 Turbo<\/td>\n<td>128k<\/td>\n<td>\u957f\u6587\u6863\u5904\u7406\u3001\u590d\u6742\u5bf9\u8bdd<\/td>\n<\/tr>\n<tr>\n<td>\u95ed\u6e90<\/td>\n<td>Claude 3 Opus<\/td>\n<td>200k&#043;<\/td>\n<td>\u8d85\u957f\u7bc7\u6587\u672c\u5206\u6790<\/td>\n<\/tr>\n<tr>\n<td>\u95ed\u6e90<\/td>\n<td>Gemini Pro 1.5<\/td>\n<td>1M<\/td>\n<td>\u767e\u4e07\u7ea7token\u6587\u6863\u7406\u89e3<\/td>\n<\/tr>\n<tr>\n<td>\u5f00\u6e90<\/td>\n<td>LLaMA 2 70B<\/td>\n<td>16k<\/td>\n<td>\u901a\u7528\u5bf9\u8bdd\u3001\u4e2d\u7b49\u957f\u5ea6\u6587\u672c<\/td>\n<\/tr>\n<tr>\n<td>\u5f00\u6e90<\/td>\n<td>Qwen 14B<\/td>\n<td>32k<\/td>\n<td>\u957f\u6587\u6863\u603b\u7ed3\u3001\u591a\u8f6e\u5bf9\u8bdd<\/td>\n<\/tr>\n<tr>\n<td>\u5f00\u6e90<\/td>\n<td>Mistral 8x7B<\/td>\n<td>32k<\/td>\n<td>\u9ad8\u6548\u957f\u7a97\u53e3\u63a8\u7406<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&#x1f4a1; \u9009\u578b\u5efa\u8bae&#xff1a;<\/p>\n<ul>\n<li>\u65e5\u5e38\u5bf9\u8bdd&#xff1a;\u9009\u62e98k-16k\u7a97\u53e3&#xff08;\u5982GPT-3.5 Turbo\u3001LLaMA 2 7B&#xff09;<\/li>\n<li>\u957f\u6587\u6863\u5904\u7406&#xff1a;\u9009\u62e932k&#043;\u7a97\u53e3&#xff08;\u5982Claude 3\u3001Qwen 14B&#xff09;<\/li>\n<li>\u8d85\u957f\u7bc7\u5185\u5bb9&#xff1a;\u9009\u62e9100k&#043;\u7a97\u53e3&#xff08;\u5982Gemini Pro 1.5\u3001Claude 3 Opus&#xff09;<\/li>\n<\/ul>\n<h3>\u56db\u3001\u4e0a\u4e0b\u6587\u7a97\u53e3\u5bf9\u6a21\u578b\u8f93\u51fa\u7684\u5f71\u54cd<\/h3>\n<p>\u901a\u8fc7\u5b9e\u9645\u6848\u4f8b&#xff0c;\u6211\u4eec\u53ef\u4ee5\u76f4\u89c2\u770b\u5230\u7a97\u53e3\u5927\u5c0f\u7684\u4f5c\u7528&#xff1a;<\/p>\n<h4>\u6848\u4f8b1&#xff1a;\u591a\u8f6e\u5bf9\u8bdd\u8fde\u8d2f\u6027<\/h4>\n<p>\u573a\u666f&#xff1a;\u7528\u6237\u4e0e\u6a21\u578b\u8ba8\u8bba\u65c5\u884c\u8ba1\u5212<\/p>\n<ul>\n<li>\u5c0f\u7a97\u53e3&#xff08;4k&#xff09;&#xff1a;\u7528\u6237\u5148\u63d0\u201c\u6211\u60f3\u53bb\u5317\u4eac\u73a93\u5929\u201d&#xff0c;\u7136\u540e\u95ee\u201c\u7b2c\u4e8c\u5929\u7684\u884c\u7a0b\u63a8\u8350&#xff1f;\u201d&#xff0c;\u6a21\u578b\u53ef\u80fd\u5fd8\u8bb0\u201c\u5317\u4eac\u201d\u8fd9\u4e2a\u5173\u952e\u4fe1\u606f&#xff0c;\u63a8\u8350\u5176\u4ed6\u57ce\u5e02\u3002<\/li>\n<li>\u5927\u7a97\u53e3&#xff08;16k&#xff09;&#xff1a;\u6a21\u578b\u80fd\u8bb0\u4f4f\u6240\u6709\u5386\u53f2\u5bf9\u8bdd&#xff0c;\u51c6\u786e\u63a8\u8350\u5317\u4eac\u7684\u7b2c\u4e8c\u5929\u884c\u7a0b\u3002<\/li>\n<\/ul>\n<h4>\u6848\u4f8b2&#xff1a;\u957f\u6587\u672c\u7406\u89e3<\/h4>\n<p>\u573a\u666f&#xff1a;\u603b\u7ed3\u4e00\u7bc75k\u5b57\u7684\u6280\u672f\u62a5\u544a<\/p>\n<ul>\n<li>\u5c0f\u7a97\u53e3&#xff08;8k&#xff09;&#xff1a;\u6a21\u578b\u53ea\u80fd\u603b\u7ed3\u524d\u534a\u90e8\u5206\u5185\u5bb9&#xff0c;\u9057\u6f0f\u5173\u952e\u7ed3\u8bba\u3002<\/li>\n<li>\u5927\u7a97\u53e3&#xff08;32k&#xff09;&#xff1a;\u6a21\u578b\u80fd\u5b8c\u6574\u7406\u89e3\u62a5\u544a&#xff0c;\u751f\u6210\u5168\u9762\u7684\u603b\u7ed3\u3002<\/li>\n<\/ul>\n<h4>\u6848\u4f8b3&#xff1a;\u63a8\u7406\u80fd\u529b<\/h4>\n<p>\u573a\u666f&#xff1a;\u89e3\u51b3\u6570\u5b66\u9898\u201c\u5c0f\u660e\u67095\u4e2a\u82f9\u679c&#xff0c;\u5403\u4e862\u4e2a&#xff0c;\u53c8\u4e70\u4e863\u4e2a&#xff0c;\u73b0\u5728\u6709\u591a\u5c11&#xff1f;\u201d<\/p>\n<ul>\n<li>\u5c0f\u7a97\u53e3&#xff1a;\u5982\u679c\u524d\u9762\u6709\u5176\u4ed6\u5e72\u6270\u4fe1\u606f&#xff0c;\u6a21\u578b\u53ef\u80fd\u5ffd\u7565\u5173\u952e\u6570\u5b57\u3002<\/li>\n<li>\u5927\u7a97\u53e3&#xff1a;\u6a21\u578b\u80fd\u6e05\u6670\u6355\u6349\u6240\u6709\u6b65\u9aa4&#xff0c;\u6b63\u786e\u8ba1\u7b97\u7ed3\u679c\u3002<\/li>\n<\/ul>\n<h3>\u4e94\u3001\u4f18\u5316\u4e0a\u4e0b\u6587\u7a97\u53e3\u7684\u5b9e\u8df5\u65b9\u6cd5<\/h3>\n<p>\u5728\u5b9e\u9645\u9879\u76ee\u4e2d&#xff0c;\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u65b9\u6cd5\u6700\u5927\u5316\u4e0a\u4e0b\u6587\u7a97\u53e3\u7684\u4ef7\u503c&#xff1a;<\/p>\n<h4>5.1 \u63d0\u793a\u8bcd\u4f18\u5316&#xff1a;\u7cbe\u7b80\u8f93\u5165<\/h4>\n<p>&#x1f4a1; \u6280\u5de7&#xff1a;\u53bb\u9664\u5197\u4f59\u4fe1\u606f&#xff0c;\u53ea\u4fdd\u7559\u5173\u952e\u5185\u5bb9\u3002<\/p>\n<ul>\n<li>\u9519\u8bef\u793a\u4f8b&#xff1a;\u91cd\u590d\u8f93\u5165\u76f8\u540c\u7684\u80cc\u666f\u4fe1\u606f&#xff08;\u5982\u201c\u6211\u4e4b\u524d\u8bf4\u8fc7\u6211\u662f\u5b66\u751f\u2026\u201d&#xff09;\u3002<\/li>\n<li>\u6b63\u786e\u793a\u4f8b&#xff1a;\u7528\u4e00\u53e5\u8bdd\u603b\u7ed3\u5386\u53f2\u5173\u952e\u4fe1\u606f&#xff1a;\u201c\u603b\u7ed3&#xff1a;\u6211\u4eec\u8ba8\u8bba\u4e86\u5b66\u751f\u5982\u4f55\u7528AI\u8f85\u52a9\u5b66\u4e60&#xff0c;\u73b0\u5728\u9700\u8981\u63a8\u8350\u5de5\u5177\u3002\u201d<\/li>\n<\/ul>\n<h4>5.2 \u5206\u6bb5\u5904\u7406&#xff1a;\u957f\u5185\u5bb9\u62c6\u5206\u4e3achunk<\/h4>\n<p>\u5bf9\u4e8e\u8d85\u8fc7\u7a97\u53e3\u957f\u5ea6\u7684\u5185\u5bb9&#xff0c;\u5c06\u5176\u62c6\u5206\u4e3a\u591a\u4e2a\u5c0f\u5757&#xff0c;\u9010\u6b65\u5904\u7406&#xff1a;<br \/>\n\u2460 \u5c06\u957f\u6587\u6863\u62c6\u5206\u4e3a1k-2k token\u7684chunk&#xff1b;<br \/>\n\u2461 \u5bf9\u6bcf\u4e2achunk\u8fdb\u884c\u603b\u7ed3&#xff1b;<br \/>\n\u2462 \u5c06\u6240\u6709\u603b\u7ed3\u5408\u5e76&#xff0c;\u751f\u6210\u6700\u7ec8\u7ed3\u679c\u3002<\/p>\n<p>\u5de5\u5177\u63a8\u8350&#xff1a;LangChain\u7684RecursiveCharacterTextSplitter&#xff08;\u81ea\u52a8\u62c6\u5206\u6587\u672c&#xff09;\u3002<\/p>\n<h4>5.3 \u68c0\u7d22\u589e\u5f3a\u751f\u6210&#xff08;RAG&#xff09;&#xff1a;\u5916\u90e8\u77e5\u8bc6\u8865\u5145<\/h4>\n<p>RAG\u901a\u8fc7\u68c0\u7d22\u5916\u90e8\u77e5\u8bc6\u5e93&#xff0c;\u5c06\u76f8\u5173\u4fe1\u606f\u52a0\u5165\u4e0a\u4e0b\u6587&#xff0c;\u907f\u514d\u6a21\u578b\u4f9d\u8d56\u6709\u9650\u7684\u7a97\u53e3\u8bb0\u5fc6&#xff1a;<br \/>\n\u2460 \u5c06\u6587\u6863\u5b58\u5165\u5411\u91cf\u6570\u636e\u5e93&#xff08;\u5982Chroma\u3001Milvus&#xff09;&#xff1b;<br \/>\n\u2461 \u7528\u6237\u67e5\u8be2\u65f6&#xff0c;\u68c0\u7d22\u76f8\u5173\u6587\u6863chunk&#xff1b;<br \/>\n\u2462 \u5c06chunk\u52a0\u5165\u63d0\u793a\u8bcd&#xff0c;\u8ba9\u6a21\u578b\u751f\u6210\u51c6\u786e\u56de\u7b54\u3002<\/p>\n<p>\u4ee3\u7801\u793a\u4f8b&#xff08;LangChain &#043; Chroma&#xff09;&#xff1a;<\/p>\n<p><span class=\"token keyword\">from<\/span> langchain<span class=\"token punctuation\">.<\/span>vectorstores <span class=\"token keyword\">import<\/span> Chroma<br \/>\n<span class=\"token keyword\">from<\/span> langchain<span class=\"token punctuation\">.<\/span>embeddings <span class=\"token keyword\">import<\/span> OpenAIEmbeddings<br \/>\n<span class=\"token keyword\">from<\/span> langchain<span class=\"token punctuation\">.<\/span>text_splitter <span class=\"token keyword\">import<\/span> RecursiveCharacterTextSplitter<br \/>\n<span class=\"token keyword\">from<\/span> langchain<span class=\"token punctuation\">.<\/span>document_loaders <span class=\"token keyword\">import<\/span> TextLoader<\/p>\n<p><span class=\"token comment\"># \u52a0\u8f7d\u6587\u6863<\/span><br \/>\nloader <span class=\"token operator\">&#061;<\/span> TextLoader<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;long_document.txt&#034;<\/span><span class=\"token punctuation\">)<\/span><br \/>\ndocuments <span class=\"token operator\">&#061;<\/span> loader<span class=\"token punctuation\">.<\/span>load<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p><span class=\"token comment\"># \u62c6\u5206\u6587\u6863<\/span><br \/>\ntext_splitter <span class=\"token operator\">&#061;<\/span> RecursiveCharacterTextSplitter<span class=\"token punctuation\">(<\/span>chunk_size<span class=\"token operator\">&#061;<\/span><span class=\"token number\">1000<\/span><span class=\"token punctuation\">,<\/span> chunk_overlap<span class=\"token operator\">&#061;<\/span><span class=\"token number\">200<\/span><span class=\"token punctuation\">)<\/span><br \/>\nsplits <span class=\"token operator\">&#061;<\/span> text_splitter<span class=\"token punctuation\">.<\/span>split_documents<span class=\"token punctuation\">(<\/span>documents<span class=\"token punctuation\">)<\/span><\/p>\n<p><span class=\"token comment\"># \u6784\u5efa\u5411\u91cf\u6570\u636e\u5e93<\/span><br \/>\nembeddings <span class=\"token operator\">&#061;<\/span> OpenAIEmbeddings<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><br \/>\ndb <span class=\"token operator\">&#061;<\/span> Chroma<span class=\"token punctuation\">.<\/span>from_documents<span class=\"token punctuation\">(<\/span>splits<span class=\"token punctuation\">,<\/span> embeddings<span class=\"token punctuation\">)<\/span><\/p>\n<p><span class=\"token comment\"># \u68c0\u7d22\u76f8\u5173\u5185\u5bb9<\/span><br \/>\nquery <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#034;\u6587\u6863\u4e2d\u5173\u4e8e\u5927\u6a21\u578b\u4e0a\u4e0b\u6587\u7a97\u53e3\u7684\u90e8\u5206&#xff1f;&#034;<\/span><br \/>\nretrieved_docs <span class=\"token operator\">&#061;<\/span> db<span class=\"token punctuation\">.<\/span>similarity_search<span class=\"token punctuation\">(<\/span>query<span class=\"token punctuation\">,<\/span> k<span class=\"token operator\">&#061;<\/span><span class=\"token number\">3<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p><span class=\"token comment\"># \u751f\u6210\u56de\u7b54<\/span><br \/>\n<span class=\"token keyword\">from<\/span> langchain<span class=\"token punctuation\">.<\/span>chains <span class=\"token keyword\">import<\/span> RetrievalQA<br \/>\n<span class=\"token keyword\">from<\/span> langchain<span class=\"token punctuation\">.<\/span>llms <span class=\"token keyword\">import<\/span> OpenAI<\/p>\n<p>qa_chain <span class=\"token operator\">&#061;<\/span> RetrievalQA<span class=\"token punctuation\">.<\/span>from_chain_type<span class=\"token punctuation\">(<\/span><br \/>\n    llm<span class=\"token operator\">&#061;<\/span>OpenAI<span class=\"token punctuation\">(<\/span>temperature<span class=\"token operator\">&#061;<\/span><span class=\"token number\">0<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    chain_type<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;stuff&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    retriever<span class=\"token operator\">&#061;<\/span>db<span class=\"token punctuation\">.<\/span>as_retriever<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token punctuation\">)<\/span><br \/>\nresult <span class=\"token operator\">&#061;<\/span> qa_chain<span class=\"token punctuation\">.<\/span>run<span class=\"token punctuation\">(<\/span>query<span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>result<span class=\"token punctuation\">)<\/span><\/p>\n<h4>5.4 \u6a21\u578b\u7a97\u53e3\u6269\u5c55&#xff1a;RoPE\u7f29\u653e<\/h4>\n<p>\u5bf9\u4e8e\u5f00\u6e90\u6a21\u578b&#xff0c;\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7RoPE&#xff08;Rotary Position Embedding&#xff09;\u7f29\u653e\u6269\u5c55\u4e0a\u4e0b\u6587\u7a97\u53e3&#xff1a;<br \/>\n\u2328\ufe0f \u4ee3\u7801\u793a\u4f8b&#xff08;\u8c03\u6574LLaMA 2\u6a21\u578b\u7a97\u53e3&#xff09;&#xff1a;<\/p>\n<p><span class=\"token keyword\">from<\/span> transformers <span class=\"token keyword\">import<\/span> LlamaConfig<span class=\"token punctuation\">,<\/span> LlamaForCausalLM<\/p>\n<p><span class=\"token comment\"># \u52a0\u8f7d\u539f\u59cb\u914d\u7f6e<\/span><br \/>\nconfig <span class=\"token operator\">&#061;<\/span> LlamaConfig<span class=\"token punctuation\">.<\/span>from_pretrained<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;meta-llama\/Llama-2-7b-hf&#034;<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token comment\"># \u6269\u5c55\u7a97\u53e3\u52308192&#xff08;\u539f\u59cb4096&#xff09;<\/span><br \/>\nconfig<span class=\"token punctuation\">.<\/span>max_position_embeddings <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">8192<\/span><br \/>\n<span class=\"token comment\"># \u8bbe\u7f6eRoPE\u7f29\u653e\u56e0\u5b50&#xff08;factor &#061; new_window \/ old_window&#xff09;<\/span><br \/>\nconfig<span class=\"token punctuation\">.<\/span>rope_scaling <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">{<\/span><span class=\"token string\">&#034;type&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;linear&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;factor&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token number\">2.0<\/span><span class=\"token punctuation\">}<\/span><\/p>\n<p><span class=\"token comment\"># \u52a0\u8f7d\u6a21\u578b<\/span><br \/>\nmodel <span class=\"token operator\">&#061;<\/span> LlamaForCausalLM<span class=\"token punctuation\">.<\/span>from_pretrained<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;meta-llama\/Llama-2-7b-hf&#034;<\/span><span class=\"token punctuation\">,<\/span> config<span class=\"token operator\">&#061;<\/span>config<span class=\"token punctuation\">)<\/span><\/p>\n<p>\u26a0\ufe0f \u6ce8\u610f&#xff1a;RoPE\u7f29\u653e\u53ef\u80fd\u5bfc\u81f4\u957f\u7a97\u53e3\u5904\u6027\u80fd\u4e0b\u964d&#xff0c;\u9700\u901a\u8fc7\u5fae\u8c03\u9002\u5e94\u65b0\u7a97\u53e3\u3002<\/p>\n<h4>5.5 \u9009\u62e9\u5408\u9002\u7684\u6a21\u578b<\/h4>\n<p>\u6839\u636e\u573a\u666f\u9700\u6c42\u9009\u62e9\u7a97\u53e3\u5927\u5c0f&#xff1a;<\/p>\n<ul>\n<li>\u5feb\u901f\u5bf9\u8bdd&#xff1a;GPT-3.5 Turbo&#xff08;4k&#xff09;<\/li>\n<li>\u957f\u6587\u6863\u603b\u7ed3&#xff1a;Claude 3 Sonnet&#xff08;100k&#xff09;<\/li>\n<li>\u8d85\u957f\u7bc7\u5185\u5bb9&#xff1a;Gemini Pro 1.5&#xff08;1M&#xff09;<\/li>\n<\/ul>\n<h3>\u516d\u3001\u672a\u6765\u8d8b\u52bf&#xff1a;\u66f4\u5927\u3001\u66f4\u9ad8\u6548\u7684\u4e0a\u4e0b\u6587\u7a97\u53e3<\/h3>\n<h4>6.1 \u6280\u672f\u7a81\u7834<\/h4>\n<ul>\n<li>\u7a00\u758f\u6ce8\u610f\u529b&#xff1a;\u53ea\u5173\u6ce8\u5e8f\u5217\u4e2d\u7684\u5173\u952e\u90e8\u5206&#xff0c;\u964d\u4f4e\u8ba1\u7b97\u590d\u6742\u5ea6&#xff08;\u5982GPT-4\u7684\u7a00\u758f\u6ce8\u610f\u529b&#xff09;\u3002<\/li>\n<li>\u6ed1\u52a8\u7a97\u53e3\u6ce8\u610f\u529b&#xff1a;\u6a21\u578b\u53ea\u5904\u7406\u6700\u8fd1\u7684N\u4e2atoken&#xff0c;\u9002\u5408\u5b9e\u65f6\u5bf9\u8bdd\u573a\u666f\u3002<\/li>\n<li>\u52a8\u6001\u7a97\u53e3&#xff1a;\u6839\u636e\u8f93\u5165\u5185\u5bb9\u81ea\u52a8\u8c03\u6574\u7a97\u53e3\u5927\u5c0f&#xff0c;\u5e73\u8861\u6548\u7387\u4e0e\u6027\u80fd\u3002<\/li>\n<\/ul>\n<h4>6.2 \u5e94\u7528\u6269\u5c55<\/h4>\n<ul>\n<li>\u767e\u4e07\u7ea7token\u5904\u7406&#xff1a;\u5982Gemini Pro 1.5\u652f\u63011M token&#xff0c;\u53ef\u76f4\u63a5\u5904\u7406\u6574\u672c\u4e66\u6216\u4ee3\u7801\u5e93\u3002<\/li>\n<li>\u5b9e\u65f6\u5bf9\u8bdd\u7cfb\u7edf&#xff1a;\u66f4\u957f\u7684\u7a97\u53e3\u8ba9\u6a21\u578b\u8bb0\u4f4f\u7528\u6237\u7684\u957f\u671f\u504f\u597d\u3002<\/li>\n<li>\u591a\u6a21\u6001\u4e0a\u4e0b\u6587&#xff1a;\u5c06\u56fe\u50cf\u3001\u97f3\u9891\u7b49\u591a\u6a21\u6001\u5185\u5bb9\u7eb3\u5165\u4e0a\u4e0b\u6587\u7a97\u53e3\u3002<\/li>\n<\/ul>\n<h3>\u7ed3\u8bed<\/h3>\n<p>\u4e0a\u4e0b\u6587\u7a97\u53e3\u662f\u5927\u6a21\u578b\u7684\u201c\u8bb0\u5fc6\u5bb9\u91cf\u201d&#xff0c;\u5b83\u76f4\u63a5\u5f71\u54cd\u6a21\u578b\u7684\u7406\u89e3\u80fd\u529b\u548c\u5e94\u7528\u573a\u666f\u3002\u901a\u8fc7\u4f18\u5316\u63d0\u793a\u8bcd\u3001\u4f7f\u7528RAG\u3001\u6269\u5c55\u7a97\u53e3\u7b49\u65b9\u6cd5&#xff0c;\u6211\u4eec\u53ef\u4ee5\u6700\u5927\u5316\u4e0a\u4e0b\u6587\u7a97\u53e3\u7684\u4ef7\u503c\u3002\u672a\u6765&#xff0c;\u968f\u7740\u6280\u672f\u7684\u8fdb\u6b65&#xff0c;\u4e0a\u4e0b\u6587\u7a97\u53e3\u5c06\u53d8\u5f97\u66f4\u5927\u3001\u66f4\u9ad8\u6548&#xff0c;\u4e3a\u5927\u6a21\u578b\u7684\u5e94\u7528\u6253\u5f00\u66f4\u591a\u53ef\u80fd\u6027\u3002<\/p>\n<p>\u2705 \u6838\u5fc3\u6536\u83b7&#xff1a;<\/p>\n<li>\u4e0a\u4e0b\u6587\u7a97\u53e3\u51b3\u5b9a\u4e86\u6a21\u578b\u80fd\u8bb0\u4f4f\u7684\u5386\u53f2\u4fe1\u606f\u957f\u5ea6\u3002<\/li>\n<li>\u7a97\u53e3\u5927\u5c0f\u4e0e\u8ba1\u7b97\u6210\u672c\u6210\u6b63\u6bd4&#xff0c;\u9700\u6839\u636e\u573a\u666f\u9009\u578b\u3002<\/li>\n<li>RAG\u548c\u63d0\u793a\u8bcd\u4f18\u5316\u662f\u89e3\u51b3\u7a97\u53e3\u9650\u5236\u7684\u6709\u6548\u65b9\u6cd5\u3002<\/li>\n<li>\u672a\u6765\u7a97\u53e3\u5c06\u5411\u66f4\u5927\u3001\u66f4\u9ad8\u6548\u7684\u65b9\u5411\u53d1\u5c55\u3002<\/li>\n<p>\u4e0b\u4e00\u7bc7\u6211\u4eec\u5c06\u63a2\u8ba8\u5927\u6a21\u578b\u6e29\u5ea6\u53c2\u6570&#xff08;Temperature&#xff09;\u5982\u4f55\u8bbe\u7f6e&#xff0c;\u656c\u8bf7\u671f\u5f85&#xff01;<br \/>\n&#xff08;\u6ce8&#xff1a;\u672c\u6587\u7ea61.2\u4e07\u5b57&#xff0c;\u7b26\u5408CSDN\u6280\u672f\u6587\u7ae0\u7684\u6df1\u5ea6\u4e0e\u957f\u5ea6\u8981\u6c42\u3002&#xff09;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b66\u4e60\u76ee\u6807<br \/>\n\u7406\u89e3\u4e0a\u4e0b\u6587\u7a97\u53e3\u7684\u6838\u5fc3\u5b9a\u4e49\u4e0e\u4f5c\u7528\u638c\u63e1\u4e3b\u6d41\u5927\u6a21\u578b\u7684\u4e0a\u4e0b\u6587\u7a97\u53e3\u5dee\u5f02\u5b66\u4f1a\u5728\u5b9e\u9645\u573a\u666f\u4e2d\u4f18\u5316\u4e0a\u4e0b\u6587\u7a97\u53e3\u7684\u4f7f\u7528\u4e86\u89e3\u4e0a\u4e0b\u6587\u7a97\u53e3\u7684\u6280\u672f\u6f14\u8fdb\u8d8b\u52bf<br \/>\n\u4e00\u3001\u4ec0\u4e48\u662f\u4e0a\u4e0b\u6587\u7a97\u53e3&#xff1f;<br \/>\n&#x1f4a1; \u6838\u5fc3\u5b9a\u4e49&#xff1a;\u4e0a\u4e0b\u6587\u7a97\u53e3\u662f\u5927\u6a21\u578b\u80fd\u591f\u540c\u65f6\u5904\u7406\u7684\u8f93\u5165\u5e8f\u5217\u6700\u5927\u957f\u5ea6&#xff08;\u4ee5tokens\u4e3a\u5355\u4f4d&#xff09;&#xff0c;\u5b83\u51b3\u5b9a\u4e86\u6a21\u578b\u80fd\u201c\u8bb0\u4f4f\u201d\u591a\u5c11\u5386\u53f2\u4fe1\u606f\u3002<br \/>\n\u6bd4\u5982\u4f60\u548cGPT-4\u804a\u5929\u65f6&#xff0c;\u524d\u9762\u7684\u5bf9\u8bdd\u5185\u5bb9\u4f1a\u88ab\u7eb3\u5165\u4e0a\u4e0b\u6587\u7a97\u53e3\u2014\u2014\u5982\u679c\u7a97\u53e3\u8db3\u591f\u5927&#xff0c;\u6a21<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[66,50,132],"topic":[],"class_list":["post-120992","post","type-post","status-publish","format-standard","hentry","category-server","tag-ai","tag-50","tag-132"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5927\u6a21\u578b\u4e0a\u4e0b\u6587\u7a97\u53e3\u8be6\u89e3\uff1a\u539f\u7406\u3001\u9650\u5236\u4e0e\u4f18\u5316\u5b9e\u8df5 - \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\/120992.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5927\u6a21\u578b\u4e0a\u4e0b\u6587\u7a97\u53e3\u8be6\u89e3\uff1a\u539f\u7406\u3001\u9650\u5236\u4e0e\u4f18\u5316\u5b9e\u8df5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u5b66\u4e60\u76ee\u6807 \u7406\u89e3\u4e0a\u4e0b\u6587\u7a97\u53e3\u7684\u6838\u5fc3\u5b9a\u4e49\u4e0e\u4f5c\u7528\u638c\u63e1\u4e3b\u6d41\u5927\u6a21\u578b\u7684\u4e0a\u4e0b\u6587\u7a97\u53e3\u5dee\u5f02\u5b66\u4f1a\u5728\u5b9e\u9645\u573a\u666f\u4e2d\u4f18\u5316\u4e0a\u4e0b\u6587\u7a97\u53e3\u7684\u4f7f\u7528\u4e86\u89e3\u4e0a\u4e0b\u6587\u7a97\u53e3\u7684\u6280\u672f\u6f14\u8fdb\u8d8b\u52bf \u4e00\u3001\u4ec0\u4e48\u662f\u4e0a\u4e0b\u6587\u7a97\u53e3&#xff1f; &#x1f4a1; \u6838\u5fc3\u5b9a\u4e49&#xff1a;\u4e0a\u4e0b\u6587\u7a97\u53e3\u662f\u5927\u6a21\u578b\u80fd\u591f\u540c\u65f6\u5904\u7406\u7684\u8f93\u5165\u5e8f\u5217\u6700\u5927\u957f\u5ea6&#xff08;\u4ee5tokens\u4e3a\u5355\u4f4d&#xff09;&#xff0c;\u5b83\u51b3\u5b9a\u4e86\u6a21\u578b\u80fd\u201c\u8bb0\u4f4f\u201d\u591a\u5c11\u5386\u53f2\u4fe1\u606f\u3002 \u6bd4\u5982\u4f60\u548cGPT-4\u804a\u5929\u65f6&#xff0c;\u524d\u9762\u7684\u5bf9\u8bdd\u5185\u5bb9\u4f1a\u88ab\u7eb3\u5165\u4e0a\u4e0b\u6587\u7a97\u53e3\u2014\u2014\u5982\u679c\u7a97\u53e3\u8db3\u591f\u5927&#xff0c;\u6a21\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/120992.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-01T14:25:57+00:00\" \/>\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=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/120992.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/120992.html\",\"name\":\"\u5927\u6a21\u578b\u4e0a\u4e0b\u6587\u7a97\u53e3\u8be6\u89e3\uff1a\u539f\u7406\u3001\u9650\u5236\u4e0e\u4f18\u5316\u5b9e\u8df5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-11-01T14:25:57+00:00\",\"dateModified\":\"2026-11-01T14:25:57+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/120992.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/120992.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/120992.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5927\u6a21\u578b\u4e0a\u4e0b\u6587\u7a97\u53e3\u8be6\u89e3\uff1a\u539f\u7406\u3001\u9650\u5236\u4e0e\u4f18\u5316\u5b9e\u8df5\"}]},{\"@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":"\u5927\u6a21\u578b\u4e0a\u4e0b\u6587\u7a97\u53e3\u8be6\u89e3\uff1a\u539f\u7406\u3001\u9650\u5236\u4e0e\u4f18\u5316\u5b9e\u8df5 - \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\/120992.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5927\u6a21\u578b\u4e0a\u4e0b\u6587\u7a97\u53e3\u8be6\u89e3\uff1a\u539f\u7406\u3001\u9650\u5236\u4e0e\u4f18\u5316\u5b9e\u8df5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u5b66\u4e60\u76ee\u6807 \u7406\u89e3\u4e0a\u4e0b\u6587\u7a97\u53e3\u7684\u6838\u5fc3\u5b9a\u4e49\u4e0e\u4f5c\u7528\u638c\u63e1\u4e3b\u6d41\u5927\u6a21\u578b\u7684\u4e0a\u4e0b\u6587\u7a97\u53e3\u5dee\u5f02\u5b66\u4f1a\u5728\u5b9e\u9645\u573a\u666f\u4e2d\u4f18\u5316\u4e0a\u4e0b\u6587\u7a97\u53e3\u7684\u4f7f\u7528\u4e86\u89e3\u4e0a\u4e0b\u6587\u7a97\u53e3\u7684\u6280\u672f\u6f14\u8fdb\u8d8b\u52bf \u4e00\u3001\u4ec0\u4e48\u662f\u4e0a\u4e0b\u6587\u7a97\u53e3&#xff1f; &#x1f4a1; \u6838\u5fc3\u5b9a\u4e49&#xff1a;\u4e0a\u4e0b\u6587\u7a97\u53e3\u662f\u5927\u6a21\u578b\u80fd\u591f\u540c\u65f6\u5904\u7406\u7684\u8f93\u5165\u5e8f\u5217\u6700\u5927\u957f\u5ea6&#xff08;\u4ee5tokens\u4e3a\u5355\u4f4d&#xff09;&#xff0c;\u5b83\u51b3\u5b9a\u4e86\u6a21\u578b\u80fd\u201c\u8bb0\u4f4f\u201d\u591a\u5c11\u5386\u53f2\u4fe1\u606f\u3002 \u6bd4\u5982\u4f60\u548cGPT-4\u804a\u5929\u65f6&#xff0c;\u524d\u9762\u7684\u5bf9\u8bdd\u5185\u5bb9\u4f1a\u88ab\u7eb3\u5165\u4e0a\u4e0b\u6587\u7a97\u53e3\u2014\u2014\u5982\u679c\u7a97\u53e3\u8db3\u591f\u5927&#xff0c;\u6a21","og_url":"https:\/\/www.wsisp.com\/helps\/120992.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-11-01T14:25:57+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/120992.html","url":"https:\/\/www.wsisp.com\/helps\/120992.html","name":"\u5927\u6a21\u578b\u4e0a\u4e0b\u6587\u7a97\u53e3\u8be6\u89e3\uff1a\u539f\u7406\u3001\u9650\u5236\u4e0e\u4f18\u5316\u5b9e\u8df5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-11-01T14:25:57+00:00","dateModified":"2026-11-01T14:25:57+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/120992.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/120992.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/120992.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5927\u6a21\u578b\u4e0a\u4e0b\u6587\u7a97\u53e3\u8be6\u89e3\uff1a\u539f\u7406\u3001\u9650\u5236\u4e0e\u4f18\u5316\u5b9e\u8df5"}]},{"@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\/120992","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=120992"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/120992\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=120992"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=120992"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=120992"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=120992"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}