id: a31d02150d5849ceb9db115e5b74edde
parent_id: 
item_type: 1
item_id: 19fa402839924afa97786dc0c900d034
item_updated_time: 1764345627477
title_diff: "[{\"diffs\":[[1,\"CherryStudio知识库详细设置教程\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":21}]"
body_diff: "[{\"diffs\":[[1,\"<html>\\\r\\\n<head>\\\r\\\n  <title>CherryStudio知识库详细设置教程</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=\\\"39873\\\"></a>\\\r\\\n<h1>CherryStudio知识库详细设置教程</h1>\\\r\\\n\\\r\\\n<div><span style=\\\"\\\"><div style=\\\"max-width: 700px;\\\"><p></p><div style=\\\"--en-blockquote: true; box-sizing: border-box; border-left: 3px solid #b4c0cc; background-position: initial initial; background-repeat: initial initial;\\\"><div>原文链接: <a href=\\\"http://mp.weixin.qq.com/s?__biz=MjM5MzIwMTI3MA==&amp;mid=2457288723&amp;idx=1&amp;sn=6fdf5a55eed1aa419029dbb7f8c95d17&amp;chksm=b05183d0fdf8081bf8dd28e367e85569225c53aabb8a1701890516b475a90d9f8f2000c6da24&amp;mpshare=1&amp;scene=1&amp;srcid=0415gavf4CO9ARUda9NJiOjn&amp;sharer_shareinfo=b0c7de29c39403ad1ad66b703e0d87cf&amp;sharer_shareinfo_first=b0c7de29c39403ad1ad66b703e0d87cf#rd\\\"><span>http://mp.weixin.qq.com/s?__biz=MjM5MzIwMTI3MA==&amp;mid=2457288...</span></a></div></div><p></p><div style=\\\"\\\"><div><div><div><span style=\\\"\\\">原创</span><span><span style=\\\"\\\">靳浩</span></span><span><a style=\\\"\\\"> AI的回响 </a></span><span><em></em></span></div><div style=\\\"\\\"><p style=\\\"text-align: center;\\\"><span><img src=\\\":/583ccca847ee495b8d48275dbda70668\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; width: auto; height: 143px;\\\" width=\\\"auto\\\"/></span></p><p style=\\\"\\\"><span><br/></span></p><p style=\\\"text-align: center;\\\"><span><br/></span></p><div style=\\\"text-align: center;\\\"><span style=\\\"color: rgb(102, 102, 102);\\\"><span><span style=\\\"color: rgb(247, 113, 7); font-weight: normal;\\\">【原创版权，获取转载授权请加V：flatverse】</span></span></span><span><br/></span></div><div style=\\\"text-align: center;\\\"><span><br/></span></div><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); 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-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;\\\"><span></span></p><div style=\\\"box-sizing: border-box; border-width: 0px; border-style: solid; border-color: hsl(var(--border)); 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; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; text-align: left; background-color: rgba(214, 212, 214, 0.19);\\\"><div style=\\\"--en-blockquote: true; box-sizing: border-box; border-width: 0px 3px; border-style: none solid; border-right-color: rgba(0, 150, 136, 0.3); border-left-color: rgb(0, 150, 136); text-align: left; font-style: normal; border-radius: 6px; color: rgba(0, 0, 0, 0.5); background: rgba(0, 0, 0, 0.05);\\\"><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: left; display: block; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>字数 1916，阅读大约需 10 分钟</span></p></div><h1 style=\\\"box-sizing: border-box; border-width: 0 0 1px; border-style: solid; border-bottom-color: rgb(247,113,7); font-size: 22px; font-weight: bold; text-align: center; display: block; color: rgb(247,113,7); width: 333.4px; height: auto; text-indent: 0;\\\"><span>CherryStudio知识库设置</span></h1><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>最近，有好几位朋友问我关于CherryStudio知识库的设置问题。</span></p><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>虽然前面已经讨论过很多了，但是我仔细看了看，确实漏掉了一点没有说清楚，那就是知识库的参数设置问题，这一篇就再详细说一下。</span></p><h2 style=\\\"box-sizing: border-box; border-width: 0 0 0 4px; border-style: solid; border-left-color: rgb(0,150,136); font-size: 20px; font-weight: bold; text-align: center; display: table; color: rgb(247,113,7); background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: unset;\\\"><span>新建知识库</span></h2><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>在知识库界面选择“添加”，就会弹出添加知识库窗口。</span></p><div style=\\\"text-align: center;\\\"><img src=\\\":/c84aea1fbd634fcdb0ce260d29546a3a\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; width: auto; height: 272px;\\\" width=\\\"auto\\\"/></div><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>在这里，名字可以自己设置，嵌入模型如果你不知道选哪个，可以先选bge系列。</span></p><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>关于如何选择嵌入模型的问题，我打算放在近期发布的《<span style=\\\"color: rgb(0, 150, 136); font-weight: bold;\\\">知识库优化之路（三）</span>》里面，详细介绍。这里暂时先放一放，先继续今天的话题。</span></p><h2 style=\\\"box-sizing: border-box; border-width: 0 0 0 4px; border-style: solid; border-left-color: rgb(0,150,136); font-size: 20px; font-weight: bold; text-align: center; display: table; color: rgb(247,113,7); background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: unset;\\\"><span>知识库设置</span></h2><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>知识库添加完成之后，在模型信息那里，有一个设置按钮。</span></p><div style=\\\"text-align: center;\\\"><img src=\\\":/12acd3471dfc4b02aba0cb01aecc095c\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; width: auto; height: 125px;\\\" width=\\\"auto\\\"/></div><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>点击之后，就进入了知识库的设置界面。</span></p><div style=\\\"text-align: center;\\\"><img src=\\\":/21d6b2f83c7b4e37ba1ddb3b1cc0f2ec\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; width: auto; height: 676px;\\\" width=\\\"auto\\\"/></div><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>在这里可以看到，嵌入模型是无法再更改的。这就意味着，嵌入模型只能在新建知识库时选好。</span></p><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>如果实在想改，唯一的做法就是删除知识库，重新创建。</span></p><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>除了嵌入模型，知识库可以设置的参数其实不多，下面分别介绍。</span></p><h3 style=\\\"box-sizing: border-box; border-width: 0 0 0 3px; border-style: solid; border-left-color: rgb(0,150,136); font-weight: bold; text-align: left; color: rgb(247,113,7); background-color: unset;\\\"><span>1 请求文档分段数量</span></h3><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>这个应该很好理解吧，就是当你向大模型提问时如果添加了知识库，会有几个资料片段会和你的问题一起提交给大模型。</span></p><div style=\\\"text-align: center;\\\"><img src=\\\":/9e5e9217bd594b46a3ac71374f3c7e8d\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; width: auto; height: 116px;\\\" width=\\\"auto\\\"/></div><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>CherryStudio默认的设置是6段，最大值可以设置到30。</span></p><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>但是，这里绝不是越多越好！</span></p><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>因为它受到几个因素的限制。</span></p><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span><span style=\\\"color: rgb(0, 150, 136); font-weight: bold;\\\">第一，token消耗（金钱消耗）：</span></span></p><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>当你把鼠标放在问号上，就能看到CherryStudio官方的提示：</span><strong style=\\\"box-sizing: border-box; border-width: 0px; border-style: solid; border-color: hsl(var(--border)); font-weight: bold; text-align: left; color: rgb(0, 150, 136);\\\"><span>请求文档分段数量越多，附带的信息越多，但需要消耗的 Token 也越多</span></strong><span>。</span></p><div style=\\\"text-align: center;\\\"><img src=\\\":/364b8cb784e147079d544a4749d5adf5\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; width: auto; height: 141px;\\\" width=\\\"auto\\\"/></div><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>假如嵌入模型分段时每个片段是500个字，粗略计算按照500个token来说，30段就是15000个token。</span></p><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>参考DeepSeek官方价格（推理模型百万token4元），15000个token就是6分钱。</span></p><div style=\\\"text-align: center;\\\"><img src=\\\":/9a19685dda9145b38e79ce19186173e1\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; width: auto; height: 384px;\\\" width=\\\"auto\\\"/></div><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>当然你的对话也不可能只进行一轮，如果是多轮对话，即便考虑缓存命中的情况，几轮对话下来，消耗几毛钱还是有的。</span></p><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span><span style=\\\"color: rgb(0, 150, 136); font-weight: bold;\\\">第二，上下文长度限制。</span></span></p><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>如果你不理解什么是上下文长度，请现在就去补课：</span></p><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span><a href=\\\"https://mp.weixin.qq.com/s?__biz=MjM5MzIwMTI3MA==&amp;mid=2457288194&amp;idx=1&amp;sn=7c5e07b615daca35f1a81fc1957eafce&amp;scene=21#wechat_redirect\\\" style=\\\"\\\" target=\\\"_blank\\\"><span style=\\\"text-decoration: underline;\\\">用一个武侠故事，讲清DeepSeek最易被忽视的一个重要使用技巧</span></a></span></p><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>DeepSeek-R1的上下文长度是64k，也就是64000个token。</span></p><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>如果你第一轮输入就使用了超过15000token，那么你的对话进行不了几轮，总的上下文长度就会超过64000个。</span></p><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>上下文长度超标以后会有什么后果，如果你刚才去补过课，应该能理解。</span></p><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span><span style=\\\"color: rgb(0, 150, 136); font-weight: bold;\\\">第三，API接口限制。</span></span></p><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>有些API会限制每分钟使用的token总量。DeepSeek官方API没有限制，如果你使用的是硅基流动提供的DeepSeek接口，那就要注意了。</span></p><div style=\\\"text-align: center;\\\"><img src=\\\":/f5693709cf464c63badf1c4c82e62b80\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; width: auto; height: 557px;\\\" width=\\\"auto\\\"/></div><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>硅基流动官方对于普通版DeepSeek-R1的限制是TPM值 10000，也就是每分钟最多使用10000个token。（Pro版</span><span>DeepSeek-R1每分钟100万个，可以放心使用）</span></p><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>如果你提问时附带的资料就有15000个token，你猜你的问题还能成功发出去吗？</span></p><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>至于其他平台的API是否有这个限制，我暂时还没了解，大家实际使用时可以留意一下。</span></p><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span><span style=\\\"color: rgb(0, 150, 136); font-weight: bold;\\\">第四，匹配度的限制。</span></span></p><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>即便前面说的三个问题都不存在，也不是你想附带多少个片段都行的，因为还要考虑匹配度的问题，也就是下面要详细说的第二个参数。</span></p><h3 style=\\\"box-sizing: border-box; border-width: 0 0 0 3px; border-style: solid; border-left-color: rgb(0,150,136); font-weight: bold; text-align: left; color: rgb(247,113,7); background-color: unset;\\\"><span>2 匹配度阈值</span></h3><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>我之所以没有按照设置界面从上玩下依次介绍，而是把匹配度阈值放在第二个说，就是因为它和上一个参数（请求文档分段数量）一起，决定了最终大模型能收到几个片段。</span></p><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>匹配度阈值也很好理解，它就是一个筛选标准，<span style=\\\"color: rgb(0, 150, 136); font-weight: bold;\\\">只有匹配度高于某个百分比的片段才有资格被提交给给大模型</span>。</span></p><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>CherryStudio官方可能没有设置默认值，不过据我观察，有些匹配度只有30%多的片段也能被搜到，这种其实已经没有了参考价值。</span></p><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>这个参数的设置范围是0到1，0.1就是10%，0.5就是50%，1就是100%。这个相信大家都能理解。</span></p><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>一般情况下，<span style=\\\"color: #009688; font-weight: bold;\\\">匹配度阈值设置在70%（也就是0.7）比较合理</span>。</span></p><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>但是，如果你的知识库资料不够多，设置70%可能导致一条都匹配不到。这时候可以<span style=\\\"color: #009688; font-weight: bold;\\\">适当降低标准，设置成60%或者50%</span>。再低，参考价值就不高了，只会浪费token。</span></p><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>所以，因为有匹配度阈值，请求文档分段数量这个参数并不能完全决定最终提交给大模型的片段数量，而是它们两个共同决定的。</span></p><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>有些情况下，可能匹配到了10个符合匹配度阈值的片段，但是</span><span>请求文档分段数量设置是6个，那就只选匹配度最高的6个提交给大模型。</span></p><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>有些情况下，虽然设置的</span><span>请求文档分段数量设置是10个，但是只</span><span>匹配到了3个符合匹配度阈值的片段，</span><span>那就只把3个片段提交给大模型。</span></p><h3 style=\\\"box-sizing: border-box; border-width: 0 0 0 3px; border-style: solid; border-left-color: rgb(0,150,136); font-weight: bold; text-align: left; color: rgb(247,113,7); background-color: unset;\\\"><span>3 分段大小</span></h3><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>分段的问题，之前已经介绍过，相信大家都已经理解了。不理解什么是分段、为什么要分段的朋友，继续补课：</span></p><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span><a href=\\\"https://mp.weixin.qq.com/s?__biz=MjM5MzIwMTI3MA==&amp;mid=2457288648&amp;idx=1&amp;sn=21268d26905264ab1ed3f2c7dd5d2eb3&amp;scene=21#wechat_redirect\\\" style=\\\"\\\" target=\\\"_blank\\\"><span style=\\\"text-decoration: underline;\\\">泼冷水：CherryStudio+本地知识库，没你想的那么简单</span></a></span></p><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>分段大小指的就是每个片段的字数多少。这个参数，官方不建议修改，我也不建议修改。</span></p><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>因为分段太大，信息虽然可能更完整，但也可能附带一些无用的信息，影响大模型分析判断。</span></p><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>分段太小，搜索命中可能更精准，但也可能丢失一些信息，导致大模型判断不准。</span></p><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>很多嵌入模型会有一些智能化的算法，根据不同的文件类型和内容，自动调整片段长度。</span></p><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>另外，不同的嵌入模型，对于每个片段的长度要求也是不一样的。如果你设置的分段大小超过了嵌入模型的最大值，嵌入时必定会出问题。</span></p><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>所以，分段大小这个参数建议不要自己设定。</span></p><h3 style=\\\"box-sizing: border-box; border-width: 0 0 0 3px; border-style: solid; border-left-color: rgb(0,150,136); font-weight: bold; text-align: left; color: rgb(247,113,7); background-color: unset;\\\"><span>4 重叠大小</span></h3><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>重叠大小，和分段大小也有关系。</span></p><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>如果分段时过于简单粗暴，只是按照500每段的长度直接拆分，可能有很多句子、段落都会被从中间直接拆断，造成信息不完整。</span></p><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>为了解决这个问题，就允许相邻的两个片段，结尾和开头部分，有一定的内容重复，也就是重叠，这样就能减少有些句子被拆分的可能，在一定程度优化分拆效果。</span></p><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>在CherryStudio里，如果你想设置重叠大小的数值，那你就必须先设置分段大小。</span></p><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>因为刚才我们并不建议自己设置分段大小，所以，重叠大小这个参数，也不建议自己设定。</span></p><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>既然这两个值都没有设置，那也就可以忽略官方的提醒“分段大小和重叠大小修改只针对新添加的内容有效”。</span></p><p style=\\\"text-align: center;\\\"><span><img src=\\\":/55a151288ef14feebbe9099b35c83855\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; width: auto;\\\" width=\\\"auto\\\"/></span></p><h1 style=\\\"box-sizing: border-box; border-width: 0 0 1px; border-style: solid; border-bottom-color: rgb(247,113,7); font-size: 22px; font-weight: bold; text-align: center; display: block; color: rgb(247,113,7); width: 333.4px; height: auto; text-indent: 0;\\\"><span>总结</span></h1><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>以上详细介绍了CherryStudio知识库的设置问题，需要注意的是，<span style=\\\"color: #009688; font-weight: bold;\\\">每个知识库的设置是相互独立的，仅对当前知识库有效</span>。不同的知识库，可以根据需要分别设置。</span></p><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>如果你想提升本地知识库的使用效果，可以看一看我之前关于知识库优化的两篇教程：</span></p><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span><a href=\\\"https://mp.weixin.qq.com/s?__biz=MjM5MzIwMTI3MA==&amp;mid=2457288685&amp;idx=1&amp;sn=438df576d6c406b7ccf4a75ff9a7d9a4&amp;scene=21#wechat_redirect\\\" style=\\\"\\\" target=\\\"_blank\\\">知识库优化之路（一）：把PDF文件转成Markdown格式</a></span></p><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span><a href=\\\"https://mp.weixin.qq.com/s?__biz=MjM5MzIwMTI3MA==&amp;mid=2457288712&amp;idx=1&amp;sn=02cb95928e3946ff3614d75ece7c6c07&amp;scene=21#wechat_redirect\\\" style=\\\"\\\" target=\\\"_blank\\\">知识库优化之路（二）：喂给AI最喜欢的数据格式JSON</a></span></p><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>即将发布的《知识库优化之路（三）》里，我会从嵌入模型选择的角度，探讨如何提升优化知识库的使用效果。</span></p><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); text-align: justify; letter-spacing: 0.1em; color: rgb(63,63,63);\\\"><span>如果你想继续关注这个话题，或者想了解其他关于AI的基础知识、应用技巧、工具教程，可以关注本账号“</span><strong style=\\\"box-sizing: border-box; border-width: 0px; border-style: solid; border-color: hsl(var(--border)); font-weight: bold; text-align: left; color: rgb(0, 150, 136);\\\"><span>AI的回响</span></strong><span>”，我们一起学习交流！</span></p><p style=\\\"text-align: center;\\\"><span><img src=\\\":/e93c0ddaa5cd429ebdbb0f8710ec667b\\\" type=\\\"image/png\\\" data-filename=\\\"640.png\\\" style=\\\"--en-marks: %7B%22align%22%3A%22center%22%7D; width: auto; height: 221px;\\\" width=\\\"auto\\\"/></span></p><p style=\\\"text-align: center;\\\"></p><p style=\\\"text-align: center;\\\"><span style=\\\"color: rgb(247, 113, 7);\\\"><strong><span>&lt;完&gt;</span></strong></span><span><br/></span></p><hr style=\\\"border-style: solid; border-width: 1px 0 0; border-color: rgba(0,0,0,0.1); -webkit-transform-origin: 0 0; -webkit-transform: scale(1, 0.5); transform-origin: 0 0; transform: scale(1, 0.5);\\\"/><p style=\\\"text-align: center;\\\"><span><br/></span></p><div style=\\\"letter-spacing: 0.578px; text-align: center;\\\"><span style=\\\"color: rgb(136, 136, 136);\\\"><span>我听到了「</span><strong><span>AI</span></strong><span>」的回响</span></span></div><div style=\\\"letter-spacing: 0.578px; text-align: center;\\\"><span style=\\\"color: rgb(136, 136, 136);\\\"><span>我看到了「</span><strong><span>人工智能</span></strong><span>」的激荡</span></span></div><div style=\\\"text-align: center;\\\"><span style=\\\"color: rgb(136, 136, 136);\\\"><span>这是星辰大海的船票</span></span></div><div style=\\\"text-align: center;\\\"><span style=\\\"color: rgb(136, 136, 136);\\\"><span>亦是新大陆的曙光</span></span></div><div style=\\\"text-align: center;\\\"><span style=\\\"color: rgb(136, 136, 136);\\\"><span>与万千同行者共赴</span></span></div><div style=\\\"text-align: center;\\\"><strong><span style=\\\"color: rgb(136, 136, 136);\\\"><span>关注</span></span></strong><span style=\\\"color: rgb(136, 136, 136);\\\"><span>一下 我们即刻启航</span></span></div><div style=\\\"text-align: center;\\\"><span style=\\\"color: rgb(136, 136, 136);\\\"><span><br/></span></span></div></div><p style=\\\"box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); 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-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;\\\"><span></span></p></div></div></div></div></div></span>\\\n</div></body></html>\\u0000\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":26283}]"
metadata_diff: {"new":{"id":"19fa402839924afa97786dc0c900d034","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":1764348817079,"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:19.323Z
created_time: 2025-11-28T21:03:19.323Z
type_: 13