{"id":112652,"date":"2026-10-04T11:49:12","date_gmt":"2026-10-04T03:49:12","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/112652.html"},"modified":"2026-10-04T11:49:12","modified_gmt":"2026-10-04T03:49:12","slug":"17-%e5%a4%a7%e6%a8%a1%e5%9e%8b%e7%9a%84%e8%ae%b0%e5%bf%86%e5%8f%aa%e6%9c%89%e4%b8%80%e6%9d%af%e6%b0%b4%ef%bc%8c%e9%95%bf%e5%af%b9%e8%af%9d%e6%80%8e%e4%b9%88%e4%b8%8d%e7%bf%bb","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/112652.html","title":{"rendered":"17 \u5927\u6a21\u578b\u7684\u8bb0\u5fc6\u53ea\u6709\u201c\u4e00\u676f\u6c34\u201c\uff0c\u957f\u5bf9\u8bdd\u600e\u4e48\u4e0d\u7ffb\u8f66\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261004034910-6ac1ccb63350c.png\" \/><\/p>\n<p>\u9762\u8bd5\u5b98\u7ffb\u7740\u7b80\u5386&#xff1a;&#034;\u4f60\u505a\u8fc7 AI \u5ba2\u670d&#xff1f;&#034;<\/p>\n<p>\u5019\u9009\u4eba\u70b9\u5934&#xff1a;&#034;\u5bf9&#xff0c;\u77e5\u8bc6\u5e93\u95ee\u7b54 &#043; \u591a\u8f6e\u5bf9\u8bdd\u3002&#034;<\/p>\n<p>&#034;\u7528\u6237\u8ddf AI \u804a\u4e86 20 \u8f6e\u4e4b\u540e&#xff0c;AI \u8fd8\u8bb0\u4e0d\u8bb0\u5f97\u7b2c\u4e00\u8f6e\u8bf4\u4e86\u4ec0\u4e48&#xff1f;&#034;<\/p>\n<p>&#034;\u2026\u2026\u5e94\u8be5\u8bb0\u5f97\u5427&#xff1f;&#034;<\/p>\n<p>&#034;\u4f60\u786e\u5b9a&#xff1f;\u4f60\u4e86\u89e3\u4e0a\u4e0b\u6587\u7a97\u53e3\u5417&#xff1f;\u5982\u679c Token \u8d85\u4e86\u4f1a\u53d1\u751f\u4ec0\u4e48&#xff1f;&#034;<\/p>\n<p>\u5019\u9009\u4eba\u6c89\u9ed8\u4e86\u3002\u4ed6\u505a\u591a\u8f6e\u5bf9\u8bdd\u65f6\u786e\u5b9e\u6ca1\u8003\u8651\u8fc7\u8fd9\u4e2a\u95ee\u9898\u2014\u2014\u53cd\u6b63\u6846\u67b6\u81ea\u52a8\u5904\u7406\u5386\u53f2\u6d88\u606f&#xff0c;\u7528\u6237\u804a\u5230\u4e00\u534a AI \u7a81\u7136&#034;\u5931\u5fc6&#034;&#xff0c;\u4ed6\u8fd8\u4ee5\u4e3a\u662f\u6a21\u578b\u7684\u95ee\u9898\u3002<\/p>\n<p>\u8fd9\u4e0d\u662f\u6a21\u578b\u7684\u95ee\u9898&#xff0c;\u662f\u8bb0\u5fc6\u7ba1\u7406\u7684\u95ee\u9898\u3002 \u5927\u6a21\u578b\u7684\u8bb0\u5fc6\u662f\u6709\u9650\u7684\u3001\u6709\u6210\u672c\u7684\u3001\u8fd8\u662f\u4e00\u6b21\u6027\u7684\u3002\u8fd9\u7bc7\u804a\u900f\u3002<\/p>\n<hr \/>\n<h3>\u5927\u6a21\u578b\u7684\u8bb0\u5fc6\u5230\u5e95\u6709\u591a\u5c0f<\/h3>\n<p>\u5f88\u591a\u4eba\u4ee5\u4e3a\u5927\u6a21\u578b\u50cf\u4eba\u4e00\u6837&#034;\u8bb0\u6027\u597d&#034;\u3002\u9519\u4e86\u3002<\/p>\n<p>\u5927\u6a21\u578b\u6bcf\u6b21\u56de\u7b54&#xff0c;\u53ea\u80fd&#034;\u770b\u5230&#034;\u4f60\u8fd9\u6b21\u8bf7\u6c42\u91cc\u585e\u7ed9\u5b83\u7684\u6240\u6709\u6587\u5b57\u3002\u4e0a\u4e00\u6b21\u5bf9\u8bdd\u5b83\u6839\u672c\u8bb0\u4e0d\u4f4f\u2014\u2014\u9664\u975e\u4f60\u628a\u5386\u53f2\u5bf9\u8bdd\u91cd\u65b0\u53d1\u7ed9\u5b83\u3002<\/p>\n<p>\u6240\u4ee5\u6240\u8c13&#034;\u591a\u8f6e\u5bf9\u8bdd&#034;&#xff0c;\u672c\u8d28\u662f&#xff1a;\u6bcf\u8f6e\u90fd\u628a\u4e4b\u524d\u6240\u6709\u7684\u5bf9\u8bdd&#xff0c;\u91cd\u65b0\u62fc\u8fdb Prompt \u91cc&#xff0c;\u518d\u53d1\u7ed9\u6a21\u578b\u3002<\/p>\n<p>\u800c\u6a21\u578b\u4e00\u6b21\u80fd&#034;\u770b\u5230&#034;\u7684\u6587\u5b57\u603b\u91cf&#xff0c;\u5c31\u662f\u4e0a\u4e0b\u6587\u7a97\u53e3&#xff08;Context Window&#xff09;\u3002<\/p>\n<p>GPT-4o \u4e00\u822c\u662f 128K Token&#xff0c;\u4f46\u5f88\u591a\u56fd\u4ea7\u6a21\u578b\u53ea\u6709 8K\u300132K\u30028K Token \u662f\u4ec0\u4e48\u6982\u5ff5&#xff1f;\u5927\u6982 6000 \u4e2a\u6c49\u5b57&#xff0c;\u6216\u8005 20 \u8f6e\u5de6\u53f3\u7684\u7b80\u5355\u5bf9\u8bdd\u3002\u4e00\u676f\u6c34&#xff0c;\u5c31\u8fd9\u4e48\u70b9\u3002<\/p>\n<p>\u66f4\u9ebb\u70e6\u7684\u662f&#xff0c;\u7a97\u53e3\u4e0d\u662f\u53ea\u6709\u5386\u53f2\u5bf9\u8bdd\u5728\u5360\u7528&#xff1a;<\/p>\n<p><img decoding=\"async\" alt=\"\u4e0a\u4e0b\u6587\u7a97\u53e3\u7ec4\u6210\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261004034910-6ac1ccb6a3e7d.png\" \/><\/p>\n<p>\u7cfb\u7edf\u63d0\u793a\u8bcd\u5360\u4e00\u5757\u3001\u5386\u53f2\u5bf9\u8bdd\u5360\u4e00\u5757\u3001RAG \u68c0\u7d22\u7ed3\u679c\u5360\u4e00\u5757\u3001\u7528\u6237\u5f53\u524d\u95ee\u9898\u5360\u4e00\u5757\u3002\u56db\u5757\u52a0\u8d77\u6765\u4e0d\u80fd\u8d85\u8fc7\u7a97\u53e3\u4e0a\u9650\u3002<\/p>\n<p>\u8d85\u4e86\u600e\u4e48\u529e&#xff1f; \u4e24\u4e2a\u540e\u679c&#xff1a;<\/p>\n<p>1. API \u76f4\u63a5\u62a5\u9519&#xff08;maximum context length exceeded&#xff09;<\/p>\n<p>2. \u6846\u67b6\u81ea\u52a8\u622a\u65ad\u2014\u2014\u6700\u65e9\u7684\u5386\u53f2\u88ab\u4e22\u6389&#xff0c;AI \u5c31&#034;\u5931\u5fc6&#034;\u4e86<\/p>\n<hr \/>\n<h3>\u5931\u5fc6\u7684\u4ee3\u4ef7&#xff1a;\u4e00\u4e2a\u5f88\u5178\u578b\u7684\u573a\u666f<\/h3>\n<p>\u4e3e\u4e2a\u5178\u578b\u573a\u666f&#xff1a;AI \u4fdd\u9669\u987e\u95ee&#xff0c;\u7528\u6237\u54a8\u8be2\u7406\u8d54\u3002<\/p>\n<p>\u7528\u6237\u7b2c\u4e00\u8f6e\u8bf4&#xff1a;&#034;\u6211\u7236\u4eb2\u53bb\u5e74\u4e70\u7684 XX \u91cd\u75be\u9669&#xff0c;\u4eca\u5e74\u786e\u8bca\u4e86\u80ba\u764c\u3002&#034;<\/p>\n<p>AI \u7b54\u5f97\u633a\u597d&#xff0c;\u7ed9\u4e86\u4e00\u5806\u7406\u8d54\u6307\u5f15\u3002<\/p>\n<p>\u804a\u4e86 30 \u8f6e&#xff0c;\u7528\u6237\u95ee&#xff1a;&#034;\u90a3\u50cf\u6211\u7236\u4eb2\u8fd9\u79cd\u60c5\u51b5&#xff0c;\u4e4b\u524d\u8bf4\u7684\u90a3\u4e2a\u514d\u8d54\u989d\u6761\u6b3e\u8fd8\u9002\u7528\u5417&#xff1f;&#034;<\/p>\n<p>AI \u7b54&#xff1a;&#034;\u60a8\u7236\u4eb2\u662f\u54ea\u6b3e\u4ea7\u54c1&#xff1f;\u4e4b\u524d\u6ca1\u6709\u63d0\u5230\u8fc7&#xff0c;\u8bf7\u8865\u5145\u8bf4\u660e\u3002&#034;<\/p>\n<p>\u7528\u6237\u5f53\u573a\u70b8\u4e86&#xff1a;&#034;\u6211\u521a\u8bf4\u4e86\u4e00\u4e07\u904d&#xff01;&#034;<\/p>\n<p>\u6280\u672f\u6392\u67e5\u53d1\u73b0&#xff1a;\u5386\u53f2\u5bf9\u8bdd\u8d85\u8fc7\u4e86\u7a97\u53e3&#xff0c;\u6700\u65e9\u7684\u51e0\u8f6e\u88ab\u622a\u65ad\u4e22\u5f03&#xff0c;\u6a21\u578b\u538b\u6839\u4e0d\u77e5\u9053\u7528\u6237\u7236\u4eb2\u4e70\u7684\u662f\u4ec0\u4e48\u4fdd\u9669\u3002<\/p>\n<p>\u8fd9\u4e0d\u662f\u6a21\u578b\u8822&#xff0c;\u662f\u8bb0\u5fc6\u7ba1\u7406\u6ca1\u505a\u597d\u3002 \u7528\u6237\u4e0d\u4f1a\u7406\u89e3&#034;\u4e0a\u4e0b\u6587\u7a97\u53e3&#034;\u8fd9\u79cd\u6280\u672f\u6982\u5ff5&#xff0c;\u4ed6\u53ea\u77e5\u9053&#034;\u8fd9 AI \u8bb0\u6027\u771f\u5dee&#034;\u3002<\/p>\n<hr \/>\n<h3>\u8bb0\u5fc6\u7ba1\u7406\u65b9\u6848\u4e00&#xff1a;\u6ed1\u52a8\u7a97\u53e3<\/h3>\n<p>\u6700\u6734\u7d20\u7684\u505a\u6cd5&#xff1a;\u53ea\u4fdd\u7559\u6700\u8fd1 N \u8f6e\u5bf9\u8bdd&#xff0c;\u66f4\u65e9\u7684\u76f4\u63a5\u4e22\u5f03\u3002<\/p>\n<p>public List&lt;Message&gt; slidingWindow(List&lt;Message&gt; history, int maxTurns) {<br \/>\n    if (history.size() &lt;&#061; maxTurns) {<br \/>\n        return history;<br \/>\n    }<br \/>\n    \/\/ \u4fdd\u7559\u7cfb\u7edf\u6d88\u606f &#043; \u6700\u8fd1 maxTurns \u8f6e<br \/>\n    Message system &#061; history.get(0);<br \/>\n    List&lt;Message&gt; recent &#061; history.subList(history.size() &#8211; maxTurns, history.size());<\/p>\n<p>    List&lt;Message&gt; result &#061; new ArrayList&lt;&gt;();<br \/>\n    result.add(system);<br \/>\n    result.addAll(recent);<br \/>\n    return result;<br \/>\n}<\/p>\n<p>\u4f18\u70b9&#xff1a;\u5b9e\u73b0\u7b80\u5355&#xff0c;\u51e0\u4e4e\u96f6\u6210\u672c&#xff0c;\u901f\u5ea6\u6700\u5feb\u3002<\/p>\n<p>\u7f3a\u70b9&#xff1a;\u65e9\u671f\u4fe1\u606f\u5168\u4e22\u3002 \u7528\u6237\u7b2c\u4e00\u8f6e\u8bf4\u7684\u5173\u952e\u4fe1\u606f&#xff08;\u7236\u4eb2\u4e70\u7684\u4fdd\u9669&#xff09;&#xff0c;\u7b2c 21 \u8f6e\u5c31\u88ab\u4e22\u4e86\u3002<\/p>\n<p>\u6ed1\u52a8\u7a97\u53e3\u9002\u5408&#xff1a;\u5ba2\u670d\u95ee\u7b54\u3001\u5355\u8f6e\u4e3a\u4e3b\u3001\u5bf9\u5386\u53f2\u4f9d\u8d56\u4e0d\u5f3a\u7684\u573a\u666f\u3002<\/p>\n<hr \/>\n<h3>\u8bb0\u5fc6\u7ba1\u7406\u65b9\u6848\u4e8c&#xff1a;\u6458\u8981\u8bb0\u5fc6<\/h3>\n<p>\u65e2\u7136\u539f\u59cb\u5bf9\u8bdd\u592a\u5360\u7a7a\u95f4&#xff0c;\u90a3\u5c31\u538b\u7f29\u3002\u6bcf\u9694\u51e0\u8f6e&#xff0c;\u8ba9\u6a21\u578b\u628a\u4e4b\u524d\u7684\u5bf9\u8bdd\u603b\u7ed3\u6210\u4e00\u6bb5\u6458\u8981&#xff0c;\u4ee5\u540e\u53ea\u5e26\u6458\u8981 &#043; \u6700\u8fd1\u51e0\u8f6e\u3002<\/p>\n<p><img decoding=\"async\" alt=\"\u4e09\u79cd\u8bb0\u5fc6\u7b56\u7565\u5bf9\u6bd4\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261004034911-6ac1ccb7077bf.png\" \/><\/p>\n<p>public class SummaryMemory {<\/p>\n<p>    private final ChatModel chatModel;<br \/>\n    private String summary &#061; &#034;&#034;;   \/\/ \u7d2f\u79ef\u6458\u8981<\/p>\n<p>    public List&lt;Message&gt; buildMessages(List&lt;Message&gt; recentTurns) {<br \/>\n        List&lt;Message&gt; messages &#061; new ArrayList&lt;&gt;();<br \/>\n        \/\/ \u5148\u653e\u538b\u7f29\u540e\u7684\u5386\u53f2\u6458\u8981<br \/>\n        if (!summary.isEmpty()) {<br \/>\n            messages.add(new SystemMessage(&#034;\u5386\u53f2\u5bf9\u8bdd\u6458\u8981&#xff1a;&#034; &#043; summary));<br \/>\n        }<br \/>\n        \/\/ \u518d\u653e\u6700\u8fd1\u51e0\u8f6e\u539f\u59cb\u5bf9\u8bdd<br \/>\n        messages.addAll(recentTurns);<br \/>\n        return messages;<br \/>\n    }<\/p>\n<p>    \/\/ \u6bcf 5 \u8f6e\u89e6\u53d1\u4e00\u6b21\u6458\u8981\u66f4\u65b0<br \/>\n    public void maybeSummarize(List&lt;Message&gt; allHistory) {<br \/>\n        if (allHistory.size() % 10 &#061;&#061; 0) {<br \/>\n            this.summary &#061; chatModel.call(<br \/>\n                &#034;\u628a\u4ee5\u4e0b\u5bf9\u8bdd\u538b\u7f29\u6210 200 \u5b57\u4ee5\u5185\u7684\u6458\u8981&#xff0c;\u4fdd\u7559\u5173\u952e\u4e8b\u5b9e&#xff1a;\\\\n&#034; &#043; allHistory<br \/>\n            );<br \/>\n        }<br \/>\n    }<br \/>\n}<\/p>\n<p>\u6458\u8981\u7684\u672c\u8d28\u662f&#034;\u4e22\u7ec6\u8282\u6362\u5bb9\u91cf&#034;\u3002 \u7528\u6237\u7236\u4eb2\u4e70\u7684\u662f\u54ea\u6b3e\u4fdd\u9669\u3001\u786e\u8bca\u4ec0\u4e48\u75c5\u3001\u95ee\u8fc7\u54ea\u4e9b\u6761\u6b3e\u2014\u2014\u8fd9\u4e9b\u5173\u952e\u4e8b\u5b9e\u4f1a\u88ab\u6458\u8981\u4fdd\u7559&#xff0c;\u4f46\u5bf9\u8bdd\u7684\u7ec6\u679d\u672b\u8282\u5c31\u6ca1\u4e86\u3002<\/p>\n<p>\u4f18\u70b9&#xff1a;\u80fd\u8bb0\u4f4f\u65e9\u671f\u5173\u952e\u4fe1\u606f&#xff0c;\u5bb9\u91cf\u53ef\u63a7\u3002<\/p>\n<p>\u7f3a\u70b9&#xff1a;\u6458\u8981\u672c\u8eab\u6709\u4fe1\u606f\u635f\u5931&#xff1b;\u6bcf 5 \u8f6e\u591a\u4e00\u6b21\u6a21\u578b\u8c03\u7528&#xff0c;\u6709\u6210\u672c\u548c\u5ef6\u8fdf&#xff1b;\u6458\u8981\u66f4\u65b0\u65f6\u673a\u8981\u8bbe\u8ba1\u597d\u3002<\/p>\n<hr \/>\n<h3>\u8bb0\u5fc6\u7ba1\u7406\u65b9\u6848\u4e09&#xff1a;\u5411\u91cf\u8bb0\u5fc6<\/h3>\n<p>\u6700&#034;\u91cd&#034;\u7684\u65b9\u6848&#xff0c;\u4e5f\u662f\u5927\u5382 Agent \u4ea7\u54c1\u7684\u4e3b\u6d41\u505a\u6cd5\u3002<\/p>\n<p>\u601d\u8def&#xff1a;\u628a\u6bcf\u4e00\u8f6e\u5bf9\u8bdd&#xff08;\u6216\u6bcf\u4e2a\u77e5\u8bc6\u70b9&#xff09;\u5411\u91cf\u5316&#xff0c;\u5b58\u8fdb\u5411\u91cf\u6570\u636e\u5e93\u3002\u7528\u6237\u63d0\u95ee\u65f6&#xff0c;\u5148\u4ece\u5411\u91cf\u5e93\u91cc\u8bed\u4e49\u68c0\u7d22\u51fa\u6700\u76f8\u5173\u7684\u51e0\u6761\u5386\u53f2&#xff0c;\u62fc\u8fdb Prompt\u3002<\/p>\n<p>&#064;Service<br \/>\npublic class VectorMemory {<\/p>\n<p>    private final VectorStore vectorStore;<\/p>\n<p>    \/\/ \u6bcf\u8f6e\u5bf9\u8bdd\u7ed3\u675f\u540e&#xff0c;\u628a\u5185\u5bb9\u5b58\u5165\u5411\u91cf\u5e93<br \/>\n    public void remember(String sessionId, String userMsg, String aiMsg) {<br \/>\n        Document doc &#061; new Document(<br \/>\n            &#034;\u7528\u6237\u8bf4&#xff1a;&#034; &#043; userMsg &#043; &#034;\\\\nAI \u7b54&#xff1a;&#034; &#043; aiMsg,<br \/>\n            Map.of(&#034;sessionId&#034;, sessionId, &#034;timestamp&#034;, System.currentTimeMillis())<br \/>\n        );<br \/>\n        vectorStore.add(List.of(doc));<br \/>\n    }<\/p>\n<p>    \/\/ \u7528\u6237\u63d0\u95ee\u65f6&#xff0c;\u68c0\u7d22\u76f8\u5173\u5386\u53f2<br \/>\n    public List&lt;Document&gt; recall(String sessionId, String question, int topK) {<br \/>\n        return vectorStore.similaritySearch(<br \/>\n            SearchRequest.builder()<br \/>\n                .query(question)<br \/>\n                .topK(topK)<br \/>\n                .filterExpression(&#034;sessionId &#061;&#061; &#039;&#034; &#043; sessionId &#043; &#034;&#039;&#034;)<br \/>\n                .build()<br \/>\n        );<br \/>\n    }<br \/>\n}<\/p>\n<p>\u4f18\u70b9&#xff1a;\u5bb9\u91cf\u5927&#xff08;\u5b58\u591a\u5c11\u90fd\u884c&#xff09;\u3001\u68c0\u7d22\u7cbe\u51c6&#xff08;\u53ea\u5e26\u76f8\u5173\u5386\u53f2&#xff09;\u3001\u5929\u7136\u652f\u6301\u8de8\u4f1a\u8bdd\u957f\u671f\u8bb0\u5fc6\u3002<\/p>\n<p>\u7f3a\u70b9&#xff1a;\u67b6\u6784\u91cd&#xff08;\u8981\u5f15\u5165\u5411\u91cf\u5e93&#xff09;\u3001\u591a\u4e00\u6b21\u68c0\u7d22\u5ef6\u8fdf&#xff08;\u51e0\u5341\u6beb\u79d2&#xff09;\u3001\u5386\u53f2\u7247\u6bb5\u600e\u4e48\u5207\u5206\u6709\u8bb2\u7a76\u3002<\/p>\n<hr \/>\n<h3>\u5b9e\u6218&#xff1a;Token \u9884\u7b97\u600e\u4e48\u7b97<\/h3>\n<p>\u9762\u8bd5\u5b98\u95ee&#034;\u4f60\u600e\u4e48\u63a7\u5236 Token&#034;&#xff0c;\u5149\u8bf4&#034;\u538b\u7f29\u5386\u53f2&#034;\u4e0d\u591f&#xff0c;\u5f97\u6709\u5177\u4f53\u65b9\u6cd5\u3002<\/p>\n<p>\u7b2c\u4e00\u6b65&#xff1a;\u4f30\u7b97\u3002 \u4e2d\u6587\u573a\u666f\u6709\u4e2a\u7c97\u7565\u516c\u5f0f&#xff1a;1 \u4e2a\u6c49\u5b57 \u2248 1.5~2 \u4e2a Token&#xff0c;1 \u4e2a\u82f1\u6587\u5b57\u7b26 \u2248 0.3 \u4e2a Token\u3002\u4e0d\u591f\u7cbe\u786e&#xff0c;\u4f46\u505a\u9884\u7b97\u591f\u7528\u3002\u8981\u7cbe\u786e\u5c31\u8c03 API \u7684 tokenizer \u63a5\u53e3&#xff0c;\u6216\u8005\u7528 tiktoken \u5e93&#xff1a;<\/p>\n<p>\/\/ OpenAI \u5b98\u65b9 tiktoken \u7684 Java \u79fb\u690d\u7248<br \/>\nint tokens &#061; EncoderFactory.get().encoder()<br \/>\n    .encode(prompt)<br \/>\n    .size();<\/p>\n<p>\u7b2c\u4e8c\u6b65&#xff1a;\u5206\u7ea7\u9884\u7b97\u3002 \u6211\u4e60\u60ef\u6309\u6bd4\u4f8b\u5206\u914d&#xff0c;\u4ee5 8K \u7a97\u53e3\u4e3a\u4f8b&#xff1a;<\/p>\n<p>public class TokenBudget {<\/p>\n<p>    private static final int WINDOW &#061; 8000;<\/p>\n<p>    \/\/ \u5404\u90e8\u5206\u9884\u7b97&#xff08;\u7ed9\u5f53\u524d\u95ee\u9898\u7559\u8db3\u7a7a\u95f4&#xff09;<br \/>\n    private static final int SYSTEM_BUDGET &#061; (int) (WINDOW * 0.15);   \/\/ 1200<br \/>\n    private static final int HISTORY_BUDGET &#061; (int) (WINDOW * 0.50);  \/\/ 4000<br \/>\n    private static final int RAG_BUDGET &#061; (int) (WINDOW * 0.20);      \/\/ 1600<br \/>\n    private static final int QUESTION_BUDGET &#061; (int) (WINDOW * 0.15); \/\/ 1200<\/p>\n<p>    public List&lt;Message&gt; assemble(String question,<br \/>\n                                  List&lt;Message&gt; history,<br \/>\n                                  List&lt;Document&gt; ragDocs) {<br \/>\n        \/\/ \u5386\u53f2\u8d85\u9884\u7b97 \u2192 \u4ece\u65e7\u5230\u65b0\u622a\u65ad&#xff0c;\u6216\u89e6\u53d1\u6458\u8981<br \/>\n        List&lt;Message&gt; trimmedHistory &#061; fitHistory(history, HISTORY_BUDGET);<br \/>\n        \/\/ RAG \u6587\u6863\u8d85\u9884\u7b97 \u2192 \u53ea\u4fdd\u7559\u6700\u76f8\u5173\u7684<br \/>\n        List&lt;Document&gt; trimmedDocs &#061; fitDocs(ragDocs, RAG_BUDGET);<br \/>\n        return buildMessages(trimmedDocs, trimmedHistory, question);<br \/>\n    }<br \/>\n}<\/p>\n<p>\u7b2c\u4e09\u6b65&#xff1a;\u8d85\u9884\u7b97\u7684\u964d\u7ea7\u7b56\u7565\u3002 \u6309\u4f18\u5148\u7ea7\u4e22\u5f03&#xff1a;\u5148\u4e22\u6700\u8001\u7684\u5bf9\u8bdd \u2192 \u518d\u89e6\u53d1\u6458\u8981\u538b\u7f29 \u2192 \u518d\u4e22\u4f4e\u76f8\u5173\u5ea6 RAG \u6587\u6863 \u2192 \u5982\u679c\u8fd8\u4e0d\u591f&#xff0c;\u660e\u786e\u544a\u8bc9\u7528\u6237&#034;\u5bf9\u8bdd\u592a\u957f&#xff0c;\u8bf7\u5f00\u542f\u65b0\u4f1a\u8bdd&#034;\u3002\u5b81\u53ef\u964d\u7ea7&#xff0c;\u4e0d\u8981\u786c\u585e\u5bfc\u81f4 API \u62a5\u9519\u3002<\/p>\n<p>\u8fd9\u91cc\u6709\u4e2a\u53cd\u76f4\u89c9\u7684\u70b9&#xff1a;RAG \u6587\u6863\u7684\u4f18\u5148\u7ea7\u8981\u9ad8\u4e8e\u65e9\u671f\u5bf9\u8bdd\u3002 \u56e0\u4e3a\u65e9\u671f\u5bf9\u8bdd\u7684\u4fe1\u606f\u5927\u6982\u7387\u5df2\u7ecf\u8fdb\u4e86\u6458\u8981&#xff0c;\u800c RAG \u6587\u6863\u662f\u5f53\u524d\u95ee\u9898\u7684\u7b54\u6848\u4f9d\u636e&#xff0c;\u4e22\u4e86\u5c31\u76f4\u63a5\u7b54\u9519\u3002<\/p>\n<hr \/>\n<h3>\u4e09\u79cd\u65b9\u6848\u600e\u4e48\u9009&#xff1f;\u9762\u8bd5\u8fd9\u6837\u7b54<\/h3>\n<table>\n<tr>\u65b9\u6848\u6210\u672c\u8bb0\u5fc6\u80fd\u529b\u9002\u7528\u573a\u666f<\/tr>\n<tbody>\n<tr>\n<td>\u6ed1\u52a8\u7a97\u53e3<\/td>\n<td>\u96f6<\/td>\n<td>\u53ea\u8bb0\u6700\u8fd1 N \u8f6e<\/td>\n<td>\u5ba2\u670d\u3001\u5355\u8f6e\u95ee\u7b54<\/td>\n<\/tr>\n<tr>\n<td>\u6458\u8981\u8bb0\u5fc6<\/td>\n<td>\u4f4e<\/td>\n<td>\u8bb0\u5173\u952e\u4e8b\u5b9e&#xff0c;\u4e22\u7ec6\u8282<\/td>\n<td>\u591a\u8f6e\u4e1a\u52a1\u5bf9\u8bdd<\/td>\n<\/tr>\n<tr>\n<td>\u5411\u91cf\u8bb0\u5fc6<\/td>\n<td>\u9ad8<\/td>\n<td>\u7cbe\u51c6\u53ec\u56de&#xff0c;\u5bb9\u91cf\u5927<\/td>\n<td>Agent\u3001\u957f\u671f\u8bb0\u5fc6<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u751f\u4ea7\u73af\u5883\u7684\u6b63\u786e\u59ff\u52bf\u662f\u7ec4\u5408\u62f3&#xff1a;\u6ed1\u52a8\u7a97\u53e3\u4fdd\u5e95&#xff08;\u9632\u6b62\u8d85\u7a97\u62a5\u9519&#xff09;&#043; \u6458\u8981\u8bb0\u5fc6\u515c\u5e95&#xff08;\u4fdd\u7559\u5173\u952e\u4e8b\u5b9e&#xff09;&#043; \u5411\u91cf\u8bb0\u5fc6\u589e\u5f3a&#xff08;\u9700\u8981\u65f6\u7cbe\u51c6\u53ec\u56de&#xff09;\u3002<\/p>\n<p>\u53e6\u5916\u4e24\u4e2a\u5fc5\u7b54\u7684\u7ec6\u8282&#xff1a;<\/p>\n<p>\u7b2c\u4e00&#xff0c;Token \u9884\u7b97\u8981\u4e3b\u52a8\u63a7\u5236\u3002 \u4e0d\u8981\u7b49\u7a97\u53e3\u6ee1\u4e86\u518d\u622a\u65ad\u3002\u6bcf\u6b21\u7ec4\u88c5\u8bf7\u6c42\u524d&#xff0c;\u4f30\u7b97\u4e00\u4e0b\u603b Token&#xff08;\u7cfb\u7edf\u63d0\u793a &#043; \u5386\u53f2 &#043; \u68c0\u7d22 &#043; \u95ee\u9898&#xff09;&#xff0c;\u7ed9\u5f53\u524d\u95ee\u9898\u7559\u8db3\u7a7a\u95f4\u3002\u5e38\u89c1\u505a\u6cd5&#xff1a;\u5386\u53f2\u538b\u7f29\u5230\u7a97\u53e3\u7684 50% \u4ee5\u5185&#xff0c;\u68c0\u7d22\u7ed3\u679c 20%&#xff0c;\u7cfb\u7edf\u63d0\u793a 15%&#xff0c;\u95ee\u9898 15%\u3002<\/p>\n<p>\u7b2c\u4e8c&#xff0c;128K \u7a97\u53e3\u4e0d\u662f\u8ba9\u4f60\u5168\u585e\u8fdb\u53bb\u7684\u3002 \u8fd9\u662f\u9762\u8bd5\u5b98\u6700\u7231\u6316\u7684\u5751\u3002\u7a97\u53e3\u8d8a\u5927\u8d8a\u8d35&#xff08;\u6309 Token \u8ba1\u8d39&#xff09;\u3001\u8d8a\u6162&#xff08;\u5904\u7406\u65f6\u95f4\u957f&#xff09;\u3001\u8d8a\u5bb9\u6613\u5206\u5fc3&#xff08;\u6ce8\u610f\u529b\u88ab\u65e0\u5173\u5185\u5bb9\u7a00\u91ca&#xff09;\u3002\u4e0a\u4e0b\u6587\u7ba1\u7406\u7684\u76ee\u6807\u4e0d\u662f&#034;\u585e\u6ee1&#034;&#xff0c;\u662f&#034;\u53ea\u5e26\u8be5\u5e26\u7684&#034;\u3002<\/p>\n<hr \/>\n<h3>&#x1f3af; \u9762\u8bd5\u5b98\u89c6\u89d2\u7684\u6807\u51c6\u56de\u7b54<\/h3>\n<p>\u5982\u679c\u9762\u8bd5\u5b98\u95ee&#xff1a;&#034;\u957f\u5bf9\u8bdd\u4e2d AI \u5931\u5fc6\u4e86\u600e\u4e48\u529e&#xff1f;&#034;<\/p>\n<p>\u5148\u89e3\u91ca\u6839\u56e0&#xff1a;\u5927\u6a21\u578b\u672c\u8eab\u6ca1\u6709\u8bb0\u5fc6&#xff0c;\u6240\u8c13\u591a\u8f6e\u5bf9\u8bdd\u662f\u628a\u5386\u53f2\u91cd\u65b0\u62fc\u8fdb Prompt \u518d\u53d1\u9001\u3002\u4e0a\u4e0b\u6587\u7a97\u53e3\u6709\u9650&#xff0c;\u5386\u53f2\u592a\u957f\u5c31\u4f1a\u8d85\u7a97&#xff0c;\u6846\u67b6\u81ea\u52a8\u622a\u65ad\u6700\u65e9\u7684\u90e8\u5206&#xff0c;\u5bfc\u81f4 AI&#034;\u5931\u5fc6&#034;\u3002\u6211\u7684\u89e3\u51b3\u65b9\u6848\u662f\u4e09\u5c42\u8bb0\u5fc6&#xff1a;\u7b2c\u4e00\u5c42&#xff0c;\u6ed1\u52a8\u7a97\u53e3\u4fdd\u5e95\u3002\u4fdd\u7559\u6700\u8fd1 N \u8f6e&#xff0c;\u9632\u6b62\u8d85\u7a97\u62a5\u9519\u3002\u8fd9\u662f\u515c\u5e95\u65b9\u6848&#xff0c;\u4fdd\u8bc1\u7cfb\u7edf\u4e0d\u5d29\u3002\u7b2c\u4e8c\u5c42&#xff0c;\u6458\u8981\u8bb0\u5fc6\u3002\u6bcf\u9694\u51e0\u8f6e\u8ba9\u6a21\u578b\u628a\u5386\u53f2\u538b\u7f29\u6210\u6458\u8981&#xff0c;\u4fdd\u7559\u5173\u952e\u4e8b\u5b9e\u3002\u8fd9\u6837\u5373\u4f7f\u65e9\u671f\u5bf9\u8bdd\u88ab\u4e22\u5f03&#xff0c;\u7528\u6237\u8bf4\u8fc7\u7684\u5173\u952e\u4fe1\u606f&#xff08;\u6bd4\u5982\u4e70\u4e86\u4ec0\u4e48\u4fdd\u9669\u3001\u4ec0\u4e48\u75c5\u60c5&#xff09;\u8fd8\u5728\u6458\u8981\u91cc\u3002\u7b2c\u4e09\u5c42&#xff0c;\u5411\u91cf\u8bb0\u5fc6\u3002\u628a\u5386\u53f2\u5bf9\u8bdd\u5411\u91cf\u5316\u5b58\u5e93&#xff0c;\u63d0\u95ee\u65f6\u8bed\u4e49\u68c0\u7d22\u6700\u76f8\u5173\u7684\u7247\u6bb5\u3002\u9002\u5408 Agent \u548c\u9700\u8981\u957f\u671f\u8bb0\u5fc6\u7684\u573a\u666f\u3002\u53e6\u5916\u6211\u4f1a\u4e3b\u52a8\u505a Token \u9884\u7b97\u7ba1\u7406&#xff1a;\u6bcf\u6b21\u8bf7\u6c42\u524d\u4f30\u7b97\u5404\u90e8\u5206\u7684 Token \u5360\u6bd4&#xff0c;\u7ed9\u5f53\u524d\u95ee\u9898\u7559\u8db3\u7a7a\u95f4\u3002\u8fd8\u8981\u5f3a\u8c03\u4e00\u70b9&#xff1a;\u4e0a\u4e0b\u6587\u7a97\u53e3\u4e0d\u662f\u8d8a\u5927\u8d8a\u597d&#xff0c;\u8d8a\u5927\u8d8a\u8d35\u8d8a\u6162&#xff0c;\u8bb0\u5fc6\u7ba1\u7406\u7684\u6838\u5fc3\u662f&#034;\u53ea\u5e26\u8be5\u5e26\u7684&#034;\u3002<\/p>\n<hr \/>\n<p>\u4e0b\u4e00\u7bc7\u804a AIGC \u9762\u8bd5\u5fc5\u8003\u7684\u53e6\u4e00\u5ea7\u5927\u5c71\u2014\u2014\u5e7b\u89c9\u3002AI \u4e00\u672c\u6b63\u7ecf\u5730\u80e1\u8bf4\u516b\u9053&#xff0c;\u6839\u56e0\u5230\u5e95\u662f\u4ec0\u4e48&#xff1f;RAG\u3001\u63d0\u793a\u7ea6\u675f\u3001\u89e3\u7801\u53c2\u6570\u3001\u4e8b\u540e\u6821\u9a8c&#xff0c;\u56db\u5c42\u9632\u7ebf\u600e\u4e48\u642d&#xff1f;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9762\u8bd5\u5b98\u7ffb\u7740\u7b80\u5386&#xff1a;\\&#8221;\u4f60\u505a\u8fc7 AI \u5ba2\u670d&#xff1f;\\&#8221;\u5019\u9009\u4eba\u70b9\u5934&#xff1a;\\&#8221;\u5bf9&#xff0c;\u77e5\u8bc6\u5e93\u95ee\u7b54  \u591a\u8f6e\u5bf9\u8bdd\u3002\\&#8221;\\&#8221;\u7528\u6237\u8ddf AI \u804a\u4e86 20 \u8f6e\u4e4b\u540e&#xff0c;AI \u8fd8\u8bb0\u4e0d\u8bb0\u5f97\u7b2c\u4e00\u8f6e\u8bf4\u4e86\u4ec0\u4e48&#xff1f;\\&#8221;\\&#8221;\u2026\u2026\u5e94\u8be5\u8bb0\u5f97\u5427&#xff1f;\\&#8221;\\&#8221;\u4f60\u786e\u5b9a&#xff1f;\u4f60\u4e86\u89e3\u4e0a\u4e0b\u6587\u7a97\u53e3\u5417&#xff1f;\u5982\u679c Token \u8d85\u4e86\u4f1a\u53d1\u751f\u4ec0\u4e48&#xff1f;\\&#8221;\u5019\u9009\u4eba\u6c89\u9ed8\u4e86\u3002\u4ed6\u505a\u591a\u8f6e\u5bf9\u8bdd\u65f6\u786e\u5b9e\u6ca1\u8003\u8651\u8fc7\u8fd9\u4e2a\u95ee\u9898\u2014\u2014\u53cd\u6b63\u6846\u67b6\u81ea\u52a8\u5904\u7406\u5386\u53f2\u6d88\u606f&#xff0c;\u7528\u6237\u804a\u5230<\/p>\n","protected":false},"author":2,"featured_media":112649,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[99,50,176],"topic":[],"class_list":["post-112652","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-java","tag-50","tag-176"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>17 \u5927\u6a21\u578b\u7684\u8bb0\u5fc6\u53ea\u6709\u201c\u4e00\u676f\u6c34\u201c\uff0c\u957f\u5bf9\u8bdd\u600e\u4e48\u4e0d\u7ffb\u8f66\uff1f - \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\/112652.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"17 \u5927\u6a21\u578b\u7684\u8bb0\u5fc6\u53ea\u6709\u201c\u4e00\u676f\u6c34\u201c\uff0c\u957f\u5bf9\u8bdd\u600e\u4e48\u4e0d\u7ffb\u8f66\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u9762\u8bd5\u5b98\u7ffb\u7740\u7b80\u5386&#xff1a;&quot;\u4f60\u505a\u8fc7 AI \u5ba2\u670d&#xff1f;&quot;\u5019\u9009\u4eba\u70b9\u5934&#xff1a;&quot;\u5bf9&#xff0c;\u77e5\u8bc6\u5e93\u95ee\u7b54 \u591a\u8f6e\u5bf9\u8bdd\u3002&quot;&quot;\u7528\u6237\u8ddf AI \u804a\u4e86 20 \u8f6e\u4e4b\u540e&#xff0c;AI \u8fd8\u8bb0\u4e0d\u8bb0\u5f97\u7b2c\u4e00\u8f6e\u8bf4\u4e86\u4ec0\u4e48&#xff1f;&quot;&quot;\u2026\u2026\u5e94\u8be5\u8bb0\u5f97\u5427&#xff1f;&quot;&quot;\u4f60\u786e\u5b9a&#xff1f;\u4f60\u4e86\u89e3\u4e0a\u4e0b\u6587\u7a97\u53e3\u5417&#xff1f;\u5982\u679c Token \u8d85\u4e86\u4f1a\u53d1\u751f\u4ec0\u4e48&#xff1f;&quot;\u5019\u9009\u4eba\u6c89\u9ed8\u4e86\u3002\u4ed6\u505a\u591a\u8f6e\u5bf9\u8bdd\u65f6\u786e\u5b9e\u6ca1\u8003\u8651\u8fc7\u8fd9\u4e2a\u95ee\u9898\u2014\u2014\u53cd\u6b63\u6846\u67b6\u81ea\u52a8\u5904\u7406\u5386\u53f2\u6d88\u606f&#xff0c;\u7528\u6237\u804a\u5230\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/112652.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-04T03:49:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261004034910-6ac1ccb63350c.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=\"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\/112652.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/112652.html\",\"name\":\"17 \u5927\u6a21\u578b\u7684\u8bb0\u5fc6\u53ea\u6709\u201c\u4e00\u676f\u6c34\u201c\uff0c\u957f\u5bf9\u8bdd\u600e\u4e48\u4e0d\u7ffb\u8f66\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-04T03:49:12+00:00\",\"dateModified\":\"2026-10-04T03:49:12+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/112652.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/112652.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/112652.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"17 \u5927\u6a21\u578b\u7684\u8bb0\u5fc6\u53ea\u6709\u201c\u4e00\u676f\u6c34\u201c\uff0c\u957f\u5bf9\u8bdd\u600e\u4e48\u4e0d\u7ffb\u8f66\uff1f\"}]},{\"@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":"17 \u5927\u6a21\u578b\u7684\u8bb0\u5fc6\u53ea\u6709\u201c\u4e00\u676f\u6c34\u201c\uff0c\u957f\u5bf9\u8bdd\u600e\u4e48\u4e0d\u7ffb\u8f66\uff1f - \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\/112652.html","og_locale":"zh_CN","og_type":"article","og_title":"17 \u5927\u6a21\u578b\u7684\u8bb0\u5fc6\u53ea\u6709\u201c\u4e00\u676f\u6c34\u201c\uff0c\u957f\u5bf9\u8bdd\u600e\u4e48\u4e0d\u7ffb\u8f66\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u9762\u8bd5\u5b98\u7ffb\u7740\u7b80\u5386&#xff1a;\"\u4f60\u505a\u8fc7 AI \u5ba2\u670d&#xff1f;\"\u5019\u9009\u4eba\u70b9\u5934&#xff1a;\"\u5bf9&#xff0c;\u77e5\u8bc6\u5e93\u95ee\u7b54 \u591a\u8f6e\u5bf9\u8bdd\u3002\"\"\u7528\u6237\u8ddf AI \u804a\u4e86 20 \u8f6e\u4e4b\u540e&#xff0c;AI \u8fd8\u8bb0\u4e0d\u8bb0\u5f97\u7b2c\u4e00\u8f6e\u8bf4\u4e86\u4ec0\u4e48&#xff1f;\"\"\u2026\u2026\u5e94\u8be5\u8bb0\u5f97\u5427&#xff1f;\"\"\u4f60\u786e\u5b9a&#xff1f;\u4f60\u4e86\u89e3\u4e0a\u4e0b\u6587\u7a97\u53e3\u5417&#xff1f;\u5982\u679c Token \u8d85\u4e86\u4f1a\u53d1\u751f\u4ec0\u4e48&#xff1f;\"\u5019\u9009\u4eba\u6c89\u9ed8\u4e86\u3002\u4ed6\u505a\u591a\u8f6e\u5bf9\u8bdd\u65f6\u786e\u5b9e\u6ca1\u8003\u8651\u8fc7\u8fd9\u4e2a\u95ee\u9898\u2014\u2014\u53cd\u6b63\u6846\u67b6\u81ea\u52a8\u5904\u7406\u5386\u53f2\u6d88\u606f&#xff0c;\u7528\u6237\u804a\u5230","og_url":"https:\/\/www.wsisp.com\/helps\/112652.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-04T03:49:12+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261004034910-6ac1ccb63350c.png"}],"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\/112652.html","url":"https:\/\/www.wsisp.com\/helps\/112652.html","name":"17 \u5927\u6a21\u578b\u7684\u8bb0\u5fc6\u53ea\u6709\u201c\u4e00\u676f\u6c34\u201c\uff0c\u957f\u5bf9\u8bdd\u600e\u4e48\u4e0d\u7ffb\u8f66\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-04T03:49:12+00:00","dateModified":"2026-10-04T03:49:12+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/112652.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/112652.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/112652.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"17 \u5927\u6a21\u578b\u7684\u8bb0\u5fc6\u53ea\u6709\u201c\u4e00\u676f\u6c34\u201c\uff0c\u957f\u5bf9\u8bdd\u600e\u4e48\u4e0d\u7ffb\u8f66\uff1f"}]},{"@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\/112652","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=112652"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/112652\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/112649"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=112652"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=112652"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=112652"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=112652"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}