id: c6413c03193744ae81078b0f99a34ec4
parent_id: 
item_type: 1
item_id: 9aabf76a3a0147de8fa38a6713d3c0b2
item_updated_time: 1764345633323
title_diff: "[{\"diffs\":[[1,\"RAG不好用？试试MCP这个“知识库优化大师”\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":23}]"
body_diff: "[{\"diffs\":[[1,\"<html>\\\r\\\n<head>\\\r\\\n  <title>RAG不好用？试试MCP这个“知识库优化大师”</title>\\\r\\\n  <basefont face=\\\"微软雅黑\\\" size=\\\"2\\\" />\\\r\\\n  <meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html;charset=utf-8\\\" />\\\r\\\n  <meta name=\\\"exporter-version\\\" content=\\\"YXBJ Windows/608924 (zh-CN, DDL); Windows/10.0.0 (Win64); EDAMVersion=V2;\\\"/>\\\r\\\n  <meta name=\\\"content-class\\\" content=\\\"yinxiang.peso.superNote\\\"/>\\\r\\\n  <meta name=\\\"application-data:yinxiang.noteLayout\\\" content=\\\"{\\\"lineSpace\\\":\\\"recommend\\\",\\\"paragraphSpace\\\":\\\"recommend\\\"}\\\"/>\\\r\\\n  <style>\\\r\\\n\\tbody, td {\\\r\\\n\\t  font-family: 微软雅黑;\\\r\\\n\\t  font-size: 12pt;\\\r\\\n\\t}\\\r\\\n  </style>\\\r\\\n</head>\\\r\\\n<body>\\\r\\\n<a name=\\\"42814\\\"></a>\\\r\\\n<h1>RAG不好用？试试MCP这个“知识库优化大师”</h1>\\\r\\\n\\\r\\\n<div><span style=\\\"margin:0px;\\\"><div style=\\\"padding:8px 0px;margin:8px auto;max-width:700px;\\\"> <div><span></span></div>\\\n<p></p>\\\n<div style=\\\"--en-blockquote:true;box-sizing: border-box; padding-left: 19px; padding-top: 6px; padding-bottom: 6px; border-left: 3px solid #b4c0cc; background-position: initial initial; background-repeat: initial initial; margin-top: 6px\\\"><div>原文链接: <a href=\\\"http://mp.weixin.qq.com/s?__biz=MzkzODUxMTY1Mg==&amp;mid=2247488684&amp;idx=1&amp;sn=de7b7e44cad5efde8713a39e33e45b69&amp;chksm=c3d6ff493fa2475041d9e5c9e1735b254d72f91b266c0078440a1b0970a70a29bcf6d1faf97a&amp;mpshare=1&amp;scene=1&amp;srcid=05245LmdRMqNGK1qQwub5EIc&amp;sharer_shareinfo=ca5935fb714f2c817d844cf96bd91e3a&amp;sharer_shareinfo_first=ca5935fb714f2c817d844cf96bd91e3a#rd\\\"><span>http://mp.weixin.qq.com/s?__biz=MzkzODUxMTY1Mg==&amp;mid=2247488...</span></a></div></div>\\\n<p></p>\\\n<div><span></span></div>\\\n<div style=\\\"\\\"><div><div><h1 style=\\\"margin:0\\\"> RAG不好用？试试MCP这个“知识库优化大师” </h1><div><span style=\\\"position:relative\\\">原创</span><span> FLY AI CLOUD </span><span><a style=\\\"position:relative\\\"> 萤火AI百宝箱 </a></span><span><em></em></span></div><div style=\\\";\\\"><p style=\\\"margin:0;margin-bottom:0;text-wrap:wrap;outline:0;letter-spacing:0.544px;color:rgb(0,0,0);font-family:Optima-Regular,Optima,PingFangSC-light,PingFangTC-light,&quot;PingFang SC&quot;,Cambria,Cochin,Georgia,Times,&quot;Times New Roman&quot;,serif;font-size:16px;background-color:rgb(255,255,255);text-align:center;__visibility:visible\\\"><span><img src=\\\":/fa292aed685a40368644391fc428f05e\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;color: rgba(0, 0, 0, 0.9);font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, \\\"Helvetica Neue\\\", \\\"PingFang SC\\\", \\\"Hiragino Sans GB\\\", \\\"Microsoft YaHei UI\\\", \\\"Microsoft YaHei\\\", Arial, sans-serif;font-size: var(--articleFontsize);letter-spacing: 0.034em;height: auto !important;\\\"/></span></p><p style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);margin:0;color:rgb(10,10,10);font-family:ui-sans-serif,system-ui,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;,&quot;Noto Color Emoji&quot;;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-align:start;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;white-space:normal;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial;font-size:0;line-height:0\\\"><span> </span></p><div style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(10, 10, 10);font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;white-space: normal;background-color: rgb(255, 255, 255);text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;\\\"><p style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span>在企业数字化转型浪潮中，如何有效管理和利用内部知识资产已成为关键挑战。随着大型语言模型(LLM)技术的成熟，检索增强生成(RAG)应用正逐渐成为连接企业知识与AI能力的重要桥梁。然而，传统RAG实现常面临检索质量不佳、实时更新困难等痛点问题。</span></p><p style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);margin:1.5em 8px;text-align:justify;line-height:1.75;font-size:15px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span>本文将通过实战案例，详细介绍如何</span><strong style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-weight: bold;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;color: rgb(0, 152, 116);\\\"><span>基于模型上下文协议(MCP)构建一套高性能企业RAG系统，帮助企业快速打造智能知识库应用。</span></strong></p><h2 style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);font-size:18px;font-weight:bold;margin:4em auto 2em;text-align:center;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;display:table;padding:0 0.2em;color:rgb(255,255,255);background:rgb(0,152,116)\\\"><span>MCP与传统RAG对比优势</span></h2><h3 style=\\\"box-sizing:border-box;border-width:0 0 0 3px;border-style:solid;border-color:rgb(229,229,229) rgb(229,229,229) rgb(229,229,229) rgb(0,152,116);font-size:16.5px;font-weight:bold;margin:2em 8px 0.75em 0;text-align:left;line-height:1.2;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;padding-left:8px;color:rgb(63,63,63)\\\"><span>传统RAG方案的局限</span></h3><p style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><strong style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-weight: bold;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;color: rgb(0, 152, 116);\\\"><span>传统RAG实现通常采用简单的&quot;Embedding+检索+LLM生成&quot;架构</span></strong><span>，存在以下限制：</span></p><ol style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);list-style:none;margin:0;padding:0 0 0 1em;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;color:rgb(63,63,63)\\\"><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>1. </span><strong style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-weight: bold;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;color: rgb(0, 152, 116);\\\"><span>紧耦合架构</span></strong><span>：检索逻辑与LLM调用紧密耦合，难以独立优化</span></div></li><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>2. </span><strong style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-weight: bold;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;color: rgb(0, 152, 116);\\\"><span>单一检索策略</span></strong><span>：通常只采用向量检索，缺乏多种检索方式结合</span></div></li><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>3. </span><strong style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-weight: bold;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;color: rgb(0, 152, 116);\\\"><span>缺乏标准化接口</span></strong><span>：各实现间接口差异大，难以实现功能复用</span></div></li><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>4. </span><strong style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-weight: bold;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;color: rgb(0, 152, 116);\\\"><span>维护成本高</span></strong><span>：系统升级需要修改大量底层代码</span></div></li></ol><h3 style=\\\"box-sizing:border-box;border-width:0 0 0 3px;border-style:solid;border-color:rgb(229,229,229) rgb(229,229,229) rgb(229,229,229) rgb(0,152,116);font-size:16.5px;font-weight:bold;margin:2em 8px 0.75em 0;text-align:left;line-height:1.2;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;padding-left:8px;color:rgb(63,63,63)\\\"><span>MCP解决方案的优势</span></h3><p style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><strong style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-weight: bold;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;color: rgb(0, 152, 116);\\\"><span>基于MCP的RAG系统通过标准化协议，将知识检索服务解耦为独立模块</span></strong><span>，带来以下优势：</span></p><ol style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);list-style:none;margin:0;padding:0 0 0 1em;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;color:rgb(63,63,63)\\\"><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>1. </span><strong style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-weight: bold;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;color: rgb(0, 152, 116);\\\"><span>标准化工具调用</span></strong><span>：MCP提供统一接口规范，降低集成成本</span></div></li><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>2. </span><strong style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-weight: bold;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;color: rgb(0, 152, 116);\\\"><span>解耦设计</span></strong><span>：将模型调用与业务逻辑分离，便于独立升级和维护</span></div></li><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>3. </span><strong style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-weight: bold;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;color: rgb(0, 152, 116);\\\"><span>灵活扩展</span></strong><span>：轻松添加新数据源和功能模块，如混合检索、多模态内容等</span></div></li><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>4. </span><strong style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-weight: bold;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;color: rgb(0, 152, 116);\\\"><span>工程实践友好</span></strong><span>：符合软件工程最佳实践，便于团队协作开发</span></div></li><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div style=\\\"text-align: center;\\\"><img src=\\\":/f2576b7d47824969b59e809a8e5f0fa6\\\" type=\\\"image/gif\\\" data-filename=\\\"640.gif\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;height: auto !important;\\\"/></div><div><span><br/></span></div></li><li style=\\\"box-sizing:border-box;border-width:0px;border-style:solid;border-color:rgb(229, 229, 229);text-align:left;line-height:1.75;font-family:-apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size:12px;text-indent:-1em;display:block;margin:0.2em 8px;color:rgb(63, 63, 63);\\\"><div style=\\\"text-align: center;\\\"><span><span style=\\\"font-size: 12px;\\\">                              图片源自 dailydoseofds</span></span></div></li></ol><h2 style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);font-size:18px;font-weight:bold;margin:4em auto 2em;text-align:center;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;display:table;padding:0 0.2em;color:rgb(255,255,255);background:rgb(0,152,116)\\\"><span>项目背景与需求</span></h2><p style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span>现代企业面临的知识管理挑战主要表现在以下几个方面：</span></p><ul style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);list-style:circle;margin:0;padding:0 0 0 1em;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;color:rgb(63,63,63)\\\"><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>• </span><strong style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-weight: bold;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;color: rgb(0, 152, 116);\\\"><span>知识分散</span></strong><span>：企业文档分布在多个系统中，缺乏统一检索入口</span></div></li><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>• </span><strong style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-weight: bold;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;color: rgb(0, 152, 116);\\\"><span>检索效率低</span></strong><span>：传统关键词检索无法理解语义，难以准确找到所需信息</span></div></li><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>• </span><strong style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-weight: bold;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;color: rgb(0, 152, 116);\\\"><span>知识更新慢</span></strong><span>：知识库更新依赖人工整理，无法及时反映最新情况</span></div></li><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>• </span><strong style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-weight: bold;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;color: rgb(0, 152, 116);\\\"><span>使用门槛高</span></strong><span>：专业术语和复杂查询语法提高了普通员工使用难度</span></div></li></ul><p style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span>针对这些问题，我们需要设计一个系统满足以下核心需求：</span></p><ol style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);list-style:none;margin:0;padding:0 0 0 1em;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;color:rgb(63,63,63)\\\"><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>1. </span><strong style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-weight: bold;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;color: rgb(0, 152, 116);\\\"><span>智能检索</span></strong><span>：支持自然语言提问，理解问题意图和上下文</span></div></li><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>2. </span><strong style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-weight: bold;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;color: rgb(0, 152, 116);\\\"><span>知识自动化处理</span></strong><span>：实现文档智能拆分、FAQ自动提取</span></div></li><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>3. </span><strong style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-weight: bold;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;color: rgb(0, 152, 116);\\\"><span>灵活扩展</span></strong><span>：支持多种数据源和模型集成</span></div></li><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>4. </span><strong style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-weight: bold;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;color: rgb(0, 152, 116);\\\"><span>易于部署与维护</span></strong><span>：架构简洁，便于技术团队掌握和迭代</span></div></li></ol><h2 style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);font-size:18px;font-weight:bold;margin:4em auto 2em;text-align:center;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;display:table;padding:0 0.2em;color:rgb(255,255,255);background:rgb(0,152,116)\\\"><span>项目目标</span></h2><p style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span>本项目旨在</span><strong style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-weight: bold;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;color: rgb(0, 152, 116);\\\"><span>构建一个基于MCP的企业RAG系统</span></strong><span>，实现以下具体目标：</span></p><ol style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);list-style:none;margin:0;padding:0 0 0 1em;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;color:rgb(63,63,63)\\\"><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>1. </span><strong style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-weight: bold;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;color: rgb(0, 152, 116);\\\"><span>技术目标</span></strong></div></li><ul style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);list-style:circle;margin:0;padding:0 0 0 1em;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;color:rgb(63,63,63)\\\"><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>• 构建支持MCP协议的知识库服务和客户端</span></div></li><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>• 实现文档智能切分、FAQ自动提取功能</span></div></li><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>• 支持复杂问题的拆解和混合检索策略</span></div></li></ul><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>2. </span><strong style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-weight: bold;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;color: rgb(0, 152, 116);\\\"><span>应用目标</span></strong></div></li><ul style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);list-style:circle;margin:0;padding:0 0 0 1em;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;color:rgb(63,63,63)\\\"><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>• 提供统一的知识库管理和检索入口</span></div></li><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>• 显著提升企业内部知识检索准确率(目标90%以上)</span></div></li><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>• 减少70%知识库维护工作量</span></div></li><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>• 支持企业各类文档的智能处理和检索</span></div></li></ul></ol><h2 style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);font-size:18px;font-weight:bold;margin:4em auto 2em;text-align:center;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;display:table;padding:0 0.2em;color:rgb(255,255,255);background:rgb(0,152,116)\\\"><span>项目系统设计与实现</span></h2><blockquote style=\\\"box-sizing: border-box;border-width: 0px 0px 0px 4px;border-style: solid;border-color: rgb(229, 229, 229) rgb(229, 229, 229) rgb(229, 229, 229) rgb(0, 152, 116);margin: 0px;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;font-style: normal;padding: 1em;border-radius: 6px;color: rgba(0, 0, 0, 0.5);background: rgb(247, 247, 247);\\\"><p style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);margin:0;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:1em;display:block;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span>本项目系统设计参考自</span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;color: rgb(87, 107, 149);\\\"><span>alibabacloud-tablestore-mcp-server</span><sup style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-size: 11.25px;line-height: 0;vertical-align: baseline;top: -0.5em;\\\"><span>[1]</span></sup></span><span>，由于</span><code style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-feature-settings: normal;font-variation-settings: normal;font-size: 13.5px;text-align: left;line-height: 1.75;color: rgb(221, 17, 68);background: rgba(27, 31, 35, 0.05);padding: 3px 5px;border-radius: 4px;\\\"><span>alibabacloud-tablestore-mcp-server</span></code><span>项目使用Tablestore存储和Java实现的MCP Server，不方便于后期扩展和迭代。</span></p><p style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);margin:0;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:1em;display:block;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span>本项目改造为Milvus存储和Python实现MCP Server和MCP Client，代码全部重写（cursor帮忙不少）。</span></p><p style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);margin:0;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:1em;display:block;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span>以下设计和流程皆为</span><code style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-feature-settings: normal;font-variation-settings: normal;font-size: 13.5px;text-align: left;line-height: 1.75;color: rgb(221, 17, 68);background: rgba(27, 31, 35, 0.05);padding: 3px 5px;border-radius: 4px;\\\"><span>alibabacloud-tablestore-mcp-server</span></code><span>内容，在此感谢@xjtushilei 开源的</span><code style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-feature-settings: normal;font-variation-settings: normal;font-size: 13.5px;text-align: left;line-height: 1.75;color: rgb(221, 17, 68);background: rgba(27, 31, 35, 0.05);padding: 3px 5px;border-radius: 4px;\\\"><span>alibabacloud-tablestore-mcp-server</span></code><span>。</span></p></blockquote><p style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span>我们构建的基于MCP的RAG系统主要包含三个核心部分：</span></p><ol style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);list-style:none;margin:0;padding:0 0 0 1em;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;color:rgb(63,63,63)\\\"><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>1. </span><strong style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-weight: bold;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;color: rgb(0, 152, 116);\\\"><span>知识库服务(MCP Server)</span></strong><span>：基于Milvus向量数据库实现的后端服务，负责文档存储和检索</span></div></li><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>2. </span><strong style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-weight: bold;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;color: rgb(0, 152, 116);\\\"><span>客户端工具(MCP Client)</span></strong><span>：与MCP Server通信的客户端，实现知识库的构建和检索功能</span></div></li><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>3. </span><strong style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-weight: bold;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;color: rgb(0, 152, 116);\\\"><span>大模型集成</span></strong><span>：通过LLM实现文档切分、FAQ提取、问题拆解和回答生成等核心功能</span></div></li></ol><div style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);margin: 1.5em 8px;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;color: rgb(63, 63, 63);\\\"><span><img src=\\\":/880cda380ca749b2ae357c347664addf\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" alt=\\\"流程图\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);display: block;vertical-align: middle;max-width: 100%;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, \\\"Helvetica Neue\\\", \\\"PingFang SC\\\", \\\"Hiragino Sans GB\\\", \\\"Microsoft YaHei UI\\\", \\\"Microsoft YaHei\\\", Arial, sans-serif;font-size: 15px;margin: 0.1em auto 0.5em;border-radius: 4px;height: auto !important;\\\" title=\\\"null\\\"/></span><div style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: center;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 0.8em;color: rgb(136, 136, 136);\\\"><span>流程图</span></div></div><p style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span>主要分为两部分：知识库构建和检索。</span></p><ol style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);list-style:none;margin:0;padding:0 0 0 1em;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;color:rgb(63,63,63)\\\"><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>1. </span><strong style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-weight: bold;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;color: rgb(0, 152, 116);\\\"><span>知识库构建</span></strong></div></li><ol style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);list-style:none;margin:0;padding:0 0 0 1em;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;color:rgb(63,63,63)\\\"><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>1. </span><strong style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-weight: bold;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;color: rgb(0, 152, 116);\\\"><span>文本切段：</span></strong><span> 对文本进行切段，切段后的内容需要保证文本完整性以及语义完整性。</span></div></li><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>2. </span><strong style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-weight: bold;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;color: rgb(0, 152, 116);\\\"><span>提取 FAQ：</span></strong><span> 根据文本内容提取 FAQ，作为知识库检索的一个补充，以提升检索效果。</span></div></li><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>3. </span><strong style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-weight: bold;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;color: rgb(0, 152, 116);\\\"><span>导入知识库：</span></strong><span> 将文本和 FAQ 导入知识库，并进行 Embedding 后导入向量。</span></div></li></ol><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>2. </span><strong style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-weight: bold;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;color: rgb(0, 152, 116);\\\"><span>知识检索（RAG）</span></strong></div></li><ol style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);list-style:none;margin:0;padding:0 0 0 1em;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;color:rgb(63,63,63)\\\"><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>1. </span><strong style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-weight: bold;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;color: rgb(0, 152, 116);\\\"><span>问题拆解：</span></strong><span> 对输入问题进行拆解和重写，拆解为更原子的子问题。</span></div></li><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>2. </span><strong style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-weight: bold;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;color: rgb(0, 152, 116);\\\"><span>检索：</span></strong><span> 针对每个子问题分别检索相关文本和 FAQ，针对文本采取向量检索，针对 FAQ 采取全文和向量混合检索。</span></div></li><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>3. </span><strong style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-weight: bold;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;color: rgb(0, 152, 116);\\\"><span>知识库内容筛选：</span></strong><span> 针对检索出来的内容进行筛选，保留与问题最相关的内容进行参考回答。</span></div></li></ol></ol><p style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span>相比传统的 Naive RAG，在知识库构建和检索分别做了一些常见的优化，包括 Chunk 切分优化、提取 FAQ、Query Rewrite、混合检索等。</span></p><h3 style=\\\"box-sizing:border-box;border-width:0 0 0 3px;border-style:solid;border-color:rgb(229,229,229) rgb(229,229,229) rgb(229,229,229) rgb(0,152,116);font-size:16.5px;font-weight:bold;margin:2em 8px 0.75em 0;text-align:left;line-height:1.2;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;padding-left:8px;color:rgb(63,63,63)\\\"><span>流程</span></h3><div style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);margin: 1.5em 8px;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;color: rgb(63, 63, 63);\\\"><span><img src=\\\":/4ca81f3a788f4c7baee05d35291b6ef0\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" alt=\\\"流程图\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);display: block;vertical-align: middle;max-width: 100%;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, \\\"Helvetica Neue\\\", \\\"PingFang SC\\\", \\\"Hiragino Sans GB\\\", \\\"Microsoft YaHei UI\\\", \\\"Microsoft YaHei\\\", Arial, sans-serif;font-size: 15px;margin: 0.1em auto 0.5em;border-radius: 4px;height: auto !important;\\\" title=\\\"null\\\"/></span><div style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: center;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 0.8em;color: rgb(136, 136, 136);\\\"><span>流程图</span></div></div><p style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span>本Agent整体架构分为三个部分：</span></p><ol style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);list-style:none;margin:0;padding:0 0 0 1em;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;color:rgb(63,63,63)\\\"><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>1. </span><strong style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-weight: bold;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;color: rgb(0, 152, 116);\\\"><span>知识库：</span></strong><span> 内部包含 Knowledge Store 和 FAQ Store，分别存储文本内容和 FAQ 内容，支持向量和全文的混合检索。</span></div></li><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>2. </span><strong style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-weight: bold;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;color: rgb(0, 152, 116);\\\"><span>MCP Server：</span></strong><span> 提供对 Knowledge Store 和 FAQ Store 的读写操作，总共提供 4 个 Tools。</span></div></li><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>3. **功能实现部分：**完全通过 Prompt + LLM 来实现对知识库的导入、检索和问答这几个功能。</span></div></li></ol><h3 style=\\\"box-sizing:border-box;border-width:0 0 0 3px;border-style:solid;border-color:rgb(229,229,229) rgb(229,229,229) rgb(229,229,229) rgb(0,152,116);font-size:16.5px;font-weight:bold;margin:2em 8px 0.75em 0;text-align:left;line-height:1.2;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;padding-left:8px;color:rgb(63,63,63)\\\"><span>项目结构</span></h3><p style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span>项目结构分为两部分：</span></p><ol style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);list-style:none;margin:0;padding:0 0 0 1em;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;color:rgb(63,63,63)\\\"><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>1. </span><strong style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-weight: bold;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;color: rgb(0, 152, 116);\\\"><code style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-feature-settings: normal;font-variation-settings: normal;font-size: 13.5px;text-align: left;line-height: 1.75;color: rgb(221, 17, 68);background: rgba(27, 31, 35, 0.05);padding: 3px 5px;border-radius: 4px;\\\"><span>milvus-mcp-client</span></code><span>：</span></strong><span> Python 实现的 Client 端，实现了与大模型进行交互，通过 MCP Client 获取 Tools，根据大模型的反馈调用 Tools 等基本能力。通过 Prompt 实现了知识库构建、检索和问答三个主要功能。</span></div></li><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>2. ** </span><code style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-feature-settings: normal;font-variation-settings: normal;font-size: 13.5px;text-align: left;line-height: 1.75;color: rgb(221, 17, 68);background: rgba(27, 31, 35, 0.05);padding: 3px 5px;border-radius: 4px;\\\"><span>milvus-mcp-server</span></code><span>：** Python 实现的 Server 端，基于 MCP 框架实现的服务，提供了连接 Milvus 向量数据库的接口，支持知识库的存储和检索功能。</span></div></li></ol><h2 style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);font-size:18px;font-weight:bold;margin:4em auto 2em;text-align:center;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;display:table;padding:0 0.2em;color:rgb(255,255,255);background:rgb(0,152,116)\\\"><span>项目实战：从零搭建MCP-RAG系统</span></h2><p style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span>接下来，我们将从环境搭建、服务部署到功能测试，全面介绍如何搭建一个基于MCP的RAG系统。</span></p><h3 style=\\\"box-sizing:border-box;border-width:0 0 0 3px;border-style:solid;border-color:rgb(229,229,229) rgb(229,229,229) rgb(229,229,229) rgb(0,152,116);font-size:16.5px;font-weight:bold;margin:2em 8px 0.75em 0;text-align:left;line-height:1.2;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;padding-left:8px;color:rgb(63,63,63)\\\"><span>环境准备</span></h3><p style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span>首先，确保满足以下系统要求：</span></p><ul style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);list-style:circle;margin:0;padding:0 0 0 1em;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;color:rgb(63,63,63)\\\"><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>• Docker 和 Docker Compose</span></div></li><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>• 至少 4CPU、4GB内存和20GB磁盘空间</span></div></li><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>• 克隆代码</span><code style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-feature-settings: normal;font-variation-settings: normal;font-size: 13.5px;text-align: left;line-height: 1.75;color: rgb(221, 17, 68);background: rgba(27, 31, 35, 0.05);padding: 3px 5px;border-radius: 4px;\\\"><span>git clone -b rag_0.1.1 https://github.com/FlyAIBox/mcp-in-action.git</span></code></div></li></ul><h3 style=\\\"box-sizing:border-box;border-width:0 0 0 3px;border-style:solid;border-color:rgb(229,229,229) rgb(229,229,229) rgb(229,229,229) rgb(0,152,116);font-size:16.5px;font-weight:bold;margin:2em 8px 0.75em 0;text-align:left;line-height:1.2;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;padding-left:8px;color:rgb(63,63,63)\\\"><span>部署MCP Server</span></h3><p style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span>MCP Server基于Milvus向量数据库，提供了知识库的存储和检索功能。</span></p><p style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span>对于需要进行开发或调试的场景，可以选择本地部署：</span></p><pre style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-feature-settings: normal;font-variation-settings: normal;font-size: 14px;margin: 10px 8px;color: rgb(201, 209, 217);background: rgb(13, 17, 23);text-align: left;line-height: 1.5;overflow-x: auto;border-radius: 8px;padding: 0px !important;\\\"><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);display: flex;padding: 10px 14px 0px;\\\"><span><span></span><span></span><span></span></span></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(139, 148, 158);\\\"><span># 进入项目目录</span></span><span><br/></span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 166, 87);\\\"><span>cd</span></span><span> mcp-rag</span><span><br/></span><span><br/></span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(139, 148, 158);\\\"><span># 先启动Milvus及依赖服务</span></span><span><br/></span><span>docker compose up -d etcd minio standalone</span><span><br/></span><span><br/></span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(139, 148, 158);\\\"><span># 创建Python虚拟环境</span></span><span><br/></span><span>python -m venv env-mcp-rag</span><span><br/></span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 166, 87);\\\"><span>source</span></span><span> env-mcp-rag/bin/activate  </span><span><br/></span><span><br/></span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(139, 148, 158);\\\"><span># 安装依赖</span></span><span><br/></span><span>pip install -r requirements.txt</span><span><br/></span><span><br/></span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(139, 148, 158);\\\"><span># 启动服务</span></span><span><br/></span><span>python -m app.main</span></div></pre><h3 style=\\\"box-sizing:border-box;border-width:0 0 0 3px;border-style:solid;border-color:rgb(229,229,229) rgb(229,229,229) rgb(229,229,229) rgb(0,152,116);font-size:16.5px;font-weight:bold;margin:2em 8px 0.75em 0;text-align:left;line-height:1.2;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;padding-left:8px;color:rgb(63,63,63)\\\"><span>MCP Server的核心API</span></h3><p style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span>MCP Server提供四个核心工具，支持知识库的读写操作：</span></p><ol style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);list-style:none;margin:0;padding:0 0 0 1em;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;color:rgb(63,63,63)\\\"><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>1. </span><strong style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-weight: bold;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;color: rgb(0, 152, 116);\\\"><span>storeKnowledge</span></strong><span>：存储文档到知识库</span></div></li><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>2. </span><strong style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-weight: bold;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;color: rgb(0, 152, 116);\\\"><span>searchKnowledge</span></strong><span>：在知识库中搜索相似文档</span></div></li><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>3. </span><strong style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-weight: bold;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;color: rgb(0, 152, 116);\\\"><span>storeFAQ</span></strong><span>：存储FAQ到FAQ库</span></div></li><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>4. </span><strong style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-weight: bold;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;color: rgb(0, 152, 116);\\\"><span>searchFAQ</span></strong><span>：在FAQ库中搜索相似问答对</span></div></li></ol><p style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span>让我们看看这些API的实际实现原理：</span></p><pre style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-feature-settings: normal;font-variation-settings: normal;font-size: 14px;margin: 10px 8px;color: rgb(201, 209, 217);background: rgb(13, 17, 23);text-align: left;line-height: 1.5;overflow-x: auto;border-radius: 8px;padding: 0px !important;\\\"><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);display: flex;padding: 10px 14px 0px;\\\"><span><span></span><span></span><span></span></span></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>async</span></span><span> </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>def</span></span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(210, 168, 255);\\\"><span>store_knowledge</span></span><span>(</span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);\\\"><span>self, content: </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 166, 87);\\\"><span>str</span></span><span>, metadata: </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>Dict</span></span><span>[</span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 166, 87);\\\"><span>str</span></span><span>, </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>Any</span></span><span>] = </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(121, 192, 255);\\\"><span>None</span></span></span><span>) -&gt; </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>Dict</span></span><span>[</span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 166, 87);\\\"><span>str</span></span><span>, </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>Any</span></span><span>]:</span><span><br/></span><span>    </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(165, 214, 255);\\\"><span>&quot;&quot;&quot;存储知识内容到Milvus&quot;&quot;&quot;</span></span><span><br/></span><span>    </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(139, 148, 158);\\\"><span># 确保服务准备就绪</span></span><span><br/></span><span>    </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>await</span></span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>self</span></span><span>.ready_for_connections()</span><span><br/></span><span>    </span><span><br/></span><span>    </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>try</span></span><span>:</span><span><br/></span><span>        knowledge_content = KnowledgeContent(</span><span><br/></span><span>            content=content,</span><span><br/></span><span>            metadata=metadata </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>or</span></span><span> {}</span><span><br/></span><span>        )</span><span><br/></span><span>        </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>self</span></span><span>.milvus_service.store_knowledge(knowledge_content)</span><span><br/></span><span>        </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>return</span></span><span> {</span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(165, 214, 255);\\\"><span>&quot;status&quot;</span></span><span>: </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(165, 214, 255);\\\"><span>&quot;success&quot;</span></span><span>, </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(165, 214, 255);\\\"><span>&quot;message&quot;</span></span><span>: </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(165, 214, 255);\\\"><span>&quot;Knowledge stored successfully&quot;</span></span><span>}</span><span><br/></span><span>    </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>except</span></span><span> Exception </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>as</span></span><span> e:</span><span><br/></span><span>        logger.error(</span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(165, 214, 255);\\\"><span>f&quot;Error storing knowledge: </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(201, 209, 217);\\\"><span>{e}</span></span><span>&quot;</span></span><span>)</span><span><br/></span><span>        </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>return</span></span><span> {</span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(165, 214, 255);\\\"><span>&quot;status&quot;</span></span><span>: </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(165, 214, 255);\\\"><span>&quot;error&quot;</span></span><span>, </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(165, 214, 255);\\\"><span>&quot;message&quot;</span></span><span>: </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 166, 87);\\\"><span>str</span></span><span>(e)}</span></div></pre><p style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span>这段代码展示了</span><code style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-feature-settings: normal;font-variation-settings: normal;font-size: 13.5px;text-align: left;line-height: 1.75;color: rgb(221, 17, 68);background: rgba(27, 31, 35, 0.05);padding: 3px 5px;border-radius: 4px;\\\"><span>storeKnowledge</span></code><span>工具的实现：接收文本内容和元数据，创建知识内容对象，然后通过Milvus服务存储到向量数据库中。</span></p><h3 style=\\\"box-sizing:border-box;border-width:0 0 0 3px;border-style:solid;border-color:rgb(229,229,229) rgb(229,229,229) rgb(229,229,229) rgb(0,152,116);font-size:16.5px;font-weight:bold;margin:2em 8px 0.75em 0;text-align:left;line-height:1.2;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;padding-left:8px;color:rgb(63,63,63)\\\"><span>基于MCP Client实现RAG客户端</span></h3><p style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span>接下来，我们需要实现一个RAG客户端，通过MCP协议与Server通信，实现知识库的构建和查询功能。</span></p><h4 style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);font-size:15px;font-weight:bold;margin:2em 8px 0.5em;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;color:rgb(0,152,116)\\\"><span>1. 知识库构建</span></h4><blockquote style=\\\"box-sizing: border-box;border-width: 0px 0px 0px 4px;border-style: solid;border-color: rgb(229, 229, 229) rgb(229, 229, 229) rgb(229, 229, 229) rgb(0, 152, 116);margin: 0px;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;font-style: normal;padding: 1em;border-radius: 6px;color: rgba(0, 0, 0, 0.5);background: rgb(247, 247, 247);\\\"><ul style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);list-style:circle;margin:0;padding:0 0 0 1em;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;color:rgb(63,63,63)\\\"><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>• 文本切分：对长文本进行智能切分，保证语义完整性</span></div></li><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>• FAQ提取：从文档自动生成常见问题解答对</span></div></li><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>• 向量化存储：将文本片段和FAQ转换为向量并存入Milvus</span></div></li></ul></blockquote><p style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><strong style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-weight: bold;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;color: rgb(0, 152, 116);\\\"><span>文本切分代码示例：</span></strong></p><pre style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-feature-settings: normal;font-variation-settings: normal;font-size: 14px;margin: 10px 8px;color: rgb(201, 209, 217);background: rgb(13, 17, 23);text-align: left;line-height: 1.5;overflow-x: auto;border-radius: 8px;padding: 0px !important;\\\"><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);display: flex;padding: 10px 14px 0px;\\\"><span><span></span><span></span><span></span></span></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>def</span></span><span> </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(210, 168, 255);\\\"><span>_chunk_text</span></span><span>(</span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);\\\"><span>self, text: </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 166, 87);\\\"><span>str</span></span></span><span>) -&gt; </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>List</span></span><span>[</span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 166, 87);\\\"><span>str</span></span><span>]:</span><span><br/></span><span>    </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(165, 214, 255);\\\"><span>&quot;&quot;&quot;将文本分割成chunk，保证语义完整性&quot;&quot;&quot;</span></span><span><br/></span><span>    chunks = []</span><span><br/></span><span>    </span><span><br/></span><span>    </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(139, 148, 158);\\\"><span># 处理文本小于chunk_size的简单情况</span></span><span><br/></span><span>    </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>if</span></span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 166, 87);\\\"><span>len</span></span><span>(text) &lt;= </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>self</span></span><span>.chunk_size:</span><span><br/></span><span>        chunks.append(text)</span><span><br/></span><span>        </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>return</span></span><span> chunks</span><span><br/></span><span>        </span><span><br/></span><span>    </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(139, 148, 158);\\\"><span># 使用重叠策略分割文本</span></span><span><br/></span><span>    start = </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(121, 192, 255);\\\"><span>0</span></span><span><br/></span><span>    </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>while</span></span><span> start &lt; </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 166, 87);\\\"><span>len</span></span><span>(text):</span><span><br/></span><span>        </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(139, 148, 158);\\\"><span># 获取chunk结束位置</span></span><span><br/></span><span>        end = start + </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>self</span></span><span>.chunk_size</span><span><br/></span><span>        </span><span><br/></span><span>        </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(139, 148, 158);\\\"><span># 调整结束位置，避免在句子中间切断</span></span><span><br/></span><span>        </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>if</span></span><span> end &lt; </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 166, 87);\\\"><span>len</span></span><span>(text):</span><span><br/></span><span>            </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(139, 148, 158);\\\"><span># 寻找句子边界（句号、问号、感叹号）</span></span><span><br/></span><span>            sentence_end = </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 166, 87);\\\"><span>max</span></span><span>(</span><span><br/></span><span>                text.rfind(</span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(165, 214, 255);\\\"><span>'. '</span></span><span>, start, end),</span><span><br/></span><span>                text.rfind(</span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(165, 214, 255);\\\"><span>'? '</span></span><span>, start, end),</span><span><br/></span><span>                text.rfind(</span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(165, 214, 255);\\\"><span>'! '</span></span><span>, start, end)</span><span><br/></span><span>            )</span><span><br/></span><span>            </span><span><br/></span><span>            </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(139, 148, 158);\\\"><span># 如果找到句子结束，使用它作为chunk结束</span></span><span><br/></span><span>            </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>if</span></span><span> sentence_end &gt; start:</span><span><br/></span><span>                end = sentence_end + </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(121, 192, 255);\\\"><span>1</span></span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(139, 148, 158);\\\"><span># 包含句号</span></span><span><br/></span><span>        </span><span><br/></span><span>        </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(139, 148, 158);\\\"><span># 添加chunk</span></span><span><br/></span><span>        chunks.append(text[start:</span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 166, 87);\\\"><span>min</span></span><span>(end, </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 166, 87);\\\"><span>len</span></span><span>(text))])</span><span><br/></span><span>        </span><span><br/></span><span>        </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(139, 148, 158);\\\"><span># 移动开始位置到下一个chunk，考虑重叠</span></span><span><br/></span><span>        start = end - </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>self</span></span><span>.chunk_overlap</span><span><br/></span><span>        </span><span><br/></span><span>        </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(139, 148, 158);\\\"><span># 确保进度</span></span><span><br/></span><span>        </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>if</span></span><span> start &gt;= </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 166, 87);\\\"><span>len</span></span><span>(text) </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>or</span></span><span> start &lt;= </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(121, 192, 255);\\\"><span>0</span></span><span>:</span><span><br/></span><span>            </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>break</span></span><span><br/></span><span>            </span><span><br/></span><span>    </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>return</span></span><span> chunks</span></div></pre><p style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><strong style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-weight: bold;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;color: rgb(0, 152, 116);\\\"><span>FAQ提取，通过LLM实现：</span></strong></p><pre style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-feature-settings: normal;font-variation-settings: normal;font-size: 14px;margin: 10px 8px;color: rgb(201, 209, 217);background: rgb(13, 17, 23);text-align: left;line-height: 1.5;overflow-x: auto;border-radius: 8px;padding: 0px !important;\\\"><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);display: flex;padding: 10px 14px 0px;\\\"><span><span></span><span></span><span></span></span></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>async</span></span><span> </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>def</span></span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(210, 168, 255);\\\"><span>_extract_faqs</span></span><span>(</span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);\\\"><span>self, text: </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 166, 87);\\\"><span>str</span></span></span><span>) -&gt; </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>List</span></span><span>[</span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>Dict</span></span><span>[</span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 166, 87);\\\"><span>str</span></span><span>, </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 166, 87);\\\"><span>str</span></span><span>]]:</span><span><br/></span><span>    </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(165, 214, 255);\\\"><span>&quot;&quot;&quot;从文本中提取FAQ&quot;&quot;&quot;</span></span><span><br/></span><span>    </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(139, 148, 158);\\\"><span># 对过长文本进行分块处理</span></span><span><br/></span><span>    </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>if</span></span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 166, 87);\\\"><span>len</span></span><span>(text) &gt; </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(121, 192, 255);\\\"><span>8000</span></span><span>:</span><span><br/></span><span>        chunks = </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>self</span></span><span>._chunk_text(text)</span><span><br/></span><span>        faqs = []</span><span><br/></span><span>        </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>for</span></span><span> chunk </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>in</span></span><span> chunks:</span><span><br/></span><span>            chunk_faqs = </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>await</span></span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>self</span></span><span>._extract_faqs(chunk)</span><span><br/></span><span>            faqs.extend(chunk_faqs)</span><span><br/></span><span>        </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>return</span></span><span> faqs</span><span><br/></span><span>        </span><span><br/></span><span>     </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(139, 148, 158);\\\"><span># FAQ提取的提示模板</span></span><span><br/></span><span>     system_prompt = </span><span><br/></span><span>        </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(165, 214, 255);\\\"><span>&quot;&quot;&quot;你是一位专业的知识提取专家。你的任务是从文本中提取可能的常见问题(FAQ)。</span><span><br/></span><span>        这些问题应该是用户可能会问的关于文本内容的自然问题，答案应该能在文本中找到。</span><span><br/></span><span>        提取的FAQ应该覆盖文本中最重要的概念和信息。</span><span><br/></span><span><br/></span><span>        请遵循以下规则：</span><span><br/></span><span>        1. 每个FAQ由一个问题和一个答案组成</span><span><br/></span><span>        2. 问题应该简短明了，直接针对主题</span><span><br/></span><span>        3. 答案应该全面但简洁，提供文本中的相关信息</span><span><br/></span><span>        4. 提取的FAQ数量应该基于文本长度和内容丰富度，通常不超过10个</span><span><br/></span><span>        5. 确保提取的FAQ相互之间不重复</span><span><br/></span><span>        6. 按照重要性排序，最重要的问题应该放在前面</span><span><br/></span><span><br/></span><span>        输出格式必须是一个JSON数组，每个FAQ是一个包含&quot;question&quot;和&quot;answer&quot;字段的对象，例如：</span><span><br/></span><span>        [</span><span><br/></span><span>          {</span><span><br/></span><span>            &quot;question&quot;: &quot;问题1?&quot;,</span><span><br/></span><span>            &quot;answer&quot;: &quot;答案1&quot;</span><span><br/></span><span>          },</span><span><br/></span><span>          {</span><span><br/></span><span>            &quot;question&quot;: &quot;问题2?&quot;,</span><span><br/></span><span>            &quot;answer&quot;: &quot;答案2&quot;</span><span><br/></span><span>          }</span><span><br/></span><span>        ]</span><span><br/></span><span>        只输出JSON格式，不要有任何其他文本。&quot;&quot;&quot;</span></span><span><br/></span><span>    user_prompt = </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(165, 214, 255);\\\"><span>f&quot;&quot;&quot;从以下文本中提取常见问题(FAQ)：</span><span><br/></span><span>    ```</span><span><br/></span><span>    </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(201, 209, 217);\\\"><span>{text}</span></span><span><br/></span><span>    ```</span><span><br/></span><span>    请提取最相关、最有价值的FAQ，并按JSON格式返回。&quot;&quot;&quot;</span></span><span><br/></span><span><br/></span><span><br/></span><span>   </span><span><br/></span><span>   </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(139, 148, 158);\\\"><span># 使用LLM提取FAQ</span></span><span><br/></span><span>   response = </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>self</span></span><span>.llm_client.sync_generate(</span><span><br/></span><span>       prompt=text,</span><span><br/></span><span>       system_prompt=system_prompt,</span><span><br/></span><span>       temperature=</span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(121, 192, 255);\\\"><span>0.3</span></span><span><br/></span><span>   )</span><span><br/></span><span>   </span><span><br/></span><span>   </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(139, 148, 158);\\\"><span># 解析LLM响应获取FAQ</span></span><span><br/></span><span>   </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(139, 148, 158);\\\"><span># ...</span></span><span><br/></span></div></pre><h4 style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);font-size:15px;font-weight:bold;margin:2em 8px 0.5em;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;color:rgb(0,152,116)\\\"><span>2. 知识检索优化</span></h4><p style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span>与传统RAG不同，我们在检索环节引入了问题拆解、混合检索和结果筛选三个优化机制。</span></p><blockquote style=\\\"box-sizing: border-box;border-width: 0px 0px 0px 4px;border-style: solid;border-color: rgb(229, 229, 229) rgb(229, 229, 229) rgb(229, 229, 229) rgb(0, 152, 116);margin: 0px;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;font-style: normal;padding: 1em;border-radius: 6px;color: rgba(0, 0, 0, 0.5);background: rgb(247, 247, 247);\\\"><ul style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);list-style:circle;margin:0;padding:0 0 0 1em;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;color:rgb(63,63,63)\\\"><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>• 问题拆解：将复杂问题拆解为多个子问题</span></div></li><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>• 混合检索：同时检索文本库和FAQ库，提高召回率</span></div></li><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>• 结果筛选：对检索结果进行排序和筛选，优先保留高质量内容</span></div></li></ul></blockquote><p style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><strong style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-weight: bold;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;color: rgb(0, 152, 116);\\\"><span>问题拆解示例：</span></strong></p><pre style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-feature-settings: normal;font-variation-settings: normal;font-size: 14px;margin: 10px 8px;color: rgb(201, 209, 217);background: rgb(13, 17, 23);text-align: left;line-height: 1.5;overflow-x: auto;border-radius: 8px;padding: 0px !important;\\\"><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);display: flex;padding: 10px 14px 0px;\\\"><span><span></span><span></span><span></span></span></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>async</span></span><span> </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>def</span></span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(210, 168, 255);\\\"><span>_decompose_question</span></span><span>(</span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);\\\"><span>self, question: </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 166, 87);\\\"><span>str</span></span></span><span>) -&gt; </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>List</span></span><span>[</span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 166, 87);\\\"><span>str</span></span><span>]:</span><span><br/></span><span>    </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(165, 214, 255);\\\"><span>&quot;&quot;&quot;将复杂问题分解为更简单的子问题&quot;&quot;&quot;</span></span><span><br/></span><span>    system_prompt = </span><span><br/></span><span>    </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(165, 214, 255);\\\"><span>&quot;&quot;&quot;你是一位问题分析专家。你的任务是将复杂问题分解为更简单的子问题，以便更好地检索相关信息。</span><span><br/></span><span><br/></span><span>    请遵循以下规则：</span><span><br/></span><span>    1. 分析用户的问题，识别其中包含的不同方面或概念</span><span><br/></span><span>    2. 将复杂问题拆分成更简单、更具体的子问题</span><span><br/></span><span>    3. 确保子问题覆盖原始问题的所有关键方面</span><span><br/></span><span>    4. 提供2-4个子问题，具体数量取决于原始问题的复杂度</span><span><br/></span><span>    5. 子问题应该是明确的、有针对性的</span><span><br/></span><span>    6. 子问题之间应该尽量避免重复</span><span><br/></span><span><br/></span><span>    输出格式必须是一个JSON数组，包含所有子问题的字符串，例如：</span><span><br/></span><span>    [&quot;子问题1&quot;, &quot;子问题2&quot;, &quot;子问题3&quot;]</span><span><br/></span><span><br/></span><span>    如果原始问题已经足够简单，不需要分解，则返回只包含原始问题的JSON数组：</span><span><br/></span><span>    [&quot;原始问题&quot;]</span><span><br/></span><span><br/></span><span>    只输出JSON格式，不要有任何其他文本。&quot;&quot;&quot;</span></span><span><br/></span><span><br/></span><span>    user_prompt = </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(165, 214, 255);\\\"><span>f&quot;&quot;&quot;请将以下问题分解为更简单的子问题以便检索：</span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(201, 209, 217);\\\"><span>{question}</span></span><span>&quot;&quot;&quot;</span></span><span><br/></span><span>    </span><span><br/></span><span>    </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(139, 148, 158);\\\"><span># 使用LLM生成子问题</span></span><span><br/></span><span>    response = </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>self</span></span><span>.llm_client.sync_generate(</span><span><br/></span><span>        prompt=user_prompt,</span><span><br/></span><span>        system_prompt=system_prompt,</span><span><br/></span><span>        temperature=</span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(121, 192, 255);\\\"><span>0.3</span></span><span><br/></span><span>    )</span><span><br/></span><span>    </span><span><br/></span><span>    </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(139, 148, 158);\\\"><span># 解析响应获取子问题列表</span></span><span><br/></span><span>    </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(139, 148, 158);\\\"><span># ...</span></span></div></pre><p style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><strong style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-weight: bold;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;color: rgb(0, 152, 116);\\\"><span>结果筛选与生成回答的关键代码：</span></strong></p><pre style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-feature-settings: normal;font-variation-settings: normal;font-size: 14px;margin: 10px 8px;color: rgb(201, 209, 217);background: rgb(13, 17, 23);text-align: left;line-height: 1.5;overflow-x: auto;border-radius: 8px;padding: 0px !important;\\\"><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);display: flex;padding: 10px 14px 0px;\\\"><span><span></span><span></span><span></span></span></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>async</span></span><span> </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>def</span></span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(210, 168, 255);\\\"><span>_filter_context</span></span><span>(</span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);\\\"><span>self, question: </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 166, 87);\\\"><span>str</span></span><span>, context_items: </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>List</span></span><span>[</span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>Dict</span></span><span>[</span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 166, 87);\\\"><span>str</span></span><span>, </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>Any</span></span><span>]]</span></span><span>) -&gt; </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>List</span></span><span>[</span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>Dict</span></span><span>[</span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 166, 87);\\\"><span>str</span></span><span>, </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>Any</span></span><span>]]:</span><span><br/></span><span>    </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(165, 214, 255);\\\"><span>&quot;&quot;&quot;根据问题相关性筛选上下文&quot;&quot;&quot;</span></span><span><br/></span><span>    </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(139, 148, 158);\\\"><span># 简单筛选：去重和截断</span></span><span><br/></span><span>    seen_contents = </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 166, 87);\\\"><span>set</span></span><span>()</span><span><br/></span><span>    filtered_items = []</span><span><br/></span><span>    </span><span><br/></span><span>    </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(139, 148, 158);\\\"><span># 优先处理FAQ类型</span></span><span><br/></span><span>    faq_items = [item </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>for</span></span><span> item </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>in</span></span><span> context_items </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>if</span></span><span> item[</span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(165, 214, 255);\\\"><span>&quot;type&quot;</span></span><span>] == </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(165, 214, 255);\\\"><span>&quot;faq&quot;</span></span><span>]</span><span><br/></span><span>    knowledge_items = [item </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>for</span></span><span> item </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>in</span></span><span> context_items </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>if</span></span><span> item[</span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(165, 214, 255);\\\"><span>&quot;type&quot;</span></span><span>] == </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(165, 214, 255);\\\"><span>&quot;knowledge&quot;</span></span><span>]</span><span><br/></span><span>    </span><span><br/></span><span>    </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(139, 148, 158);\\\"><span># 先处理FAQ项</span></span><span><br/></span><span>    </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>for</span></span><span> item </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>in</span></span><span> faq_items:</span><span><br/></span><span>        </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(139, 148, 158);\\\"><span># 去重处理</span></span><span><br/></span><span>        </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(139, 148, 158);\\\"><span># ...</span></span><span><br/></span><span>    </span><span><br/></span><span>    </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(139, 148, 158);\\\"><span># 再处理知识项</span></span><span><br/></span><span>    </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>for</span></span><span> item </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>in</span></span><span> knowledge_items:</span><span><br/></span><span>        </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(139, 148, 158);\\\"><span># 去重处理</span></span><span><br/></span><span>        </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(139, 148, 158);\\\"><span># ...</span></span><span><br/></span><span>    </span><span><br/></span><span>    </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(139, 148, 158);\\\"><span># 限制上下文项总数</span></span><span><br/></span><span>    max_context_items = </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(121, 192, 255);\\\"><span>6</span></span><span><br/></span><span>    </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>if</span></span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 166, 87);\\\"><span>len</span></span><span>(filtered_items) &gt; max_context_items:</span><span><br/></span><span>        filtered_items = filtered_items[:max_context_items]</span><span><br/></span><span>        </span><span><br/></span><span>    </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(255, 123, 114);\\\"><span>return</span></span><span> filtered_items</span></div></pre><h3 style=\\\"box-sizing:border-box;border-width:0 0 0 3px;border-style:solid;border-color:rgb(229,229,229) rgb(229,229,229) rgb(229,229,229) rgb(0,152,116);font-size:16.5px;font-weight:bold;margin:2em 8px 0.75em 0;text-align:left;line-height:1.2;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;padding-left:8px;color:rgb(63,63,63)\\\"><span>实际效果展示</span></h3><p style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span>部署完成后，让我们看看系统的实际运行效果：</span></p><h4 style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);font-size:15px;font-weight:bold;margin:2em 8px 0.5em;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;color:rgb(0,152,116)\\\"><span>1. 知识库构建</span></h4><pre style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-feature-settings: normal;font-variation-settings: normal;font-size: 14px;margin: 10px 8px;color: rgb(201, 209, 217);background: rgb(13, 17, 23);text-align: left;line-height: 1.5;overflow-x: auto;border-radius: 8px;padding: 0px !important;\\\"><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);display: flex;padding: 10px 14px 0px;\\\"><span><span></span><span></span><span></span></span></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span>python -m app.main build --file test.md --title </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(165, 214, 255);\\\"><span>&quot;RAG基本介绍&quot;</span></span><span> --author </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(165, 214, 255);\\\"><span>&quot;企业知识库&quot;</span></span><span> --tags </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(165, 214, 255);\\\"><span>&quot;LLM,RAG,知识库&quot;</span></span></div></pre><p style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span>执行结果：</span></p><pre style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-feature-settings: normal;font-variation-settings: normal;font-size: 14px;margin: 10px 8px;color: rgb(201, 209, 217);background: rgb(13, 17, 23);text-align: left;line-height: 1.5;overflow-x: auto;border-radius: 8px;padding: 0px !important;\\\"><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);display: flex;padding: 10px 14px 0px;\\\"><span><span></span><span></span><span></span></span></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span>2025-05-11 14:50:16 | INFO | app.knowledge_builder:build_from_text:52 - Split text into 2 chunks</span><span><br/></span><span>2025-05-11 14:50:59 | INFO | app.knowledge_builder:build_from_text:72 - Extracted 8 FAQs from text</span><span><br/></span><span>2025-05-11 14:51:00 | INFO | __main__:build_knowledge_base:48 - Stored 2/2 chunks to knowledge base</span><span><br/></span><span>2025-05-11 14:51:00 | INFO | __main__:build_knowledge_base:50 - Extracted and stored 8 FAQs</span></div></pre><div style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);margin: 1.5em 8px;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;color: rgb(63, 63, 63);\\\"><span><img src=\\\":/5f09875d98d84dc9850e79ed645094b4\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" alt=\\\"借助attu查看知识库构建结果\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);display: block;vertical-align: middle;max-width: 100%;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, \\\"Helvetica Neue\\\", \\\"PingFang SC\\\", \\\"Hiragino Sans GB\\\", \\\"Microsoft YaHei UI\\\", \\\"Microsoft YaHei\\\", Arial, sans-serif;font-size: 15px;margin: 0.1em auto 0.5em;border-radius: 4px;height: auto !important;\\\" title=\\\"null\\\"/></span><div style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: center;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 0.8em;color: rgb(136, 136, 136);\\\"><span>借助attu查看知识库构建结果</span></div></div><h4 style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);font-size:15px;font-weight:bold;margin:2em 8px 0.5em;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;color:rgb(0,152,116)\\\"><span>2. 知识检索问答</span></h4><pre style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-feature-settings: normal;font-variation-settings: normal;font-size: 14px;margin: 10px 8px;color: rgb(201, 209, 217);background: rgb(13, 17, 23);text-align: left;line-height: 1.5;overflow-x: auto;border-radius: 8px;padding: 0px !important;\\\"><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);display: flex;padding: 10px 14px 0px;\\\"><span><span></span><span></span><span></span></span></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span>python -m app.main query --question </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);color: rgb(165, 214, 255);\\\"><span>&quot;RAG相比企业传统的知识库有什么优势和缺点&quot;</span></span></div></pre><p style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span>执行结果：</span></p><pre style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-feature-settings: normal;font-variation-settings: normal;font-size: 14px;margin: 10px 8px;color: rgb(201, 209, 217);background: rgb(13, 17, 23);text-align: left;line-height: 1.5;overflow-x: auto;border-radius: 8px;padding: 0px !important;\\\"><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);display: flex;padding: 10px 14px 0px;\\\"><span><span></span><span></span><span></span></span></span><div style=\\\"--en-codeblock:true;--en-meta:{&quot;title&quot;:&quot;&quot;,&quot;lang&quot;:&quot;Plain Text&quot;,&quot;theme&quot;:&quot;default&quot;,&quot;showLine&quot;:true,&quot;lineWrap&quot;:true};box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial; margin-top: 6px;\\\"><span>2025-05-11 15:01:46 | INFO | app.knowledge_retriever:query:39 - Decomposed question into 4 sub-questions</span><span><br/></span><span>2025-05-11 15:01:47 | INFO | app.knowledge_retriever:query:67 - Filtered 28 context items to 6</span><span><br/></span><span><br/></span><span>================================================================================</span><span><br/></span><span>问题: RAG相比企业传统的知识库有什么优势和缺点</span><span><br/></span><span>--------------------------------------------------------------------------------</span><span><br/></span><span>回答: 检索增强生成（RAG）是一种通过整合训练数据之外的权威知识库来优化大型语言模型（LLM）输出的技术。其核心在于允许LLM在生成响应前动态访问特定领域或组织的内部知识库，例如实时数据源、文档或专业数据库，而无需对模型本身进行重新训练。这种方式通过引入外部信息，显著提升了生成内容的相关性、准确性及实用性，同时保留了LLM的灵活性和泛化能力。</span><span><br/></span><span>================================================================================</span></div></pre><div style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);margin: 1.5em 8px;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;color: rgb(63, 63, 63);\\\"><span><img src=\\\":/e640eca47fdf4df1beb9b439cbef32fb\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" alt=\\\"知识检索问答\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);display: block;vertical-align: middle;max-width: 100%;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, \\\"Helvetica Neue\\\", \\\"PingFang SC\\\", \\\"Hiragino Sans GB\\\", \\\"Microsoft YaHei UI\\\", \\\"Microsoft YaHei\\\", Arial, sans-serif;font-size: 15px;margin: 0.1em auto 0.5em;border-radius: 4px;height: auto !important;\\\" title=\\\"null\\\"/></span><div style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: center;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 0.8em;color: rgb(136, 136, 136);\\\"><span>知识检索问答</span></div></div><h2 style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);font-size:18px;font-weight:bold;margin:4em auto 2em;text-align:center;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;display:table;padding:0 0.2em;color:rgb(255,255,255);background:rgb(0,152,116)\\\"><span>实施建议与最佳实践</span></h2><p style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span>根据实际项目经验，我们总结了以下最佳实践：</span></p><ol style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);list-style:none;margin:0;padding:0 0 0 1em;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;color:rgb(63,63,63)\\\"><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>1. </span><strong style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-weight: bold;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;color: rgb(0, 152, 116);\\\"><span>文档处理策略</span></strong></div></li><ul style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);list-style:circle;margin:0;padding:0 0 0 1em;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;color:rgb(63,63,63)\\\"><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>• 合理设置文本切分的大小（1000-1500字符）和重叠率（200-300字符）</span></div></li><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>• 根据文档类型调整切分策略，技术文档和叙述性文档要区别对待</span></div></li><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>• 保留文档原始格式信息作为元数据，提升检索精度</span></div></li></ul><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>2. </span><strong style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-weight: bold;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;color: rgb(0, 152, 116);\\\"><span>检索优化技巧</span></strong></div></li><ul style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);list-style:circle;margin:0;padding:0 0 0 1em;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;color:rgb(63,63,63)\\\"><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>• 使用混合检索（语义+关键词）提高召回率</span></div></li><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>• 在问题拆解环节设置合理的子问题数量（2-4个）</span></div></li><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>• 限制总上下文数量（5-8个）避免信息过载</span></div></li></ul><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>3. </span><strong style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-weight: bold;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: inherit;color: rgb(0, 152, 116);\\\"><span>系统集成要点</span></strong></div></li><ul style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);list-style:circle;margin:0;padding:0 0 0 1em;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;color:rgb(63,63,63)\\\"><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>• 选择合适的向量模型</span></div></li><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>• 针对实时更新需求设计增量索引策略</span></div></li><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>• 添加监控和日志记录，及时发现并解决问题</span></div></li></ul></ol><h2 style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);font-size:18px;font-weight:bold;margin:4em auto 2em;text-align:center;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;display:table;padding:0 0.2em;color:rgb(255,255,255);background:rgb(0,152,116)\\\"><span>总结与展望</span></h2><p style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span>基于MCP实现的RAG系统代表了知识库建设的新方向。通过模型上下文协议，我们不仅解决了传统RAG系统中的诸多痛点，还为企业提供了一种低成本、高效率的知识管理方案。</span></p><p style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span>未来，随着大模型技术的进步和MCP标准的完善，我们可以期待更多创新功能的出现：</span></p><ul style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);list-style:circle;margin:0;padding:0 0 0 1em;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;color:rgb(63,63,63)\\\"><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>• 多模态内容的支持（图像、音频、视频等）</span></div></li><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>• 更精准的实时知识更新机制</span></div></li><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>• 基于用户反馈的自适应检索优化</span></div></li></ul><p style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span>对于企业而言，现在正是开始探索和应用这一技术的最佳时机。通过MCP-RAG，企业可以充分挖掘自身知识资产的价值，为员工和客户提供更智能、更精准的信息服务。</span></p><h2 style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);font-size:18px;font-weight:bold;margin:4em auto 2em;text-align:center;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;display:table;padding:0 0.2em;color:rgb(255,255,255);background:rgb(0,152,116)\\\"><span>参考资源</span></h2><ol style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);list-style:none;margin:0;padding:0 0 0 1em;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;color:rgb(63,63,63)\\\"><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>1. </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;color: rgb(87, 107, 149);\\\"><span>模型上下文协议(MCP)官方文档</span><sup style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-size: 11.25px;line-height: 0;vertical-align: baseline;top: -0.5em;\\\"><span>[2]</span></sup></span></div></li><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>2. </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;color: rgb(87, 107, 149);\\\"><span>Milvus向量数据库可视化客户端Attu</span><sup style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-size: 11.25px;line-height: 0;vertical-align: baseline;top: -0.5em;\\\"><span>[3]</span></sup></span></div></li><li style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;text-indent: -1em;display: block;margin: 0.2em 8px;color: rgb(63, 63, 63);\\\"><div><span>3. </span><span style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;color: rgb(87, 107, 149);\\\"><span>MCP-RAG实战代码仓库</span><sup style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-size: 11.25px;line-height: 0;vertical-align: baseline;top: -0.5em;\\\"><span>[4]</span></sup></span></div></li></ol><hr style=\\\"box-sizing: border-box;border-width: 2px 0px 0px;border-style: solid;border-color: rgba(0, 0, 0, 0.1);height: 0.4em;color: inherit;margin: 1.5em 0px;text-align: left;line-height: 1.75;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;transform-origin: 0px 0px;transform: scale(1, 0.5);\\\"/><p style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);margin:1.5em 8px;text-align:justify;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:15px;letter-spacing:0.1em;color:rgb(63,63,63)\\\"><span>欢迎感兴趣的开发者访问项目仓库，体验和改进这一开源解决方案： https://github.com/FlyAIBox/mcp-in-action/tree/rag_0.1.1/mcp-rag</span></p><h4 style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);font-size:15px;font-weight:bold;margin:2em 8px 0.5em;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;color:rgb(0,152,116)\\\"><span>引用链接</span></h4><p style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);margin:0.5em 8px;text-align:left;line-height:1.75;font-family:-apple-system-font,BlinkMacSystemFont,&quot;Helvetica Neue&quot;,&quot;PingFang SC&quot;,&quot;Hiragino Sans GB&quot;,&quot;Microsoft YaHei UI&quot;,&quot;Microsoft YaHei&quot;,Arial,sans-serif;font-size:12px;color:rgb(63,63,63)\\\"><code style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, &quot;Liberation Mono&quot;, &quot;Courier New&quot;, monospace;font-feature-settings: normal;font-variation-settings: normal;font-size: 10.8px;opacity: 0.6;\\\"><span>[1]</span></code><span> alibabacloud-tablestore-mcp-server: </span><i style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);word-break: break-all;\\\"><span>https://github.com/aliyun/alibabacloud-tablestore-mcp-server</span></i><span><br/></span><code style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, &quot;Liberation Mono&quot;, &quot;Courier New&quot;, monospace;font-feature-settings: normal;font-variation-settings: normal;font-size: 10.8px;opacity: 0.6;\\\"><span>[2]</span></code><span> 模型上下文协议(MCP)官方文档: </span><i style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);word-break: break-all;\\\"><span>https://modelcontextprotocol.io/introduction</span></i><span><br/></span><code style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, &quot;Liberation Mono&quot;, &quot;Courier New&quot;, monospace;font-feature-settings: normal;font-variation-settings: normal;font-size: 10.8px;opacity: 0.6;\\\"><span>[3]</span></code><span> Milvus向量数据库可视化客户端Attu: </span><i style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);word-break: break-all;\\\"><span>https://milvus.io/docs/zh/quickstart_with_attu.md</span></i><span><br/></span><code style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, &quot;Liberation Mono&quot;, &quot;Courier New&quot;, monospace;font-feature-settings: normal;font-variation-settings: normal;font-size: 10.8px;opacity: 0.6;\\\"><span>[4]</span></code><span> MCP-RAG实战代码仓库: </span><i style=\\\"box-sizing: border-box;border-width: 0px;border-style: solid;border-color: rgb(229, 229, 229);word-break: break-all;\\\"><span>https://github.com/FlyAIBox/mcp-in-action/tree/rag_0.1.1/mcp-rag</span></i><span><br/></span></p></div><p style=\\\"box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(229,229,229);margin:0;color:rgb(10,10,10);font-family:ui-sans-serif,system-ui,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,&quot;Segoe UI Symbol&quot;,&quot;Noto Color Emoji&quot;;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;orphans:2;text-align:start;text-indent:0;text-transform:none;widows:2;word-spacing:0;-webkit-text-stroke-width:0;white-space:normal;background-color:rgb(255,255,255);text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial;font-size:0;line-height:0\\\"><span> </span></p><p style=\\\"margin:0;margin-bottom:0\\\"><span><br/></span></p><p style=\\\"margin:0;text-align:center;margin-bottom:0\\\"><span><span style=\\\"font-size: 16px;\\\"> 如果想知道更多好玩、有用的AI大模型，欢迎留言或加群一起探讨！</span></span></p><div style=\\\"margin-bottom:unset;\\\"><div style=\\\"background-image: url(&quot;https://mmbiz.qpic.cn/mmbiz_png/Ljib4So7yuWgic8DFicPsXTZMxlcRdwhB1SHyKNiapNJnLLvSCo1uqzNCzMWiam86CEugu0nzdO8aRgwvdYBYkwfFHA/640?wx_fmt=png&quot;);background-repeat: no-repeat;background-position: 50% 50%;background-size: 100% 100%;padding: 28px 24px 20px;margin-right: 10px;margin-left: 10px;margin-bottom: unset;\\\"><div style=\\\"display:flex;justify-content:center;align-items:center;margin-bottom:unset;\\\"><div style=\\\"width:114px;margin-bottom:unset;\\\"><div><img src=\\\":/ac18f1f830d5423d82da1c00a61c9bbf\\\" type=\\\"image/jpeg\\\" data-filename=\\\"640.jpg\\\" alt=\\\"图片\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;width: 114px;__visibility: visible !important;height: auto !important;\\\"/></div></div><div style=\\\"margin-left:15px;margin-bottom:unset;text-align:center;\\\"><div style=\\\"display:flex;justify-content:center;align-items:center;margin-bottom:unset;\\\"><div style=\\\"margin-right: 10px;margin-left: 10px;\\\"><p style=\\\"margin:0;color:#343434;font-size:16px;letter-spacing:2px\\\"><span style=\\\"color: rgb(61, 167, 66);\\\"><strong><span>萤火AI百宝箱</span></strong></span></p></div></div><div style=\\\"margin-top:8px;margin-bottom:unset;\\\"><p style=\\\"margin:0;letter-spacing:3px;color:rgb(1,1,0);font-size:12px\\\"><span style=\\\"color:#000000e5;\\\"><span>行业洞察 | 技术解析 | 应用实践</span></span></p><p style=\\\"margin:0\\\"><span style=\\\"font-size:12px;\\\"><span>  与AI同行，和优秀的人一起成长！</span></span></p></div></div></div></div><div><img src=\\\":/14593a23899f471fbd91c75507993b17\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" alt=\\\"图片\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;__visibility: visible !important;width: 677px !important;height: auto !important;\\\"/></div></div><div style=\\\"margin-bottom: 8px;\\\"><span><br/></span></div><div style=\\\"margin-bottom: 0px;caret-color: rgba(0, 0, 0, 0);text-wrap: wrap;outline: 0px;color: rgb(34, 34, 34);font-family: system-ui, -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;background-color: rgb(255, 255, 255);\\\"><div style=\\\"margin: 20px auto;outline: 0px;\\\"><div style=\\\"outline: 0px;display: flex;justify-content: center;transform: translateZ(10px);\\\"><div style=\\\"padding-right: 4px;padding-left: 4px;outline: 0px;border-right: 4px solid rgb(255, 205, 69);border-left: 4px solid rgb(255, 205, 69);transform: skew(-15deg);\\\"><div style=\\\"outline: 0px;background-color: rgb(119, 215, 247);\\\"><div style=\\\"padding-right: 5px;padding-left: 5px;outline: 0px;font-size: 20px;color: rgb(255, 255, 255);text-align: center;transform: skew(15deg);\\\"><span style=\\\"outline: 0px;font-size: 15px;\\\"><strong style=\\\"outline: 0px;\\\"><span>END</span></strong></span></div></div></div></div></div></div><div style=\\\"margin-right: 16px;margin-bottom: 0px;margin-left: 16px;max-width: 677px;text-indent: 0em;caret-color: rgba(0, 0, 0, 0);text-wrap: wrap;outline: 0px;font-variant-numeric: normal;font-variant-east-asian: normal;font-size: 15px;background-color: rgb(255, 255, 255);color: rgb(56, 54, 53);font-family: 微软雅黑;letter-spacing: 1.8px;min-height: 15px;text-align: center;line-height: 1.75em;\\\"><span style=\\\"outline: 0px;color: rgb(0, 0, 0);letter-spacing: 1px;\\\"><strong style=\\\"outline: 0px;letter-spacing: 0.5px;\\\"><span>➤  往期精彩回顾</span></strong></span></div><div style=\\\"margin-right: 16px;margin-bottom: 0px;margin-left: 16px;text-indent: 0em;caret-color: rgba(0, 0, 0, 0);text-wrap: wrap;font-size: 15px;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;background-color: rgb(255, 255, 255);min-height: 1em;line-height: 1.75em;\\\"><span><br/></span></div><div style=\\\"margin-right: 16px;margin-bottom: 0px;margin-left: 16px;max-width: 677px;text-indent: 0em;caret-color: rgba(0, 0, 0, 0);text-wrap: wrap;font-variant-numeric: normal;font-variant-east-asian: normal;font-size: 15px;background-color: rgb(255, 255, 255);color: rgb(112, 114, 117);font-family: 微软雅黑;letter-spacing: 1.8px;line-height: 1.75em;\\\"><div style=\\\"margin-right: 5px;margin-bottom: 5px;max-width: 677px;display: inline-block;\\\"><span><img src=\\\":/21080a7572754f90bce25a59b1b8ff63\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;max-width: 28.8px;vertical-align: middle;__visibility: visible !important;width: 28.8px !important;height: auto !important;\\\" width=\\\"1.8\\\"/></span></div><div style=\\\"max-width: 677px;background-color: rgb(51, 51, 51);display: inline-block;height: 2px;width: 233.5px;\\\"><span><br/></span></div></div><div style=\\\"margin: -9.6px 14.4px;padding: 5px 10px;max-width: 677px;letter-spacing: 0.578px;caret-color: rgba(0, 0, 0, 0);text-wrap: wrap;font-variant-numeric: normal;font-variant-east-asian: normal;font-size: 16px;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;background-color: rgb(255, 255, 255);border-left: 2px solid rgb(51, 51, 51);border-right: 2px solid rgb(51, 51, 51);line-height: 30px;text-align: left;\\\"><div style=\\\"margin-right: 16px;margin-left: 16px;max-width: 677px;font-variant-numeric: normal;font-variant-east-asian: normal;text-indent: 0em;letter-spacing: 1.8px;color: rgb(112, 114, 117);font-family: 微软雅黑;font-size: 15px;line-height: 1.75em;\\\"><span><br/></span></div><ul style=\\\"margin:0;list-style-type:disc\\\"><li><p style=\\\"margin:0\\\"><em style=\\\"color: rgb(63, 63, 63);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;letter-spacing: 0.544px;\\\"><span style=\\\"color: rgb(122, 68, 66);font-weight: 700;letter-spacing: normal;text-align: center;widows: 1;word-spacing: 0.8px;caret-color: rgb(51, 51, 51);\\\"><span><a href=\\\"http://mp.weixin.qq.com/s?__biz=MzkzODUxMTY1Mg==&amp;mid=2247486496&amp;idx=1&amp;sn=87ba44bfb5313a85723fdd5631f6ddaa&amp;chksm=c2fe506bf589d97da9dd33fc85af00ef3218f6a40af9c86a7460ba8d515bf071a87f64f92a7f&amp;scene=21#wechat_redirect\\\" style=\\\"\\\" target=\\\"_blank\\\">【智算101】为什么用好大模型，离不开&quot;向量数据库&quot;呢</a></span></span></em></p></li><li><p style=\\\"margin:0;outline:0;letter-spacing:0.544px;font-family:Optima-Regular,Optima,PingFangSC-light,PingFangTC-light,&quot;PingFang SC&quot;,Cambria,Cochin,Georgia,Times,&quot;Times New Roman&quot;,serif;color:rgb(63,63,63);__visibility:visible\\\"><em><span style=\\\"color: rgb(122, 68, 66);font-weight: 700;letter-spacing: normal;text-align: center;widows: 1;word-spacing: 0.8px;caret-color: rgb(51, 51, 51);\\\"><span><a href=\\\"http://mp.weixin.qq.com/s?__biz=MzkzODUxMTY1Mg==&amp;mid=2247486505&amp;idx=1&amp;sn=5def2191ff429d6d7616620c92b9bc07&amp;chksm=c2fe5062f589d974f2ad61f6dc496915b663ae2110febb2cb4d2177f5c5332f5e91dd75e705b&amp;scene=21#wechat_redirect\\\" style=\\\"\\\" target=\\\"_blank\\\">【智算101】理解单、双、多精度计算，提升科学计算效率</a></span></span></em></p></li><li><p style=\\\"margin:0;outline:0;letter-spacing:0.544px;font-family:Optima-Regular,Optima,PingFangSC-light,PingFangTC-light,&quot;PingFang SC&quot;,Cambria,Cochin,Georgia,Times,&quot;Times New Roman&quot;,serif;color:rgb(63,63,63);__visibility:visible\\\"><em><span style=\\\"color: rgb(122, 68, 66);font-weight: 700;letter-spacing: normal;text-align: center;widows: 1;word-spacing: 0.8px;caret-color: rgb(51, 51, 51);\\\"><span><a href=\\\"http://mp.weixin.qq.com/s?__biz=MzkzODUxMTY1Mg==&amp;mid=2247486523&amp;idx=1&amp;sn=4fe59e49b57de65c0e91f76bd1e29595&amp;chksm=c2fe5070f589d966aac768e5bc01cef8e70263aab5b20e63d2c026e8faff5d76e1626592f7e3&amp;scene=21#wechat_redirect\\\" style=\\\"\\\" target=\\\"_blank\\\">【智算101】词嵌入神通广大,文本分析/情感分析/知识图谱应有尽有</a></span></span></em><em style=\\\"letter-spacing: 0.544px;\\\"></em></p></li><li><p style=\\\"margin:0;outline:0;letter-spacing:0.544px;font-family:Optima-Regular,Optima,PingFangSC-light,PingFangTC-light,&quot;PingFang SC&quot;,Cambria,Cochin,Georgia,Times,&quot;Times New Roman&quot;,serif;color:rgb(63,63,63);__visibility:visible\\\"><em><span style=\\\"color: rgb(122, 68, 66);font-weight: 700;letter-spacing: normal;text-align: center;widows: 1;word-spacing: 0.8px;caret-color: rgb(51, 51, 51);\\\"><span><a href=\\\"http://mp.weixin.qq.com/s?__biz=MzkzODUxMTY1Mg==&amp;mid=2247486431&amp;idx=1&amp;sn=7b8ec84cb7714ba2f6ed813de00e4158&amp;chksm=c2fe5794f589de82c949d9e28acb156dfcf1745797a1b62096f263482ee4bb7ba9fd1f5a2dc6&amp;scene=21#wechat_redirect\\\" style=\\\"\\\" target=\\\"_blank\\\">【智算101】算力基础：模型参数与显存占用计算方法</a></span></span></em></p></li><li><p style=\\\"margin:0;outline:0;letter-spacing:0.544px;font-family:Optima-Regular,Optima,PingFangSC-light,PingFangTC-light,&quot;PingFang SC&quot;,Cambria,Cochin,Georgia,Times,&quot;Times New Roman&quot;,serif;color:rgb(63,63,63);__visibility:visible\\\"><em><span style=\\\"color: rgb(122, 68, 66);font-weight: 700;letter-spacing: normal;text-align: center;widows: 1;word-spacing: 0.8px;caret-color: rgb(51, 51, 51);\\\"><span><a href=\\\"http://mp.weixin.qq.com/s?__biz=MzkzODUxMTY1Mg==&amp;mid=2247486183&amp;idx=1&amp;sn=4615fb3acb45fcdac262baffecc64599&amp;chksm=c2fe56acf589dfbadc693325219d37666bda50bb828dac928208e7ebcdbab1c1d8ab2d38f571&amp;scene=21#wechat_redirect\\\" style=\\\"\\\" target=\\\"_blank\\\">大模型哪家强，拉出来比一比就知道</a></span></span></em></p></li><li><p style=\\\"margin:0;outline:0;letter-spacing:0.544px;font-family:Optima-Regular,Optima,PingFangSC-light,PingFangTC-light,&quot;PingFang SC&quot;,Cambria,Cochin,Georgia,Times,&quot;Times New Roman&quot;,serif;color:rgb(63,63,63);__visibility:visible\\\"><em><span style=\\\"color: rgb(122, 68, 66);font-weight: 700;letter-spacing: normal;text-align: center;widows: 1;word-spacing: 0.8px;caret-color: rgb(51, 51, 51);\\\"><span><a href=\\\"http://mp.weixin.qq.com/s?__biz=MzkzODUxMTY1Mg==&amp;mid=2247486637&amp;idx=1&amp;sn=b8ce7a64bb7ac0d3e45ab5a1e9eb690a&amp;chksm=c2fe50e6f589d9f0ea85fada081aedbd6b5d7060b0549a28e3efebe470e8aa833ffb96b6ad3b&amp;scene=21#wechat_redirect\\\" style=\\\"\\\" target=\\\"_blank\\\">【智算101】AI for Science，让科学研究变得更酷！</a></span></span></em></p></li><li><p style=\\\"margin:0;outline:0;letter-spacing:0.544px;font-family:Optima-Regular,Optima,PingFangSC-light,PingFangTC-light,&quot;PingFang SC&quot;,Cambria,Cochin,Georgia,Times,&quot;Times New Roman&quot;,serif;color:rgb(63,63,63);__visibility:visible\\\"><em><span style=\\\"color: rgb(122, 68, 66);font-weight: 700;letter-spacing: normal;text-align: center;widows: 1;word-spacing: 0.8px;caret-color: rgb(51, 51, 51);\\\"><span><a href=\\\"http://mp.weixin.qq.com/s?__biz=MzkzODUxMTY1Mg==&amp;mid=2247487438&amp;idx=1&amp;sn=399200dc87d7250380bbfddd92490d74&amp;chksm=c2fe5385f589da93f7b7627a31a19d916cf7692dbca798dcb9d00abb06cf3bafa8719fb4b703&amp;scene=21#wechat_redirect\\\" style=\\\"\\\" target=\\\"_blank\\\">【智算101】算力狂飙！10万卡GPU集群背后的硬核技术详解</a></span></span></em></p></li><li><p style=\\\"margin:0;outline:0;letter-spacing:0.544px;font-family:Optima-Regular,Optima,PingFangSC-light,PingFangTC-light,&quot;PingFang SC&quot;,Cambria,Cochin,Georgia,Times,&quot;Times New Roman&quot;,serif;color:rgb(63,63,63);__visibility:visible\\\"><em><span style=\\\"color: rgb(122, 68, 66);font-weight: 700;letter-spacing: normal;text-align: center;widows: 1;word-spacing: 0.8px;caret-color: rgb(51, 51, 51);\\\"><span><a href=\\\"http://mp.weixin.qq.com/s?__biz=MzkzODUxMTY1Mg==&amp;mid=2247487422&amp;idx=1&amp;sn=08566c7abf1d600a362e61d78857cb2e&amp;chksm=c2fe53f5f589dae31062c79a13157749822210ebf5b3239d9844a255565f02023f0bd907a0e8&amp;scene=21#wechat_redirect\\\" style=\\\"\\\" target=\\\"_blank\\\">【智算101】大模型时代：打工、创业，还是读博</a></span></span></em></p></li><li><p style=\\\"margin:0;outline:0;letter-spacing:0.544px;font-family:Optima-Regular,Optima,PingFangSC-light,PingFangTC-light,&quot;PingFang SC&quot;,Cambria,Cochin,Georgia,Times,&quot;Times New Roman&quot;,serif;color:rgb(63,63,63);__visibility:visible\\\"><em><span style=\\\"color: rgb(122, 68, 66);font-weight: 700;letter-spacing: normal;text-align: center;widows: 1;word-spacing: 0.8px;caret-color: rgb(51, 51, 51);\\\"><span><a href=\\\"http://mp.weixin.qq.com/s?__biz=MzkzODUxMTY1Mg==&amp;mid=2247487396&amp;idx=1&amp;sn=cb46ec563be5daf3cfb80fd209ddd9f8&amp;chksm=c2fe53eff589daf936a85ba6383f26e8de05cdf4cf583782a3eb873a73524fd95cfffba45933&amp;scene=21#wechat_redirect\\\" style=\\\"\\\" target=\\\"_blank\\\">必备的8个AI神器，工作效率提升300%</a></span></span></em></p></li><li><p style=\\\"margin:0;outline:0;letter-spacing:0.544px;font-family:Optima-Regular,Optima,PingFangSC-light,PingFangTC-light,&quot;PingFang SC&quot;,Cambria,Cochin,Georgia,Times,&quot;Times New Roman&quot;,serif;color:rgb(63,63,63);__visibility:visible\\\"><em><span style=\\\"color: rgb(122, 68, 66);font-weight: 700;letter-spacing: normal;text-align: center;widows: 1;word-spacing: 0.8px;caret-color: rgb(51, 51, 51);\\\"><span><a href=\\\"http://mp.weixin.qq.com/s?__biz=MzkzODUxMTY1Mg==&amp;mid=2247487467&amp;idx=1&amp;sn=d02411195ea900a61a5a154c6f59aa54&amp;chksm=c2fe53a0f589dab634684254f51b0593dfc7df2902e30898b1e8a0ddbd8ac101a96600906fbc&amp;scene=21#wechat_redirect\\\" style=\\\"\\\" target=\\\"_blank\\\">【智算101】大模型时代：一切数据Token化</a></span></span></em></p></li><li><p style=\\\"margin:0;outline:0;letter-spacing:0.544px;font-family:Optima-Regular,Optima,PingFangSC-light,PingFangTC-light,&quot;PingFang SC&quot;,Cambria,Cochin,Georgia,Times,&quot;Times New Roman&quot;,serif;color:rgb(63,63,63);__visibility:visible\\\"><em><span style=\\\"color: rgb(122, 68, 66);font-weight: 700;letter-spacing: normal;text-align: center;widows: 1;word-spacing: 0.8px;caret-color: rgb(51, 51, 51);\\\"><span><a href=\\\"http://mp.weixin.qq.com/s?__biz=MzkzODUxMTY1Mg==&amp;mid=2247487607&amp;idx=1&amp;sn=276cf1afef224e52e8a755f3075cf4fe&amp;chksm=c2fe4c3cf589c52ab873fe1042ff31c565c5374d49d7d199a9a67bd8617053f29a8a55d4ecb7&amp;scene=21#wechat_redirect\\\" style=\\\"\\\" target=\\\"_blank\\\">【智算101】一文收藏｜大模型技术全景图表</a></span></span></em></p></li><li><p style=\\\"margin:0;outline:0;letter-spacing:0.544px;font-family:Optima-Regular,Optima,PingFangSC-light,PingFangTC-light,&quot;PingFang SC&quot;,Cambria,Cochin,Georgia,Times,&quot;Times New Roman&quot;,serif;color:rgb(63,63,63);__visibility:visible\\\"><em><span style=\\\"color: rgb(122, 68, 66);font-weight: 700;letter-spacing: normal;text-align: center;widows: 1;word-spacing: 0.8px;caret-color: rgb(51, 51, 51);\\\"><span><a href=\\\"http://mp.weixin.qq.com/s?__biz=MzkzODUxMTY1Mg==&amp;mid=2247487627&amp;idx=1&amp;sn=daf09e8e9cf597c67189e65e704bd31c&amp;chksm=c2fe4cc0f589c5d6a5e3ce2f3fc5de937f0f26dd2a3db2060cd81d4f413f36de07778130fcc8&amp;scene=21#wechat_redirect\\\" style=\\\"\\\" target=\\\"_blank\\\">大模型部署不再难，手把手教你选对推理工具！</a></span></span></em></p></li><li><p style=\\\"margin:0;outline:0;letter-spacing:0.544px;font-family:Optima-Regular,Optima,PingFangSC-light,PingFangTC-light,&quot;PingFang SC&quot;,Cambria,Cochin,Georgia,Times,&quot;Times New Roman&quot;,serif;color:rgb(63,63,63);__visibility:visible\\\"><em><span style=\\\"color: rgb(122, 68, 66);font-weight: 700;letter-spacing: normal;text-align: center;widows: 1;word-spacing: 0.8px;caret-color: rgb(51, 51, 51);\\\"><span><a href=\\\"https://mp.weixin.qq.com/s?__biz=MzkzODUxMTY1Mg==&amp;mid=2247487978&amp;idx=1&amp;sn=e947be96130be13a34f45cd371b9d1e7&amp;scene=21#wechat_redirect\\\" style=\\\"\\\" target=\\\"_blank\\\">从“聪明工具”到“万能助手”：全景解读AI Agents生态版图</a></span></span></em></p></li><li><p style=\\\"margin:0;outline:0;letter-spacing:0.544px;font-family:Optima-Regular,Optima,PingFangSC-light,PingFangTC-light,&quot;PingFang SC&quot;,Cambria,Cochin,Georgia,Times,&quot;Times New Roman&quot;,serif;color:rgb(63,63,63);__visibility:visible\\\"><em><span style=\\\"color: rgb(122, 68, 66);font-weight: 700;letter-spacing: normal;text-align: center;widows: 1;word-spacing: 0.8px;caret-color: rgb(51, 51, 51);\\\"><span><a href=\\\"https://mp.weixin.qq.com/s?__biz=MzkzODUxMTY1Mg==&amp;mid=2247488280&amp;idx=1&amp;sn=dcd741b0e4d885a3ab79fc000fed5940&amp;scene=21#wechat_redirect\\\" style=\\\"\\\" target=\\\"_blank\\\">不捧杀！冷静看待DeepSeek的创新与机遇</a></span></span></em></p></li><li><p style=\\\"margin:0;outline:0;letter-spacing:0.544px;font-family:Optima-Regular,Optima,PingFangSC-light,PingFangTC-light,&quot;PingFang SC&quot;,Cambria,Cochin,Georgia,Times,&quot;Times New Roman&quot;,serif;color:rgb(63,63,63);__visibility:visible\\\"><em><span style=\\\"color: rgb(122, 68, 66);font-weight: 700;letter-spacing: normal;text-align: center;widows: 1;word-spacing: 0.8px;caret-color: rgb(51, 51, 51);\\\"><span><a href=\\\"https://mp.weixin.qq.com/s?__biz=MzkzODUxMTY1Mg==&amp;mid=2247488406&amp;idx=2&amp;sn=cd858aa554cae3c0fcf427d528bfc8c4&amp;scene=21#wechat_redirect\\\" style=\\\"\\\" target=\\\"_blank\\\">生活化案例解读：DeepSeek开源的5大AI黑科技</a></span></span></em></p></li><li><p style=\\\"margin:0;outline:0;letter-spacing:0.544px;font-family:Optima-Regular,Optima,PingFangSC-light,PingFangTC-light,&quot;PingFang SC&quot;,Cambria,Cochin,Georgia,Times,&quot;Times New Roman&quot;,serif;color:rgb(63,63,63);__visibility:visible\\\"><em><span style=\\\"color: rgb(122, 68, 66);font-weight: 700;letter-spacing: normal;text-align: center;widows: 1;word-spacing: 0.8px;caret-color: rgb(51, 51, 51);\\\"><span><a href=\\\"https://mp.weixin.qq.com/s?__biz=MzkzODUxMTY1Mg==&amp;mid=2247488483&amp;idx=1&amp;sn=d384fd9d8c29551de18b351fa1c2dcf2&amp;scene=21#wechat_redirect\\\" style=\\\"\\\" target=\\\"_blank\\\">企业级RAG全解析：实现精准、安全、高效智能客服</a></span></span></em></p></li><li><p style=\\\"margin:0;outline:0;letter-spacing:0.544px;font-family:Optima-Regular,Optima,PingFangSC-light,PingFangTC-light,&quot;PingFang SC&quot;,Cambria,Cochin,Georgia,Times,&quot;Times New Roman&quot;,serif;color:rgb(63,63,63);__visibility:visible\\\"><em><span style=\\\"color: rgb(122, 68, 66);font-weight: 700;letter-spacing: normal;text-align: center;widows: 1;word-spacing: 0.8px;caret-color: rgb(51, 51, 51);\\\"><span><a href=\\\"https://mp.weixin.qq.com/s?__biz=MzkzODUxMTY1Mg==&amp;mid=2247488445&amp;idx=1&amp;sn=182d76cecf7f8c12861e6defd792bca6&amp;scene=21#wechat_redirect\\\" style=\\\"\\\" target=\\\"_blank\\\">大模型应用落地：三道鸿沟，九大陷阱</a></span></span></em></p></li><li><p style=\\\"margin:0;outline:0;letter-spacing:0.544px;font-family:Optima-Regular,Optima,PingFangSC-light,PingFangTC-light,&quot;PingFang SC&quot;,Cambria,Cochin,Georgia,Times,&quot;Times New Roman&quot;,serif;color:rgb(63,63,63);__visibility:visible\\\"><em><span style=\\\"color: rgb(122, 68, 66);font-weight: 700;letter-spacing: normal;text-align: center;widows: 1;word-spacing: 0.8px;caret-color: rgb(51, 51, 51);\\\"><span><a href=\\\"https://mp.weixin.qq.com/s?__biz=MzkzODUxMTY1Mg==&amp;mid=2247488532&amp;idx=1&amp;sn=3f8a88e87efb108142637b0898fe95ac&amp;scene=21#wechat_redirect\\\" style=\\\"\\\" target=\\\"_blank\\\">RAGFlow 进阶：架构剖析与调试技巧</a></span></span></em></p></li><li><p style=\\\"margin:0;outline:0;letter-spacing:0.544px;font-family:Optima-Regular,Optima,PingFangSC-light,PingFangTC-light,&quot;PingFang SC&quot;,Cambria,Cochin,Georgia,Times,&quot;Times New Roman&quot;,serif;color:rgb(63,63,63);__visibility:visible\\\"><em><span style=\\\"color: rgb(122, 68, 66);font-weight: 700;letter-spacing: normal;text-align: center;widows: 1;word-spacing: 0.8px;caret-color: rgb(51, 51, 51);\\\"><span><a href=\\\"https://mp.weixin.qq.com/s?__biz=MzkzODUxMTY1Mg==&amp;mid=2247488606&amp;idx=1&amp;sn=5e853a8d543b902f6b71b2b5e4936031&amp;scene=21#wechat_redirect\\\" style=\\\"\\\" target=\\\"_blank\\\">MCP实战入门：让AI模型获取实时天气信息</a></span></span></em></p></li><li><p style=\\\"margin:0;outline:0;letter-spacing:0.544px;font-family:Optima-Regular,Optima,PingFangSC-light,PingFangTC-light,&quot;PingFang SC&quot;,Cambria,Cochin,Georgia,Times,&quot;Times New Roman&quot;,serif;color:rgb(63,63,63);__visibility:visible\\\"><em><span style=\\\"color: rgb(122, 68, 66);font-weight: 700;letter-spacing: normal;text-align: center;widows: 1;word-spacing: 0.8px;caret-color: rgb(51, 51, 51);\\\"><span><a href=\\\"https://mp.weixin.qq.com/s?__biz=MzkzODUxMTY1Mg==&amp;mid=2247488633&amp;idx=1&amp;sn=a282ba4b24fd2480a51677cd517d1d31&amp;scene=21#wechat_redirect\\\" style=\\\"\\\" target=\\\"_blank\\\">MCP实战进阶：集成DeepSeek模型与MCP的天气信息助手</a></span></span></em><em style=\\\"letter-spacing: 0.544px;\\\"><span style=\\\"color: rgb(122, 68, 66);font-weight: 700;letter-spacing: normal;text-align: center;widows: 1;word-spacing: 0.8px;caret-color: rgb(51, 51, 51);\\\"></span></em></p></li></ul><div style=\\\"margin-right: 16px;margin-left: 16px;max-width: 677px;font-variant-numeric: normal;font-variant-east-asian: normal;text-indent: 0em;letter-spacing: 1.8px;color: rgb(112, 114, 117);font-family: 微软雅黑;font-size: 15px;line-height: 1.75em;\\\"><span style=\\\"letter-spacing: 1.8px;color: rgb(0, 0, 0);\\\"></span></div></div><div style=\\\"margin-right: 16px;margin-bottom: 0px;margin-left: 16px;max-width: 677px;text-indent: 0em;caret-color: rgba(0, 0, 0, 0);text-wrap: wrap;font-variant-numeric: normal;font-variant-east-asian: normal;font-size: 15px;background-color: rgb(255, 255, 255);color: rgb(112, 114, 117);font-family: 微软雅黑;letter-spacing: 1.8px;text-align: right;vertical-align: top;line-height: 1.75em;\\\"><div style=\\\"max-width: 677px;background-color: rgb(51, 51, 51);display: inline-block;height: 2px;text-align: left;width: 233.5px;\\\"><span><br/></span></div><div style=\\\"margin-top: 5px;margin-left: 5px;max-width: 677px;display: inline-block;text-align: left;\\\"><span><img src=\\\":/3f2684a6ee6642d78c0aa41cba0d2f4f\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks:%7B%22align%22%3A%22center%22%7D;max-width: 28.8px;vertical-align: middle;__visibility: visible !important;width: 28.8px !important;height: auto !important;\\\" width=\\\"1.8\\\"/></span></div></div><p style=\\\"margin:0;margin-bottom:0;letter-spacing:0.578px;caret-color:rgba(0,0,0,0);text-wrap:wrap;text-align:center\\\"><span><br/></span></p><p style=\\\"margin:0;margin-bottom:0;letter-spacing:0.578px;caret-color:rgba(0,0,0,0);text-wrap:wrap;text-align:center\\\"><span><img src=\\\":/2adbbe8f3ea846fb80159916cc696110\\\" type=\\\"image/gif\\\" data-filename=\\\"640.gif\\\" style=\\\"--en-marks:%7B%22link%22%3A%22http%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMzkzODUxMTY1Mg%3D%3D%26mid%3D2247486496%26idx%3D1%26sn%3D87ba44bfb5313a85723fdd5631f6ddaa%26chksm%3Dc2fe506bf589d97da9dd33fc85af00ef3218f6a40af9c86a7460ba8d515bf071a87f64f92a7f%26scene%3D21%23wechat_redirect%22%2C%22align%22%3A%22center%22%7D;\\\"/></span></p></div></div></div></div></div></span>\\\n</div></body></html>\\u0000\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":194813}]"
metadata_diff: {"new":{"id":"9aabf76a3a0147de8fa38a6713d3c0b2","parent_id":"f67288c3a0be4374b5d532b5dcc3aabc","latitude":"0.00000000","longitude":"0.00000000","altitude":"0.0000","author":"","source_url":"","is_todo":0,"todo_due":0,"todo_completed":0,"source":"joplin-desktop","source_application":"net.cozic.joplin-desktop","application_data":"","order":1764348823725,"markup_language":2,"is_shared":0,"share_id":"","conflict_original_id":"","master_key_id":"","user_data":"","deleted_time":0},"deleted":[]}
encryption_cipher_text: 
encryption_applied: 0
updated_time: 2025-11-28T21:03:59.988Z
created_time: 2025-11-28T21:03:59.988Z
type_: 13