{"id":563,"date":"2026-06-15T03:00:35","date_gmt":"2026-06-15T03:00:35","guid":{"rendered":"https:\/\/hyc.eshachem.com\/program\/?page_id=563"},"modified":"2026-07-13T08:41:44","modified_gmt":"2026-07-13T08:41:44","slug":"llm-agent-%e5%8e%9f%e7%90%86%e8%a7%a3%e6%9e%90","status":"publish","type":"page","link":"https:\/\/hyc.eshachem.com\/program\/llm-agent\/llm-agent-%e5%8e%9f%e7%90%86%e8%a7%a3%e6%9e%90\/","title":{"rendered":"5. LLM &amp; Agent &#8211; \u539f\u7406\u89e3\u6790"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>\u5927\u8a9e\u8a00\u6a21\u578b\uff08LLM\uff09<\/strong>\u5176\u5be6\u5c31\u662f<strong> \u8d85\u5927\u578b\u300c\u4e0b\u4e00\u500b\u5b57\u9810\u6e2c\u5668\u300d<\/strong>\u3002<br>\u4f60\u7d66\u5b83\u4e00\u6bb5\u6587\u5b57\uff0c\u5b83\u6839\u64da\u8a13\u7df4\u904e\u7684\u7d71\u8a08\u898f\u5f8b\uff0c<strong>\u4e00\u500b token \u4e00\u500b token<\/strong> \u63a5\u4e0b\u53bb\u751f\u6210\uff0c\u76f4\u5230\u89ba\u5f97\u8a72\u7d50\u675f\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"%e5%ae%83%e3%80%8c%e4%b8%8d%e6%98%af%e3%80%8d%e4%bb%80%e9%ba%bc\">\u5b83\u300c\u4e0d\u662f\u300d\u4ec0\u9ebc<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u5e38\u898b\u8aa4\u89e3<\/th><th>\u5be6\u969b<\/th><\/tr><\/thead><tbody><tr><td>\u6709\u771f\u5be6\u4e16\u754c\u77e5\u8b58\u5eab\u53ef\u67e5<\/td><td>\u53c3\u6578\u88e1\u300c\u58d3\u7e2e\u300d\u4e86\u8a13\u7df4\u8cc7\u6599\u7684\u6a21\u5f0f\uff0c\u4e0d\u662f\u8cc7\u6599\u5eab<\/td><\/tr><tr><td>\u6703\u300c\u601d\u8003\u300d\u518d\u56de\u7b54<\/td><td>\u6c92\u6709\u7368\u7acb\u63a8\u7406\u5f15\u64ce\uff1b\u662f\u689d\u4ef6\u5f0f\u6587\u5b57\u751f\u6210<\/td><\/tr><tr><td>\u6c38\u9060\u8aaa\u5be6\u8a71<\/td><td>\u76ee\u6a19\u662f\u7522\u51fa\u6d41\u66a2\u5408\u7406\u7684\u7e8c\u5beb\uff0c\u4e0d\u662f\u4fdd\u8b49\u6b63\u78ba<\/td><\/tr><tr><td>\u8a18\u5f97\u4f60\u4e0a\u9031\u8aaa\u7684\u8a71<\/td><td>\u9664\u975e\u4f60\u628a\u6b77\u53f2\u585e\u9032\u4e0a\u4e0b\u6587\u8996\u7a97<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\">\n\n\n\n<h2 class=\"wp-block-heading\" id=\"token-%e8%88%87%e4%b8%8a%e4%b8%8b%e6%96%87%e8%a6%96%e7%aa%97%ef%bc%88context-window%ef%bc%89\">Token \u8207\u4e0a\u4e0b\u6587\u8996\u7a97\uff08Context Window\uff09<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"%e5%8e%9f%e7%90%86\">\u539f\u7406<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Token<\/strong>\uff1a\u6a21\u578b\u8b80\u5beb\u7684\u6700\u5c0f\u55ae\u4f4d\uff08\u53ef\u80fd\u662f\u5b57\u3001\u5b57\u7247\u6bb5\u6216\u82f1\u6587\u5b50\u8a5e\uff09<\/li>\n\n\n\n<li>\u4e2d\u6587\u300c\u4f60\u597d\u300d\u53ef\u80fd 2\uff5e4 \u500b token\uff1b\u82f1\u6587 \u201chello\u201d \u5e38 1 \u500b<\/li>\n\n\n\n<li><strong>\u4e0a\u4e0b\u6587\u8996\u7a97<\/strong>\uff1a\u4e00\u6b21\u80fd\u300c\u770b\u898b\u300d\u7684 token \u4e0a\u9650\uff08\u5982 8K\u300132K\u3001128K\uff09<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-merpress-mermaidjs diagram-source-mermaid\"><pre class=\"mermaid\">flowchart LR\n  SYS[\"System Prompt\"] --&gt; CTX[\"\u4e0a\u4e0b\u6587\u8996\u7a97&lt;br&gt;\u6709\u9650\u9577\u5ea6\"]\n  HIST[\"\u5c0d\u8a71\u6b77\u53f2\"] --&gt; CTX\n  RAG[\"RAG \u6aa2\u7d22\u6bb5\u843d\"] --&gt; CTX\n  USER[\"\u4f7f\u7528\u8005\u554f\u984c\"] --&gt; CTX\n  CTX --&gt; OUT[\"\u6a21\u578b\u7e8c\u5beb\u8f38\u51fa\"]<\/pre><\/div>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">\u6a21\u578b\u8d8a\u5927\u3001context \u8d8a\u5927\uff0c<strong>\u672c\u6a5f RAM\/VRAM \u9700\u6c42\u8d8a\u9ad8<\/strong><\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"transformer-%e7%9b%b4%e8%a6%ba\">Transformer \u76f4\u89ba<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"attention%ef%bc%88%e6%b3%a8%e6%84%8f%e5%8a%9b%ef%bc%89\">Attention\uff08\u6ce8\u610f\u529b\uff09<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Transformer \u554f\u7684\u662f\uff1a<strong>\u7576\u524d\u8981\u9810\u6e2c\u4e0b\u4e00\u500b token \u6642\uff0c\u61c9\u8a72\u300c\u591a\u770b\u300d\u8f38\u5165\u88e1\u7684\u54ea\u4e9b\u4f4d\u7f6e\uff1f<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u300c\u5b83\u300d\u53ef\u80fd\u6307\u5411\u524d\u6587\u7684\u300c\u860b\u679c\u300d\u6216\u300c\u516c\u53f8\u300d<\/li>\n\n\n\n<li>Attention \u8b93\u6a21\u578b\u5efa\u7acb<strong>\u9577\u8ddd\u96e2\u4f9d\u8cf4<\/strong>\uff0c\u6bd4\u820a RNN \u66f4\u80fd\u8655\u7406\u9577\u6587<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"%e7%82%ba%e4%bb%80%e9%ba%bc%e6%a8%a1%e5%9e%8b%e6%9c%89%e3%80%8c%e5%8f%83%e6%95%b8%e9%87%8f%e3%80%8d%ef%bc%9f\">\u70ba\u4ec0\u9ebc\u6a21\u578b\u6709\u300c\u53c3\u6578\u91cf\u300d\uff1f<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u898f\u6a21<\/th><th>\u7d04\u7565\u610f\u7fa9<\/th><th>\u672c\u6a5f\u53ef\u884c\u6027<\/th><\/tr><\/thead><tbody><tr><td>7B<\/td><td>70 \u5104\u53c3\u6578\uff0c\u6559\u5b78\u8207 Tool \u5e38\u7528<\/td><td>16GB RAM \u53ef\u8dd1\uff08\u91cf\u5316\u5f8c\uff09<\/td><\/tr><tr><td>13B\uff5e70B<\/td><td>\u66f4\u5f37\u63a8\u7406\u8207\u77e5\u8b58<\/td><td>\u9700\u8f03\u5927 VRAM \u6216\u96f2\u7aef<\/td><\/tr><tr><td>MoE\uff08\u6df7\u5408\u5c08\u5bb6\uff09<\/td><td>\u7e3d\u53c3\u6578\u5927\uff0c\u6bcf\u6b21\u53ea\u555f\u7528\u90e8\u5206<\/td><td>Ollama \u90e8\u5206\u6a21\u578b\u652f\u63f4<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>\u53c3\u6578 = \u6a21\u578b\u5728\u8a13\u7df4\u4e2d\u5b78\u5230\u7684\u6b0a\u91cd<\/strong>\uff1b\u4e0d\u662f\u300c\u8a18\u4f4f\u7684 Wikipedia \u689d\u76ee\u6578\u300d\u3002<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"%e6%a8%a1%e5%9e%8b%e6%80%8e%e9%ba%bc%e4%be%86%e7%9a%84%ef%bc%9f\">\u6a21\u578b\u600e\u9ebc\u4f86\u7684\uff1f<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"%e9%a0%90%e8%a8%93%e7%b7%b4%ef%bc%88pre-training%ef%bc%89\">\u9810\u8a13\u7df4\uff08Pre-training\uff09<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u9935\u6d77\u91cf\u6587\u5b57\uff08\u7db2\u9801\u3001\u66f8\u3001\u7a0b\u5f0f\u78bc\u2026\uff09<\/li>\n\n\n\n<li>\u4efb\u52d9\uff1a<strong>\u4e0b\u4e00\u500b token \u9810\u6e2c<\/strong><\/li>\n\n\n\n<li>\u7522\u51fa\u300c\u57fa\u790e\u6a21\u578b\u300d\uff0c\u6703\u7e8c\u5beb\u4f46\u672a\u5fc5\u807d\u8a71\u3001\u672a\u5fc5\u5b89\u5168<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"%e5%be%ae%e8%aa%bf%ef%bc%88fine-tuning%ef%bc%89\">\u5fae\u8abf\uff08Fine-tuning\uff09<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u7528\u8f03\u9ad8\u54c1\u8cea\u3001\u4efb\u52d9\u5c0e\u5411\u8cc7\u6599\u7e7c\u7e8c\u8a13\u7df4<\/li>\n\n\n\n<li>\u4f8b\uff1a\u6307\u4ee4\u9075\u5faa\u3001\u7a0b\u5f0f\u78bc\u3001\u7e41\u9ad4\u4e2d\u6587\u52a0\u5f37<\/li>\n\n\n\n<li><code>qwen2.5:7b-instruct<\/code> \u7684 <strong>instruct<\/strong> \u5373\u7d93\u904e\u6307\u4ee4\u5fae\u8abf<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"%e5%b0%8d%e9%bd%8a%ef%bc%88alignment%ef%bc%89\">\u5c0d\u9f4a\uff08Alignment\uff09<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>RLHF \/ DPO<\/strong> \u7b49\uff1a\u8b93\u8f38\u51fa\u66f4\u7b26\u5408\u4eba\u985e\u504f\u597d\uff08\u6709\u79ae\u8c8c\u3001\u5c11\u6bd2\u6027\u3001\u8f03\u5b89\u5168\uff09<\/li>\n\n\n\n<li>\u89e3\u91cb\u4e86\u70ba\u4ec0\u9ebc\u5546\u696d\u6a21\u578b\u5e38\u300c\u62d2\u7d55\u300d\u67d0\u4e9b\u8acb\u6c42<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-merpress-mermaidjs diagram-source-mermaid\"><pre class=\"mermaid\">flowchart LR\n  A[\"\u9810\u8a13\u7df4&lt;br&gt;\u6703\u5beb\"] --&gt; B[\"\u5fae\u8abf&lt;br&gt;\u6703\u807d\u6307\u4ee4\"]\n  B --&gt; C[\"\u5c0d\u9f4a&lt;br&gt;\u66f4\u50cf\u52a9\u7406\"]\n  C --&gt; D[\"\u4f60\u7528\u7684 chat \u6a21\u578b\"]<\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"%e6%8e%a8%e7%90%86%e5%8f%83%e6%95%b8-%e6%8e%a7%e5%88%b6%e3%80%8c%e9%9a%a8%e6%a9%9f%e6%80%a7%e3%80%8d\">\u63a8\u7406\u53c3\u6578 \u2014 \u63a7\u5236\u300c\u96a8\u6a5f\u6027\u300d<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u751f\u6210\u6642\u4e0d\u662f\u5b8c\u5168\u78ba\u5b9a\u6027\uff1b\u5e38\u898b\u65cb\u9215\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u53c3\u6578<\/th><th>\u4f4e\u503c\u6548\u679c<\/th><th>\u9ad8\u503c\u6548\u679c<\/th><th>\u5efa\u8b70\u5834\u666f<\/th><\/tr><\/thead><tbody><tr><td>temperature<\/td><td>\u4fdd\u5b88\u3001\u91cd\u8907\u6027\u9ad8<\/td><td>\u5275\u610f\u3001\u767c\u6563<\/td><td>Tool \u9078\u64c7\u7528 0.1\uff5e0.3\uff1b\u5beb\u4f5c\u7528 0.7\uff5e0.9<\/td><\/tr><tr><td>top_p<\/td><td>\u53ea\u5728\u9ad8\u6a5f\u7387 token \u4e2d\u9078<\/td><td>\u8a5e\u5f59\u66f4\u8c50\u5bcc<\/td><td>\u8207 temperature \u4e8c\u64c7\u4e00\u8abf\u5373\u53ef<\/td><\/tr><tr><td>max_tokens<\/td><td>\u8f38\u51fa\u77ed<\/td><td>\u8f38\u51fa\u9577<\/td><td>\u63a7\u5236\u6210\u672c\u8207\u622a\u65b7<\/td><\/tr><tr><td>stop sequences<\/td><td>\u2014<\/td><td>\u9047\u5230\u7279\u5b9a\u5b57\u505c\u6b62<\/td><td>\u7d50\u69cb\u5316\u8f38\u51fa<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u6a21\u578b\u6bcf\u4e00\u6b65\u5c0d\u8a5e\u5f59\u8868\u6709<strong>\u6a5f\u7387\u5206\u5e03<\/strong>\uff1btemperature \u628a\u5206\u5e03\u300c\u58d3\u6241\u6216\u62c9\u5c16\u300d\uff0c\u518d<strong>\u62bd\u6a23<\/strong>\u4e0b\u4e00 token\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">\u81ea\u8a02\u6a21\u578b\u8a2d <code>Temperature: 0.3<\/code>\uff0c\u5c31\u662f\u964d\u4f4e\u80e1\u4e82\u767c\u63ee\uff0c\u8b93\u300cNext.js \u52a9\u6559\u300d\u98a8\u683c\u7a69\u5b9a\u3002<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\">\n\n\n\n<h2 class=\"wp-block-heading\" id=\"%e5%b9%bb%e8%a6%ba%ef%bc%88hallucination%ef%bc%89%e8%88%87-rag\">\u5e7b\u89ba\uff08Hallucination\uff09\u8207 RAG<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u5e7b\u89ba\u662f\u6a21\u578b\u7522\u51fa<strong>\u6d41\u66a2\u4f46\u932f\u8aa4<\/strong>\u7684\u5167\u5bb9\uff1a\u5047\u8ad6\u6587\u3001\u5047\u80a1\u50f9\u3001\u5047 API\u3002\u5b83\u512a\u5316\u7684\u662f\u300c\u50cf\u771f\u7684\u300d\uff0c\u4e0d\u662f\u300c\u67e5\u8b49\u904e\u300d\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>RAG\uff08Retrieval-Augmented Generation\uff09<\/strong> = \u751f\u6210\u524d\u5148<strong>\u6aa2\u7d22<\/strong>\u4f60\u7684\u6587\u4ef6\uff0c\u628a\u76f8\u95dc\u6bb5\u843d\u585e\u9032 prompt\u3002<\/p>\n\n\n\n<div class=\"wp-block-merpress-mermaidjs diagram-source-mermaid\"><pre class=\"mermaid\">sequenceDiagram\n  participant U as \u4f7f\u7528\u8005\n  participant W as Open WebUI\n  participant V as \u5411\u91cf\u5eab\n  participant L as LLM\n  U-&gt;&gt;W: \u554f\u984c\n  W-&gt;&gt;V: \u5411\u91cf\u76f8\u4f3c\u5ea6\u641c\u5c0b\n  V--&gt;&gt;W: Top-K \u6bb5\u843d\n  W-&gt;&gt;L: Prompt = \u7cfb\u7d71\u63d0\u793a + \u6bb5\u843d + \u554f\u984c\n  L--&gt;&gt;W: \u4f9d\u64da\u6bb5\u843d\u7684\u56de\u7b54\n  W--&gt;&gt;U: \u986f\u793a\uff08\u53ef\u9644\u5f15\u7528\uff09<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"rag-%e4%b8%89%e6%ad%a5\">RAG \u4e09\u6b65<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u5207\u7247 + Embedding<\/strong>\uff1a\u6587\u4ef6 \u2192 \u5411\u91cf<\/li>\n\n\n\n<li><strong>\u6aa2\u7d22<\/strong>\uff1a\u554f\u984c\u5411\u91cf\u627e\u6700\u8fd1\u9130<\/li>\n\n\n\n<li><strong>\u589e\u5f37\u751f\u6210<\/strong>\uff1aLLM \u53ea\u8ca0\u8cac\u300c\u8b80\u7d66\u5b83\u7684\u6750\u6599\u300d\u505a\u6458\u8981\u56de\u7b54<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"%e9%99%90%e5%88%b6\">\u9650\u5236<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u6587\u4ef6\u721b \u2192 \u7b54\u6848\u721b\uff08Garbage in, garbage out\uff09<\/li>\n\n\n\n<li>\u6aa2\u7d22\u932f\u6bb5\u843d \u2192 \u7b54\u975e\u6240\u554f<\/li>\n<\/ul>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>\u4e0d\u80fd\u53d6\u4ee3<\/strong> Tool\uff1a\u5373\u6642\u80a1\u50f9\u3001\u5beb\u6a94\u4ecd\u8981 API \/ Python<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"%e5%be%9e-llm-%e5%88%b0-agent-tool-calling\">\u5f9e LLM \u5230 Agent \u2014 Tool Calling<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"%e7%b4%94-llm-vs-agent\">\u7d14 LLM vs Agent<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><\/th><th>\u7d14 LLM<\/th><th>Agent\uff08+ Tools\uff09<\/th><\/tr><\/thead><tbody><tr><td>\u80fd\u529b<\/td><td>\u53ea\u7522\u751f\u6587\u5b57<\/td><td>\u53ef\u89f8\u767c\u5916\u90e8\u52d5\u4f5c<\/td><\/tr><tr><td>\u4f8b\u5b50<\/td><td>\u89e3\u91cb\u4ec0\u9ebc\u662f PE \u6bd4<\/td><td>\u771f\u7684\u53bb\u67e5 <a href=\"http:\/\/2330.TW\">2330.TW<\/a> \u80a1\u50f9<\/td><\/tr><tr><td>\u98a8\u96aa<\/td><td>\u5e7b\u89ba\u6578\u5b57<\/td><td>Tool \u57f7\u884c\u932f\u8aa4\u9700\u8655\u7406<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"function-calling-%e5%8e%9f%e7%90%86\">Function Calling \u539f\u7406<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u6bcf\u500b Tool \u6709 <strong>\u540d\u7a31\u3001\u53c3\u6578 schema\u3001\u8aaa\u660e<\/strong><\/li>\n\n\n\n<li>\u6a21\u578b\u8f38\u51fa\u7d50\u69cb\u5316 JSON\uff1a<code>{\"name\": \"get_stock_price\", \"arguments\": {\"ticker\": \"2330.TW\"}}<\/code><\/li>\n\n\n\n<li><strong>\u57f7\u884c\u74b0\u5883<\/strong>\uff08Open WebUI \/ LangChain\uff09\u8dd1\u51fd\u5f0f\uff0c\u7d50\u679c\u5b57\u4e32\u585e\u56de\u4e0a\u4e0b\u6587<\/li>\n\n\n\n<li>\u6a21\u578b\u518d\u7d44\u7e54\u6210\u81ea\u7136\u8a9e\u8a00<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"agent-%e9%81%8b%e4%bd%9c%e8%bf%b4%e5%9c%88%ef%bc%88react-%e6%a8%a1%e5%bc%8f%ef%bc%89\">Agent \u904b\u4f5c\u8ff4\u5708\uff08ReAct \u6a21\u5f0f\uff09<\/h3>\n\n\n\n<div class=\"wp-block-merpress-mermaidjs diagram-source-mermaid\"><pre class=\"mermaid\">flowchart TD\n  Q[\"\u4f7f\u7528\u8005\u554f\u984c\"] --&gt; T[\"Thought \u601d\u8003\"]\n  T --&gt; A[\"Action \u9078\u64c7\u5de5\u5177\"]\n  A --&gt; O[\"Observation \u89c0\u5bdf\u7d50\u679c\"]\n  O --&gt; D{\"\u4efb\u52d9\u5b8c\u6210\uff1f\"}\n  D --&gt;|\u5426| T\n  D --&gt;|\u662f| R[\"\u56de\u8986\u4f7f\u7528\u8005\"]\n<\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Agent \u4e0d\u662f\u300c\u554f\u4e00\u53e5\u7b54\u4e00\u53e5\u300d\uff0c\u800c\u662f\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u601d\u8003<\/strong>\u4e0b\u4e00\u6b65\u8981\u505a\u4ec0\u9ebc<\/li>\n\n\n\n<li><strong>\u884c\u52d5<\/strong>\u547c\u53eb\u5de5\u5177\uff08\u5beb\u6a94\u3001\u8b80\u6a94\u3001\u547c\u53eb Notion API\uff09<\/li>\n\n\n\n<li><strong>\u89c0\u5bdf<\/strong>\u5de5\u5177\u56de\u50b3\u7d50\u679c<\/li>\n\n\n\n<li><strong>\u91cd\u8907<\/strong>\u76f4\u5230\u4efb\u52d9\u5b8c\u6210<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u672c\u5730 vs \u96f2\u7aef<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u65b9\u6848<\/th><th>\u512a\u9ede<\/th><th>\u7f3a\u9ede<\/th><\/tr><\/thead><tbody><tr><td><strong>\u672c\u5730\uff08\u672c\u8b1b\u7fa9\uff09<\/strong><\/td><td>\u96b1\u79c1\u3001\u514d API \u8cbb\u3001\u53ef\u5ba2\u88fd<\/td><td>\u9700\u81ea\u884c\u7ba1\u7406\u6a21\u578b\u8207\u786c\u9ad4<\/td><\/tr><tr><td><strong>\u96f2\u7aef API<\/strong><\/td><td>\u80fd\u529b\u5f37\u3001\u514d\u88dd\u6a21\u578b<\/td><td>\u6309\u91cf\u8a08\u8cbb\u3001\u8cc7\u6599\u4e0a\u50b3<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\">\n\n\n\n<h2 class=\"wp-block-heading\" id=\"ollama-%e8%88%87%e6%9c%ac%e6%a9%9f%e6%8e%a8%e7%90%86-llm-%e5%8e%9f%e7%90%86%e7%9a%84%e8%90%bd%e5%9c%b0\">Ollama \u8207\u672c\u6a5f\u63a8\u7406 \u2014 LLM \u539f\u7406\u7684\u843d\u5730<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"%e6%9c%ac%e6%a9%9f%e8%b7%91%e7%9a%84%e6%98%af%e5%90%8c%e4%b8%80%e5%a5%97%e6%95%b8%e5%ad%b8\">\u672c\u6a5f\u8dd1\u7684\u662f\u540c\u4e00\u5957\u6578\u5b78<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Ollama \u4e0d\u662f\u300c\u7c21\u5316\u7248 ChatGPT\u300d\uff0c\u800c\u662f\u628a<strong>\u540c\u6b3e Transformer \u6b0a\u91cd<\/strong>\u8f09\u5165\u8a18\u61b6\u9ad4\uff0c\u5728\u4f60\u7684 CPU\/GPU \u4e0a\u505a<strong>\u81ea\u8ff4\u6b78\u751f\u6210<\/strong>\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u6982\u5ff5<\/th><th>\u96f2\u7aef API<\/th><th>Ollama \u672c\u6a5f<\/th><\/tr><\/thead><tbody><tr><td>\u6a21\u578b<\/td><td>\u5ee0\u5546\u4f3a\u670d\u5668\u4e0a\u7684\u6b0a\u91cd<\/td><td><code>~\/.ollama\/models<\/code> \u88e1\u7684\u6a94\u6848<\/td><\/tr><tr><td>\u63a8\u7406<\/td><td>\u4ed6\u5011\u7684 GPU<\/td><td>\u4f60\u7684 RAM\/VRAM<\/td><\/tr><tr><td>\u96b1\u79c1<\/td><td>\u8acb\u6c42\u4e0a\u50b3<\/td><td>\u9810\u8a2d\u4e0d\u51fa\u6a5f\u623f<\/td><\/tr><tr><td>\u6210\u672c<\/td><td>\u6309 token \u4ed8\u8cbb<\/td><td>\u786c\u9ad4\u8207\u96fb\u8cbb<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"%e9%87%8f%e5%8c%96%ef%bc%88quantization%ef%bc%89%e7%9b%b4%e8%a6%ba\">\u91cf\u5316\uff08Quantization\uff09\u76f4\u89ba<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>FP16 \u6b0a\u91cd\u5927 \u2192 \u6162\u3001\u5403\u8a18\u61b6\u9ad4<\/li>\n\n\n\n<li>Q4_K_M \u7b49\u91cf\u5316 \u2192 \u6b0a\u91cd\u58d3\u7e2e\uff0c\u7565\u640d\u7cbe\u5ea6\uff0c<strong>\u5927\u5e45\u964d RAM<\/strong><\/li>\n\n\n\n<li>\u9019\u5c31\u662f\u70ba\u4ec0\u9ebc 7B \u80fd\u5728\u7b46\u96fb\u8dd1\u8d77\u4f86<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"open-webui-%e5%9c%a8%e6%9e%b6%e6%a7%8b%e4%b8%ad%e7%9a%84%e4%bd%8d%e7%bd%ae\">Open WebUI \u5728\u67b6\u69cb\u4e2d\u7684\u4f4d\u7f6e<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Open WebUI <strong>\u4e0d\u8a13\u7df4\u6a21\u578b<\/strong>\uff1b\u5b83\u8ca0\u8cac\uff1a\u5c0d\u8a71\u7ba1\u7406\u3001RAG\u3001Tool \u7de8\u6392\u3001\u628a\u8acb\u6c42\u8f49\u7d66 Ollama API\u3002<\/p>\n\n\n\n<div class=\"wp-block-merpress-mermaidjs diagram-source-mermaid\"><pre class=\"mermaid\">flowchart TB\n  U[\"\u4f7f\u7528\u8005\"] --&gt; OW[\"Open WebUI&lt;br&gt;\u7de8\u6392\u5c64\"]\n  OW --&gt;|HTTP API| OL[\"Ollama&lt;br&gt;\u63a8\u7406\u5f15\u64ce\"]\n  OL --&gt; M[\"\u6b0a\u91cd\u6a94&lt;br&gt;qwen2.5:7b\"]\n  OW --&gt; RAG[\"\u5411\u91cf\u5eab RAG\"]\n  OW --&gt; TOOL[\"Python Tools\"]<\/pre><\/div>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<h2 class=\"wp-block-heading\">\u5ef6\u4f38\u95b1\u8b80<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/ollama.com\/library\">Ollama \u6a21\u578b\u5eab<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/docs.openwebui.com\/\">Open WebUI \u6587\u4ef6<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/arxiv.org\/abs\/1706.03762\">Attention Is All You Need\uff08\u539f\u59cb\u8ad6\u6587\uff0c\u9078\u8b80\uff09<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/arxiv.org\/abs\/2005.11401\">RAG \u6982\u5ff5\uff08Lewis et al.\uff09<\/a><\/li>\n<\/ul>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u5927\u8a9e\u8a00\u6a21\u578b\uff08LLM\uff09\u5176\u5be6\u5c31\u662f \u8d85\u5927\u578b\u300c\u4e0b\u4e00\u500b\u5b57\u9810\u6e2c\u5668\u300d\u3002\u4f60\u7d66\u5b83\u4e00\u6bb5\u6587\u5b57\uff0c\u5b83\u6839\u64da\u8a13\u7df4\u904e\u7684\u7d71\u8a08\u898f\u5f8b\uff0c\u4e00\u500b token \u4e00\u500b token \u63a5\u4e0b\u53bb\u751f\u6210\uff0c\u76f4\u5230\u89ba\u5f97\u8a72\u7d50\u675f\u3002 \u5b83\u300c\u4e0d\u662f\u300d\u4ec0\u9ebc \u5e38\u898b\u8aa4\u89e3 \u5be6\u969b \u6709\u771f\u5be6\u4e16\u754c\u77e5\u8b58\u5eab\u53ef\u67e5 \u53c3\u6578\u88e1\u300c\u58d3\u7e2e\u300d\u4e86\u8a13\u7df4\u8cc7\u6599\u7684\u6a21\u5f0f\uff0c\u4e0d\u662f\u8cc7\u6599\u5eab \u6703\u300c\u601d\u8003\u300d\u518d\u56de\u7b54 \u6c92\u6709\u7368\u7acb\u63a8\u7406\u5f15\u64ce\uff1b\u662f\u689d\u4ef6\u5f0f\u6587\u5b57\u751f\u6210 \u6c38\u9060\u8aaa\u5be6\u8a71 \u76ee\u6a19\u662f\u7522\u51fa\u6d41\u66a2\u5408\u7406\u7684\u7e8c\u5beb\uff0c\u4e0d\u662f\u4fdd\u8b49\u6b63\u78ba \u8a18\u5f97\u4f60\u4e0a\u9031\u8aaa\u7684\u8a71 \u9664\u975e\u4f60\u628a\u6b77\u53f2\u585e\u9032\u4e0a\u4e0b\u6587\u8996\u7a97 Token \u8207\u4e0a\u4e0b\u6587\u8996\u7a97\uff08Context Window\uff09 \u539f\u7406 \u6a21\u578b\u8d8a\u5927\u3001context \u8d8a\u5927\uff0c\u672c\u6a5f RAM\/VRAM \u9700\u6c42\u8d8a\u9ad8 Transformer \u76f4\u89ba Attention\uff08\u6ce8\u610f\u529b\uff09 Transformer \u554f\u7684\u662f\uff1a\u7576\u524d\u8981\u9810\u6e2c\u4e0b\u4e00\u500b token \u6642\uff0c\u61c9\u8a72\u300c\u591a\u770b\u300d\u8f38\u5165\u88e1\u7684\u54ea\u4e9b\u4f4d\u7f6e\uff1f \u70ba\u4ec0\u9ebc\u6a21\u578b\u6709\u300c\u53c3\u6578\u91cf\u300d\uff1f \u898f\u6a21 \u7d04\u7565\u610f\u7fa9 \u672c\u6a5f\u53ef\u884c\u6027 7B 70 \u5104\u53c3\u6578\uff0c\u6559\u5b78\u8207 Tool \u5e38\u7528 16GB RAM \u53ef\u8dd1\uff08\u91cf\u5316\u5f8c\uff09 13B\uff5e70B \u66f4\u5f37\u63a8\u7406\u8207\u77e5\u8b58 \u9700\u8f03\u5927 VRAM \u6216\u96f2\u7aef MoE\uff08\u6df7\u5408\u5c08\u5bb6\uff09 \u7e3d\u53c3\u6578\u5927\uff0c\u6bcf\u6b21\u53ea\u555f\u7528\u90e8\u5206 Ollama \u90e8\u5206\u6a21\u578b\u652f\u63f4 \u53c3\u6578 = [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":520,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"footnotes":""},"class_list":["post-563","page","type-page","status-publish","hentry"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u5927\u8a9e\u8a00\u6a21\u578b\uff08LLM\uff09\u5176\u5be6\u5c31\u662f \u8d85\u5927\u578b\u300c\u4e0b\u4e00\u500b\u5b57\u9810\u6e2c\u5668\u300d\u3002\u4f60\u7d66\u5b83\u4e00\u6bb5\u6587\u5b57\uff0c\u5b83\u6839\u64da\u8a13\u7df4\u904e\u7684\u7d71\u8a08\u898f\u5f8b\uff0c\u4e00\u500b token \u4e00\u500b token \u63a5\u4e0b\u53bb\u751f\u6210\uff0c\u76f4\u5230\u89ba\u5f97\u8a72\u7d50\u675f\u3002 \u5b83\u300c\u4e0d\u662f\u300d\u4ec0\u9ebc Token \u8207\u4e0a\u4e0b\u6587\u8996\u7a97\uff08Context Window\uff09 \u539f\u7406 Token\uff1a\u6a21\u578b\u8b80\u5beb\u7684\u6700\u5c0f\u55ae\u4f4d\uff08\u53ef\u80fd\u662f\u5b57\u3001\u5b57\u7247\u6bb5\u6216\u82f1\u6587\u5b50\u8a5e\uff09 \u4e2d\u6587\u300c\u4f60\u597d\u300d\u53ef\u80fd 2\uff5e4 \u500b token\uff1b\u82f1\u6587 &quot;hello&quot; \u5e38 1 \u500b \u4e0a\u4e0b\u6587\u8996\u7a97\uff1a\u4e00\u6b21\u80fd\u300c\u770b\u898b\u300d\u7684 token \u4e0a\u9650\uff08\u5982 8K\u300132K\u3001128K\uff09 flowchart LR SYS[&quot;System Prompt&quot;] --&gt; CTX[&quot;\u4e0a\u4e0b\u6587\u8996\u7a97\u6709\u9650\u9577\u5ea6&quot;] HIST[&quot;\u5c0d\u8a71\u6b77\u53f2&quot;] --&gt; CTX RAG[&quot;RAG \u6aa2\u7d22\u6bb5\u843d&quot;] --&gt; CTX USER[&quot;\u4f7f\u7528\u8005\u554f\u984c&quot;] --&gt; CTX CTX --&gt; OUT[&quot;\u6a21\u578b\u7e8c\u5beb\u8f38\u51fa&quot;] \u6a21\u578b\u8d8a\u5927\u3001context \u8d8a\u5927\uff0c\u672c\u6a5f RAM\/VRAM \u9700\u6c42\u8d8a\u9ad8 Transformer \u76f4\u89ba Attention\uff08\u6ce8\u610f\u529b\uff09 Transformer \u554f\u7684\u662f\uff1a\u7576\u524d\u8981\u9810\u6e2c\u4e0b\u4e00\u500b token \u6642\uff0c\u61c9\u8a72\u300c\u591a\u770b\u300d\u8f38\u5165\u88e1\u7684\u54ea\u4e9b\u4f4d\u7f6e\uff1f \u300c\u5b83\u300d\u53ef\u80fd\u6307\u5411\u524d\u6587\u7684\u300c\u860b\u679c\u300d\u6216\u300c\u516c\u53f8\u300d\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"google-site-verification\" content=\"-324YR5tomynX5FeTW2lTMHIX0KmPBvpxjXpOhXwi1Q\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/hyc.eshachem.com\/program\/llm-agent\/llm-agent-%e5%8e%9f%e7%90%86%e8%a7%a3%e6%9e%90\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"HyC Wiki - Technical articles\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"5. LLM &amp; Agent \u2013 \u539f\u7406\u89e3\u6790 - HyC Wiki\" \/>\n\t\t<meta property=\"og:description\" content=\"\u5927\u8a9e\u8a00\u6a21\u578b\uff08LLM\uff09\u5176\u5be6\u5c31\u662f \u8d85\u5927\u578b\u300c\u4e0b\u4e00\u500b\u5b57\u9810\u6e2c\u5668\u300d\u3002\u4f60\u7d66\u5b83\u4e00\u6bb5\u6587\u5b57\uff0c\u5b83\u6839\u64da\u8a13\u7df4\u904e\u7684\u7d71\u8a08\u898f\u5f8b\uff0c\u4e00\u500b token \u4e00\u500b token \u63a5\u4e0b\u53bb\u751f\u6210\uff0c\u76f4\u5230\u89ba\u5f97\u8a72\u7d50\u675f\u3002 \u5b83\u300c\u4e0d\u662f\u300d\u4ec0\u9ebc Token \u8207\u4e0a\u4e0b\u6587\u8996\u7a97\uff08Context Window\uff09 \u539f\u7406 Token\uff1a\u6a21\u578b\u8b80\u5beb\u7684\u6700\u5c0f\u55ae\u4f4d\uff08\u53ef\u80fd\u662f\u5b57\u3001\u5b57\u7247\u6bb5\u6216\u82f1\u6587\u5b50\u8a5e\uff09 \u4e2d\u6587\u300c\u4f60\u597d\u300d\u53ef\u80fd 2\uff5e4 \u500b token\uff1b\u82f1\u6587 &quot;hello&quot; \u5e38 1 \u500b \u4e0a\u4e0b\u6587\u8996\u7a97\uff1a\u4e00\u6b21\u80fd\u300c\u770b\u898b\u300d\u7684 token \u4e0a\u9650\uff08\u5982 8K\u300132K\u3001128K\uff09 flowchart LR SYS[&quot;System Prompt&quot;] --&gt; CTX[&quot;\u4e0a\u4e0b\u6587\u8996\u7a97\u6709\u9650\u9577\u5ea6&quot;] HIST[&quot;\u5c0d\u8a71\u6b77\u53f2&quot;] --&gt; CTX RAG[&quot;RAG \u6aa2\u7d22\u6bb5\u843d&quot;] --&gt; CTX USER[&quot;\u4f7f\u7528\u8005\u554f\u984c&quot;] --&gt; CTX CTX --&gt; OUT[&quot;\u6a21\u578b\u7e8c\u5beb\u8f38\u51fa&quot;] \u6a21\u578b\u8d8a\u5927\u3001context \u8d8a\u5927\uff0c\u672c\u6a5f RAM\/VRAM \u9700\u6c42\u8d8a\u9ad8 Transformer \u76f4\u89ba Attention\uff08\u6ce8\u610f\u529b\uff09 Transformer \u554f\u7684\u662f\uff1a\u7576\u524d\u8981\u9810\u6e2c\u4e0b\u4e00\u500b token \u6642\uff0c\u61c9\u8a72\u300c\u591a\u770b\u300d\u8f38\u5165\u88e1\u7684\u54ea\u4e9b\u4f4d\u7f6e\uff1f \u300c\u5b83\u300d\u53ef\u80fd\u6307\u5411\u524d\u6587\u7684\u300c\u860b\u679c\u300d\u6216\u300c\u516c\u53f8\u300d\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/hyc.eshachem.com\/program\/llm-agent\/llm-agent-%e5%8e%9f%e7%90%86%e8%a7%a3%e6%9e%90\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/hyc.eshachem.com\/program\/wp-content\/uploads\/2026\/06\/cropped-cropped-\u672a\u547d\u540d\u8a2d\u8a08-4.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/hyc.eshachem.com\/program\/wp-content\/uploads\/2026\/06\/cropped-cropped-\u672a\u547d\u540d\u8a2d\u8a08-4.png\" \/>\n\t\t<meta property=\"og:image:width\" content=\"64\" \/>\n\t\t<meta property=\"og:image:height\" content=\"64\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2026-06-15T03:00:35+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-07-13T08:41:44+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"5. LLM &amp; Agent \u2013 \u539f\u7406\u89e3\u6790 - HyC Wiki\" \/>\n\t\t<meta name=\"twitter:description\" content=\"\u5927\u8a9e\u8a00\u6a21\u578b\uff08LLM\uff09\u5176\u5be6\u5c31\u662f \u8d85\u5927\u578b\u300c\u4e0b\u4e00\u500b\u5b57\u9810\u6e2c\u5668\u300d\u3002\u4f60\u7d66\u5b83\u4e00\u6bb5\u6587\u5b57\uff0c\u5b83\u6839\u64da\u8a13\u7df4\u904e\u7684\u7d71\u8a08\u898f\u5f8b\uff0c\u4e00\u500b token \u4e00\u500b token \u63a5\u4e0b\u53bb\u751f\u6210\uff0c\u76f4\u5230\u89ba\u5f97\u8a72\u7d50\u675f\u3002 \u5b83\u300c\u4e0d\u662f\u300d\u4ec0\u9ebc Token \u8207\u4e0a\u4e0b\u6587\u8996\u7a97\uff08Context Window\uff09 \u539f\u7406 Token\uff1a\u6a21\u578b\u8b80\u5beb\u7684\u6700\u5c0f\u55ae\u4f4d\uff08\u53ef\u80fd\u662f\u5b57\u3001\u5b57\u7247\u6bb5\u6216\u82f1\u6587\u5b50\u8a5e\uff09 \u4e2d\u6587\u300c\u4f60\u597d\u300d\u53ef\u80fd 2\uff5e4 \u500b token\uff1b\u82f1\u6587 &quot;hello&quot; \u5e38 1 \u500b \u4e0a\u4e0b\u6587\u8996\u7a97\uff1a\u4e00\u6b21\u80fd\u300c\u770b\u898b\u300d\u7684 token \u4e0a\u9650\uff08\u5982 8K\u300132K\u3001128K\uff09 flowchart LR SYS[&quot;System Prompt&quot;] --&gt; CTX[&quot;\u4e0a\u4e0b\u6587\u8996\u7a97\u6709\u9650\u9577\u5ea6&quot;] HIST[&quot;\u5c0d\u8a71\u6b77\u53f2&quot;] --&gt; CTX RAG[&quot;RAG \u6aa2\u7d22\u6bb5\u843d&quot;] --&gt; CTX USER[&quot;\u4f7f\u7528\u8005\u554f\u984c&quot;] --&gt; CTX CTX --&gt; OUT[&quot;\u6a21\u578b\u7e8c\u5beb\u8f38\u51fa&quot;] \u6a21\u578b\u8d8a\u5927\u3001context \u8d8a\u5927\uff0c\u672c\u6a5f RAM\/VRAM \u9700\u6c42\u8d8a\u9ad8 Transformer \u76f4\u89ba Attention\uff08\u6ce8\u610f\u529b\uff09 Transformer \u554f\u7684\u662f\uff1a\u7576\u524d\u8981\u9810\u6e2c\u4e0b\u4e00\u500b token \u6642\uff0c\u61c9\u8a72\u300c\u591a\u770b\u300d\u8f38\u5165\u88e1\u7684\u54ea\u4e9b\u4f4d\u7f6e\uff1f \u300c\u5b83\u300d\u53ef\u80fd\u6307\u5411\u524d\u6587\u7684\u300c\u860b\u679c\u300d\u6216\u300c\u516c\u53f8\u300d\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/hyc.eshachem.com\/program\/wp-content\/uploads\/2026\/06\/cropped-cropped-\u672a\u547d\u540d\u8a2d\u8a08-4.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/llm-agent\\\/llm-agent-%e5%8e%9f%e7%90%86%e8%a7%a3%e6%9e%90\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/llm-agent\\\/#listItem\",\"name\":\"\\u3010RNN\\u5230Agent\\u3011\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/llm-agent\\\/#listItem\",\"position\":2,\"name\":\"\\u3010RNN\\u5230Agent\\u3011\",\"item\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/llm-agent\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/llm-agent\\\/llm-agent-%e5%8e%9f%e7%90%86%e8%a7%a3%e6%9e%90\\\/#listItem\",\"name\":\"5. LLM &amp; Agent &#8211; \\u539f\\u7406\\u89e3\\u6790\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/llm-agent\\\/llm-agent-%e5%8e%9f%e7%90%86%e8%a7%a3%e6%9e%90\\\/#listItem\",\"position\":3,\"name\":\"5. LLM &amp; Agent &#8211; \\u539f\\u7406\\u89e3\\u6790\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/llm-agent\\\/#listItem\",\"name\":\"\\u3010RNN\\u5230Agent\\u3011\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/#person\",\"name\":\"H.Y. Chen\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/llm-agent\\\/llm-agent-%e5%8e%9f%e7%90%86%e8%a7%a3%e6%9e%90\\\/#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fc6e05e080c9ea570267ee9ed68c8b1841d745cee07c0331c5440646e0646603?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"H.Y. Chen\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/llm-agent\\\/llm-agent-%e5%8e%9f%e7%90%86%e8%a7%a3%e6%9e%90\\\/#webpage\",\"url\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/llm-agent\\\/llm-agent-%e5%8e%9f%e7%90%86%e8%a7%a3%e6%9e%90\\\/\",\"name\":\"5. LLM & Agent \\u2013 \\u539f\\u7406\\u89e3\\u6790 - HyC Wiki\",\"description\":\"\\u5927\\u8a9e\\u8a00\\u6a21\\u578b\\uff08LLM\\uff09\\u5176\\u5be6\\u5c31\\u662f \\u8d85\\u5927\\u578b\\u300c\\u4e0b\\u4e00\\u500b\\u5b57\\u9810\\u6e2c\\u5668\\u300d\\u3002\\u4f60\\u7d66\\u5b83\\u4e00\\u6bb5\\u6587\\u5b57\\uff0c\\u5b83\\u6839\\u64da\\u8a13\\u7df4\\u904e\\u7684\\u7d71\\u8a08\\u898f\\u5f8b\\uff0c\\u4e00\\u500b token \\u4e00\\u500b token \\u63a5\\u4e0b\\u53bb\\u751f\\u6210\\uff0c\\u76f4\\u5230\\u89ba\\u5f97\\u8a72\\u7d50\\u675f\\u3002 \\u5b83\\u300c\\u4e0d\\u662f\\u300d\\u4ec0\\u9ebc Token \\u8207\\u4e0a\\u4e0b\\u6587\\u8996\\u7a97\\uff08Context Window\\uff09 \\u539f\\u7406 Token\\uff1a\\u6a21\\u578b\\u8b80\\u5beb\\u7684\\u6700\\u5c0f\\u55ae\\u4f4d\\uff08\\u53ef\\u80fd\\u662f\\u5b57\\u3001\\u5b57\\u7247\\u6bb5\\u6216\\u82f1\\u6587\\u5b50\\u8a5e\\uff09 \\u4e2d\\u6587\\u300c\\u4f60\\u597d\\u300d\\u53ef\\u80fd 2\\uff5e4 \\u500b token\\uff1b\\u82f1\\u6587 \\\"hello\\\" \\u5e38 1 \\u500b \\u4e0a\\u4e0b\\u6587\\u8996\\u7a97\\uff1a\\u4e00\\u6b21\\u80fd\\u300c\\u770b\\u898b\\u300d\\u7684 token \\u4e0a\\u9650\\uff08\\u5982 8K\\u300132K\\u3001128K\\uff09 flowchart LR SYS[\\\"System Prompt\\\"] --> CTX[\\\"\\u4e0a\\u4e0b\\u6587\\u8996\\u7a97\\u6709\\u9650\\u9577\\u5ea6\\\"] HIST[\\\"\\u5c0d\\u8a71\\u6b77\\u53f2\\\"] --> CTX RAG[\\\"RAG \\u6aa2\\u7d22\\u6bb5\\u843d\\\"] --> CTX USER[\\\"\\u4f7f\\u7528\\u8005\\u554f\\u984c\\\"] --> CTX CTX --> OUT[\\\"\\u6a21\\u578b\\u7e8c\\u5beb\\u8f38\\u51fa\\\"] \\u6a21\\u578b\\u8d8a\\u5927\\u3001context \\u8d8a\\u5927\\uff0c\\u672c\\u6a5f RAM\\\/VRAM \\u9700\\u6c42\\u8d8a\\u9ad8 Transformer \\u76f4\\u89ba Attention\\uff08\\u6ce8\\u610f\\u529b\\uff09 Transformer \\u554f\\u7684\\u662f\\uff1a\\u7576\\u524d\\u8981\\u9810\\u6e2c\\u4e0b\\u4e00\\u500b token \\u6642\\uff0c\\u61c9\\u8a72\\u300c\\u591a\\u770b\\u300d\\u8f38\\u5165\\u88e1\\u7684\\u54ea\\u4e9b\\u4f4d\\u7f6e\\uff1f \\u300c\\u5b83\\u300d\\u53ef\\u80fd\\u6307\\u5411\\u524d\\u6587\\u7684\\u300c\\u860b\\u679c\\u300d\\u6216\\u300c\\u516c\\u53f8\\u300d\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/llm-agent\\\/llm-agent-%e5%8e%9f%e7%90%86%e8%a7%a3%e6%9e%90\\\/#breadcrumblist\"},\"datePublished\":\"2026-06-15T03:00:35+00:00\",\"dateModified\":\"2026-07-13T08:41:44+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/#website\",\"url\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/\",\"name\":\"HyC Wiki\",\"description\":\"Technical articles\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/hyc.eshachem.com\\\/program\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"5. LLM & Agent \u2013 \u539f\u7406\u89e3\u6790 - HyC Wiki","description":"\u5927\u8a9e\u8a00\u6a21\u578b\uff08LLM\uff09\u5176\u5be6\u5c31\u662f \u8d85\u5927\u578b\u300c\u4e0b\u4e00\u500b\u5b57\u9810\u6e2c\u5668\u300d\u3002\u4f60\u7d66\u5b83\u4e00\u6bb5\u6587\u5b57\uff0c\u5b83\u6839\u64da\u8a13\u7df4\u904e\u7684\u7d71\u8a08\u898f\u5f8b\uff0c\u4e00\u500b token \u4e00\u500b token \u63a5\u4e0b\u53bb\u751f\u6210\uff0c\u76f4\u5230\u89ba\u5f97\u8a72\u7d50\u675f\u3002 \u5b83\u300c\u4e0d\u662f\u300d\u4ec0\u9ebc Token \u8207\u4e0a\u4e0b\u6587\u8996\u7a97\uff08Context Window\uff09 \u539f\u7406 Token\uff1a\u6a21\u578b\u8b80\u5beb\u7684\u6700\u5c0f\u55ae\u4f4d\uff08\u53ef\u80fd\u662f\u5b57\u3001\u5b57\u7247\u6bb5\u6216\u82f1\u6587\u5b50\u8a5e\uff09 \u4e2d\u6587\u300c\u4f60\u597d\u300d\u53ef\u80fd 2\uff5e4 \u500b token\uff1b\u82f1\u6587 \"hello\" \u5e38 1 \u500b \u4e0a\u4e0b\u6587\u8996\u7a97\uff1a\u4e00\u6b21\u80fd\u300c\u770b\u898b\u300d\u7684 token \u4e0a\u9650\uff08\u5982 8K\u300132K\u3001128K\uff09 flowchart LR SYS[\"System Prompt\"] --> CTX[\"\u4e0a\u4e0b\u6587\u8996\u7a97\u6709\u9650\u9577\u5ea6\"] HIST[\"\u5c0d\u8a71\u6b77\u53f2\"] --> CTX RAG[\"RAG \u6aa2\u7d22\u6bb5\u843d\"] --> CTX USER[\"\u4f7f\u7528\u8005\u554f\u984c\"] --> CTX CTX --> OUT[\"\u6a21\u578b\u7e8c\u5beb\u8f38\u51fa\"] \u6a21\u578b\u8d8a\u5927\u3001context \u8d8a\u5927\uff0c\u672c\u6a5f RAM\/VRAM \u9700\u6c42\u8d8a\u9ad8 Transformer \u76f4\u89ba Attention\uff08\u6ce8\u610f\u529b\uff09 Transformer \u554f\u7684\u662f\uff1a\u7576\u524d\u8981\u9810\u6e2c\u4e0b\u4e00\u500b token \u6642\uff0c\u61c9\u8a72\u300c\u591a\u770b\u300d\u8f38\u5165\u88e1\u7684\u54ea\u4e9b\u4f4d\u7f6e\uff1f \u300c\u5b83\u300d\u53ef\u80fd\u6307\u5411\u524d\u6587\u7684\u300c\u860b\u679c\u300d\u6216\u300c\u516c\u53f8\u300d","canonical_url":"https:\/\/hyc.eshachem.com\/program\/llm-agent\/llm-agent-%e5%8e%9f%e7%90%86%e8%a7%a3%e6%9e%90\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"google-site-verification":"-324YR5tomynX5FeTW2lTMHIX0KmPBvpxjXpOhXwi1Q","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/hyc.eshachem.com\/program\/llm-agent\/llm-agent-%e5%8e%9f%e7%90%86%e8%a7%a3%e6%9e%90\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/hyc.eshachem.com\/program#listItem","position":1,"name":"Home","item":"https:\/\/hyc.eshachem.com\/program","nextItem":{"@type":"ListItem","@id":"https:\/\/hyc.eshachem.com\/program\/llm-agent\/#listItem","name":"\u3010RNN\u5230Agent\u3011"}},{"@type":"ListItem","@id":"https:\/\/hyc.eshachem.com\/program\/llm-agent\/#listItem","position":2,"name":"\u3010RNN\u5230Agent\u3011","item":"https:\/\/hyc.eshachem.com\/program\/llm-agent\/","nextItem":{"@type":"ListItem","@id":"https:\/\/hyc.eshachem.com\/program\/llm-agent\/llm-agent-%e5%8e%9f%e7%90%86%e8%a7%a3%e6%9e%90\/#listItem","name":"5. LLM &amp; Agent &#8211; \u539f\u7406\u89e3\u6790"},"previousItem":{"@type":"ListItem","@id":"https:\/\/hyc.eshachem.com\/program#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/hyc.eshachem.com\/program\/llm-agent\/llm-agent-%e5%8e%9f%e7%90%86%e8%a7%a3%e6%9e%90\/#listItem","position":3,"name":"5. LLM &amp; Agent &#8211; \u539f\u7406\u89e3\u6790","previousItem":{"@type":"ListItem","@id":"https:\/\/hyc.eshachem.com\/program\/llm-agent\/#listItem","name":"\u3010RNN\u5230Agent\u3011"}}]},{"@type":"Person","@id":"https:\/\/hyc.eshachem.com\/program\/#person","name":"H.Y. Chen","image":{"@type":"ImageObject","@id":"https:\/\/hyc.eshachem.com\/program\/llm-agent\/llm-agent-%e5%8e%9f%e7%90%86%e8%a7%a3%e6%9e%90\/#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/fc6e05e080c9ea570267ee9ed68c8b1841d745cee07c0331c5440646e0646603?s=96&d=mm&r=g","width":96,"height":96,"caption":"H.Y. Chen"}},{"@type":"WebPage","@id":"https:\/\/hyc.eshachem.com\/program\/llm-agent\/llm-agent-%e5%8e%9f%e7%90%86%e8%a7%a3%e6%9e%90\/#webpage","url":"https:\/\/hyc.eshachem.com\/program\/llm-agent\/llm-agent-%e5%8e%9f%e7%90%86%e8%a7%a3%e6%9e%90\/","name":"5. LLM & Agent \u2013 \u539f\u7406\u89e3\u6790 - HyC Wiki","description":"\u5927\u8a9e\u8a00\u6a21\u578b\uff08LLM\uff09\u5176\u5be6\u5c31\u662f \u8d85\u5927\u578b\u300c\u4e0b\u4e00\u500b\u5b57\u9810\u6e2c\u5668\u300d\u3002\u4f60\u7d66\u5b83\u4e00\u6bb5\u6587\u5b57\uff0c\u5b83\u6839\u64da\u8a13\u7df4\u904e\u7684\u7d71\u8a08\u898f\u5f8b\uff0c\u4e00\u500b token \u4e00\u500b token \u63a5\u4e0b\u53bb\u751f\u6210\uff0c\u76f4\u5230\u89ba\u5f97\u8a72\u7d50\u675f\u3002 \u5b83\u300c\u4e0d\u662f\u300d\u4ec0\u9ebc Token \u8207\u4e0a\u4e0b\u6587\u8996\u7a97\uff08Context Window\uff09 \u539f\u7406 Token\uff1a\u6a21\u578b\u8b80\u5beb\u7684\u6700\u5c0f\u55ae\u4f4d\uff08\u53ef\u80fd\u662f\u5b57\u3001\u5b57\u7247\u6bb5\u6216\u82f1\u6587\u5b50\u8a5e\uff09 \u4e2d\u6587\u300c\u4f60\u597d\u300d\u53ef\u80fd 2\uff5e4 \u500b token\uff1b\u82f1\u6587 \"hello\" \u5e38 1 \u500b \u4e0a\u4e0b\u6587\u8996\u7a97\uff1a\u4e00\u6b21\u80fd\u300c\u770b\u898b\u300d\u7684 token \u4e0a\u9650\uff08\u5982 8K\u300132K\u3001128K\uff09 flowchart LR SYS[\"System Prompt\"] --> CTX[\"\u4e0a\u4e0b\u6587\u8996\u7a97\u6709\u9650\u9577\u5ea6\"] HIST[\"\u5c0d\u8a71\u6b77\u53f2\"] --> CTX RAG[\"RAG \u6aa2\u7d22\u6bb5\u843d\"] --> CTX USER[\"\u4f7f\u7528\u8005\u554f\u984c\"] --> CTX CTX --> OUT[\"\u6a21\u578b\u7e8c\u5beb\u8f38\u51fa\"] \u6a21\u578b\u8d8a\u5927\u3001context \u8d8a\u5927\uff0c\u672c\u6a5f RAM\/VRAM \u9700\u6c42\u8d8a\u9ad8 Transformer \u76f4\u89ba Attention\uff08\u6ce8\u610f\u529b\uff09 Transformer \u554f\u7684\u662f\uff1a\u7576\u524d\u8981\u9810\u6e2c\u4e0b\u4e00\u500b token \u6642\uff0c\u61c9\u8a72\u300c\u591a\u770b\u300d\u8f38\u5165\u88e1\u7684\u54ea\u4e9b\u4f4d\u7f6e\uff1f \u300c\u5b83\u300d\u53ef\u80fd\u6307\u5411\u524d\u6587\u7684\u300c\u860b\u679c\u300d\u6216\u300c\u516c\u53f8\u300d","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/hyc.eshachem.com\/program\/#website"},"breadcrumb":{"@id":"https:\/\/hyc.eshachem.com\/program\/llm-agent\/llm-agent-%e5%8e%9f%e7%90%86%e8%a7%a3%e6%9e%90\/#breadcrumblist"},"datePublished":"2026-06-15T03:00:35+00:00","dateModified":"2026-07-13T08:41:44+00:00"},{"@type":"WebSite","@id":"https:\/\/hyc.eshachem.com\/program\/#website","url":"https:\/\/hyc.eshachem.com\/program\/","name":"HyC Wiki","description":"Technical articles","inLanguage":"en-US","publisher":{"@id":"https:\/\/hyc.eshachem.com\/program\/#person"}}]},"og:locale":"en_US","og:site_name":"HyC Wiki - Technical articles","og:type":"article","og:title":"5. LLM &amp; Agent \u2013 \u539f\u7406\u89e3\u6790 - HyC Wiki","og:description":"\u5927\u8a9e\u8a00\u6a21\u578b\uff08LLM\uff09\u5176\u5be6\u5c31\u662f \u8d85\u5927\u578b\u300c\u4e0b\u4e00\u500b\u5b57\u9810\u6e2c\u5668\u300d\u3002\u4f60\u7d66\u5b83\u4e00\u6bb5\u6587\u5b57\uff0c\u5b83\u6839\u64da\u8a13\u7df4\u904e\u7684\u7d71\u8a08\u898f\u5f8b\uff0c\u4e00\u500b token \u4e00\u500b token \u63a5\u4e0b\u53bb\u751f\u6210\uff0c\u76f4\u5230\u89ba\u5f97\u8a72\u7d50\u675f\u3002 \u5b83\u300c\u4e0d\u662f\u300d\u4ec0\u9ebc Token \u8207\u4e0a\u4e0b\u6587\u8996\u7a97\uff08Context Window\uff09 \u539f\u7406 Token\uff1a\u6a21\u578b\u8b80\u5beb\u7684\u6700\u5c0f\u55ae\u4f4d\uff08\u53ef\u80fd\u662f\u5b57\u3001\u5b57\u7247\u6bb5\u6216\u82f1\u6587\u5b50\u8a5e\uff09 \u4e2d\u6587\u300c\u4f60\u597d\u300d\u53ef\u80fd 2\uff5e4 \u500b token\uff1b\u82f1\u6587 &quot;hello&quot; \u5e38 1 \u500b \u4e0a\u4e0b\u6587\u8996\u7a97\uff1a\u4e00\u6b21\u80fd\u300c\u770b\u898b\u300d\u7684 token \u4e0a\u9650\uff08\u5982 8K\u300132K\u3001128K\uff09 flowchart LR SYS[&quot;System Prompt&quot;] --&gt; CTX[&quot;\u4e0a\u4e0b\u6587\u8996\u7a97\u6709\u9650\u9577\u5ea6&quot;] HIST[&quot;\u5c0d\u8a71\u6b77\u53f2&quot;] --&gt; CTX RAG[&quot;RAG \u6aa2\u7d22\u6bb5\u843d&quot;] --&gt; CTX USER[&quot;\u4f7f\u7528\u8005\u554f\u984c&quot;] --&gt; CTX CTX --&gt; OUT[&quot;\u6a21\u578b\u7e8c\u5beb\u8f38\u51fa&quot;] \u6a21\u578b\u8d8a\u5927\u3001context \u8d8a\u5927\uff0c\u672c\u6a5f RAM\/VRAM \u9700\u6c42\u8d8a\u9ad8 Transformer \u76f4\u89ba Attention\uff08\u6ce8\u610f\u529b\uff09 Transformer \u554f\u7684\u662f\uff1a\u7576\u524d\u8981\u9810\u6e2c\u4e0b\u4e00\u500b token \u6642\uff0c\u61c9\u8a72\u300c\u591a\u770b\u300d\u8f38\u5165\u88e1\u7684\u54ea\u4e9b\u4f4d\u7f6e\uff1f \u300c\u5b83\u300d\u53ef\u80fd\u6307\u5411\u524d\u6587\u7684\u300c\u860b\u679c\u300d\u6216\u300c\u516c\u53f8\u300d","og:url":"https:\/\/hyc.eshachem.com\/program\/llm-agent\/llm-agent-%e5%8e%9f%e7%90%86%e8%a7%a3%e6%9e%90\/","og:image":"https:\/\/hyc.eshachem.com\/program\/wp-content\/uploads\/2026\/06\/cropped-cropped-\u672a\u547d\u540d\u8a2d\u8a08-4.png","og:image:secure_url":"https:\/\/hyc.eshachem.com\/program\/wp-content\/uploads\/2026\/06\/cropped-cropped-\u672a\u547d\u540d\u8a2d\u8a08-4.png","og:image:width":64,"og:image:height":64,"article:published_time":"2026-06-15T03:00:35+00:00","article:modified_time":"2026-07-13T08:41:44+00:00","twitter:card":"summary_large_image","twitter:title":"5. LLM &amp; Agent \u2013 \u539f\u7406\u89e3\u6790 - HyC Wiki","twitter:description":"\u5927\u8a9e\u8a00\u6a21\u578b\uff08LLM\uff09\u5176\u5be6\u5c31\u662f \u8d85\u5927\u578b\u300c\u4e0b\u4e00\u500b\u5b57\u9810\u6e2c\u5668\u300d\u3002\u4f60\u7d66\u5b83\u4e00\u6bb5\u6587\u5b57\uff0c\u5b83\u6839\u64da\u8a13\u7df4\u904e\u7684\u7d71\u8a08\u898f\u5f8b\uff0c\u4e00\u500b token \u4e00\u500b token \u63a5\u4e0b\u53bb\u751f\u6210\uff0c\u76f4\u5230\u89ba\u5f97\u8a72\u7d50\u675f\u3002 \u5b83\u300c\u4e0d\u662f\u300d\u4ec0\u9ebc Token \u8207\u4e0a\u4e0b\u6587\u8996\u7a97\uff08Context Window\uff09 \u539f\u7406 Token\uff1a\u6a21\u578b\u8b80\u5beb\u7684\u6700\u5c0f\u55ae\u4f4d\uff08\u53ef\u80fd\u662f\u5b57\u3001\u5b57\u7247\u6bb5\u6216\u82f1\u6587\u5b50\u8a5e\uff09 \u4e2d\u6587\u300c\u4f60\u597d\u300d\u53ef\u80fd 2\uff5e4 \u500b token\uff1b\u82f1\u6587 &quot;hello&quot; \u5e38 1 \u500b \u4e0a\u4e0b\u6587\u8996\u7a97\uff1a\u4e00\u6b21\u80fd\u300c\u770b\u898b\u300d\u7684 token \u4e0a\u9650\uff08\u5982 8K\u300132K\u3001128K\uff09 flowchart LR SYS[&quot;System Prompt&quot;] --&gt; CTX[&quot;\u4e0a\u4e0b\u6587\u8996\u7a97\u6709\u9650\u9577\u5ea6&quot;] HIST[&quot;\u5c0d\u8a71\u6b77\u53f2&quot;] --&gt; CTX RAG[&quot;RAG \u6aa2\u7d22\u6bb5\u843d&quot;] --&gt; CTX USER[&quot;\u4f7f\u7528\u8005\u554f\u984c&quot;] --&gt; CTX CTX --&gt; OUT[&quot;\u6a21\u578b\u7e8c\u5beb\u8f38\u51fa&quot;] \u6a21\u578b\u8d8a\u5927\u3001context \u8d8a\u5927\uff0c\u672c\u6a5f RAM\/VRAM \u9700\u6c42\u8d8a\u9ad8 Transformer \u76f4\u89ba Attention\uff08\u6ce8\u610f\u529b\uff09 Transformer \u554f\u7684\u662f\uff1a\u7576\u524d\u8981\u9810\u6e2c\u4e0b\u4e00\u500b token \u6642\uff0c\u61c9\u8a72\u300c\u591a\u770b\u300d\u8f38\u5165\u88e1\u7684\u54ea\u4e9b\u4f4d\u7f6e\uff1f \u300c\u5b83\u300d\u53ef\u80fd\u6307\u5411\u524d\u6587\u7684\u300c\u860b\u679c\u300d\u6216\u300c\u516c\u53f8\u300d","twitter:image":"https:\/\/hyc.eshachem.com\/program\/wp-content\/uploads\/2026\/06\/cropped-cropped-\u672a\u547d\u540d\u8a2d\u8a08-4.png"},"aioseo_meta_data":{"post_id":"563","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_image_url":null,"twitter_title":null,"twitter_description":null,"schema_type":"default","schema_type_options":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null,"created":"2026-07-28 14:25:28","updated":"2026-07-28 14:25:28"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/hyc.eshachem.com\/program\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/hyc.eshachem.com\/program\/llm-agent\/\" title=\"\u3010RNN\u5230Agent\u3011\">\u3010RNN\u5230Agent\u3011<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t5. LLM &amp; Agent \u2013 \u539f\u7406\u89e3\u6790\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/hyc.eshachem.com\/program"},{"label":"\u3010RNN\u5230Agent\u3011","link":"https:\/\/hyc.eshachem.com\/program\/llm-agent\/"},{"label":"5. LLM &amp; Agent &#8211; \u539f\u7406\u89e3\u6790","link":"https:\/\/hyc.eshachem.com\/program\/llm-agent\/llm-agent-%e5%8e%9f%e7%90%86%e8%a7%a3%e6%9e%90\/"}],"_links":{"self":[{"href":"https:\/\/hyc.eshachem.com\/program\/wp-json\/wp\/v2\/pages\/563","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hyc.eshachem.com\/program\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/hyc.eshachem.com\/program\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/hyc.eshachem.com\/program\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hyc.eshachem.com\/program\/wp-json\/wp\/v2\/comments?post=563"}],"version-history":[{"count":8,"href":"https:\/\/hyc.eshachem.com\/program\/wp-json\/wp\/v2\/pages\/563\/revisions"}],"predecessor-version":[{"id":1039,"href":"https:\/\/hyc.eshachem.com\/program\/wp-json\/wp\/v2\/pages\/563\/revisions\/1039"}],"up":[{"embeddable":true,"href":"https:\/\/hyc.eshachem.com\/program\/wp-json\/wp\/v2\/pages\/520"}],"wp:attachment":[{"href":"https:\/\/hyc.eshachem.com\/program\/wp-json\/wp\/v2\/media?parent=563"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}