id: 07b7f8b93a4540cc9609bdd866397694
parent_id: 
item_type: 1
item_id: 0010205a6f384895b84bca7d45ebc0a8
item_updated_time: 1764365025041
title_diff: "[{\"diffs\":[[1,\"更上层楼！仅用2GB资源，让最火的DeepSeek-R1在本机上奔跑！\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":35}]"
body_diff: "[{\"diffs\":[[1,\"<html>\\\r\\\n<head>\\\r\\\n  <title>更上层楼！仅用2GB资源，让最火的DeepSeek-R1在本机上奔跑！</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=\\\"37434\\\"></a>\\\r\\\n<h1>更上层楼！仅用2GB资源，让最火的DeepSeek-R1在本机上奔跑！</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=MzU4NDQ2NzQ1NA==&amp;mid=2247493625&amp;idx=1&amp;sn=d6362e7487ce98b21aa19125da894b99&amp;chksm=fc0e1c23de4c66cc08bca91f5a027324003185bf00c4660f5b494c8639a5099b5156a3c7d9dd&amp;mpshare=1&amp;scene=1&amp;srcid=0127vcgLrt0elKJI97gHFl5o&amp;sharer_shareinfo=690c0a9456b081b6ced8f13cadc5c9b6&amp;sharer_shareinfo_first=690c0a9456b081b6ced8f13cadc5c9b6#rd\\\"><span>http://mp.weixin.qq.com/s?__biz=MzU4NDQ2NzQ1NA==&amp;mid=2247493...</span></a></div></div>\\\n<p></p>\\\n<div><span></span></div>\\\n<div style=\\\"-webkit-tap-highlight-color:transparent;\\\"><div style=\\\"-webkit-tap-highlight-color:transparent;\\\"><div style=\\\"-webkit-tap-highlight-color:transparent;\\\"><h1 style=\\\"-webkit-tap-highlight-color:transparent;margin:0\\\"> 更上层楼！仅用2GB资源，让最火的DeepSeek-R1在本机上奔跑！ </h1><div style=\\\"-webkit-tap-highlight-color:transparent;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;position:relative\\\">原创</span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"> LeetTools </span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><a style=\\\"-webkit-tap-highlight-color:transparent;position:relative\\\"> 智领云科技 </a></span><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><em style=\\\"-webkit-tap-highlight-color:transparent\\\"></em></span></div><div style=\\\"-webkit-tap-highlight-color:transparent;\\\"><div style=\\\"-webkit-tap-highlight-color:transparent;margin-left:8px;margin-right:8px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(38,38,38);font-family:PingFangSC-Light;font-size:15px;letter-spacing:1px;background-color:rgb(255,255,255)\\\"><div style=\\\"-webkit-tap-highlight-color:transparent;margin-top:-0.5em;margin-bottom:0;outline:0;color:rgb(0,82,255);font-family:PingFangSC-Light;font-size:15px;letter-spacing:1px;white-space:normal;display:inline-block;vertical-align:top;line-height:1em;height:1em;\\\"><br style=\\\"-webkit-tap-highlight-color:transparent;outline:0\\\"/></div><div style=\\\"-webkit-tap-highlight-color:transparent;margin-top:-0.5em;margin-bottom:0;outline:0;color:rgb(0,82,255);font-family:PingFangSC-Light;font-size:15px;letter-spacing:1px;white-space:normal;display:inline-block;vertical-align:top;line-height:1em;height:1em;\\\"><br style=\\\"-webkit-tap-highlight-color:transparent;outline:0\\\"/></div><div style=\\\"-webkit-tap-highlight-color:transparent;margin-top:-0.5em;margin-bottom:0;outline:0;color:rgb(0,82,255);font-family:PingFangSC-Light;font-size:15px;letter-spacing:1px;white-space:normal;display:inline-block;vertical-align:top;line-height:1em;height:1em;\\\"><br style=\\\"-webkit-tap-highlight-color:transparent;outline:0\\\"/></div><div style=\\\"-webkit-tap-highlight-color:transparent;margin-top:-0.5em;margin-bottom:0;outline:0;color:rgb(0,82,255);font-family:PingFangSC-Light;font-size:15px;letter-spacing:1px;white-space:normal;display:inline-block;vertical-align:top;line-height:1em;height:1em;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;outline:0;background-color:rgb(255,255,255);font-family:mp-quote,-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\\\"><strong style=\\\"-webkit-tap-highlight-color:transparent;outline:0;__visibility:visible\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;outline:0;font-family:mp-quote,-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:inline-block;vertical-align:top;font-size:64px;line-height:1em;__visibility:visible\\\">“</span></strong></span></div></span></div><p style=\\\"-webkit-tap-highlight-color:transparent;margin:0;margin-left:8px;margin-right:8px;line-height:1.75em\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(38,38,38);font-family:PingFangSC-Light;font-size:15px;letter-spacing:1px;background-color:rgb(255,255,255)\\\">一夜之间，中国AI大模型DeepSeek-R1横扫硅谷，迅速引爆全球科技圈，英伟达AI科学家Jim Fan发文感叹：“一家非美国公司，正在让OpenAI的初衷得以延续——真正开放、为所有人赋能的前沿研究”。是的，DeepSeek-R1不仅性能媲美OpenAI O1，更做到了完全开源。</span></p><div style=\\\"-webkit-tap-highlight-color:transparent;margin-left:8px;margin-right:8px;text-align:right;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(38,38,38);font-family:PingFangSC-Light;font-size:15px;letter-spacing:1px;background-color:rgb(255,255,255)\\\"><strong style=\\\"-webkit-tap-highlight-color:transparent;outline:0;color:rgb(38,38,38);font-family:PingFangSC-Light;font-size:15px;text-align:right;white-space:normal;letter-spacing:0.578px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;outline:0;letter-spacing:1px;background-color:rgb(255,255,255);color:rgb(0,82,255)\\\"><div style=\\\"-webkit-tap-highlight-color:transparent;margin-top:-0.5em;outline:0;display:inline-block;vertical-align:top;line-height:1em;height:1em;\\\"><div style=\\\"-webkit-tap-highlight-color:transparent;margin-top:-0.5em;outline:0;display:inline-block;vertical-align:top;line-height:1em;height:1em;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;outline:0;color:rgb(38,38,38)\\\"><br style=\\\"-webkit-tap-highlight-color:transparent;outline:0\\\"/></span></div></div><div style=\\\"-webkit-tap-highlight-color:transparent;margin-top:-0.5em;outline:0;color:rgb(38,38,38);display:inline-block;vertical-align:top;line-height:1em;height:1em;\\\"><div style=\\\"-webkit-tap-highlight-color:transparent;margin-top:-0.5em;outline:0;display:inline-block;vertical-align:top;line-height:1em;height:1em;\\\"><br style=\\\"-webkit-tap-highlight-color:transparent;outline:0\\\"/></div></div><div style=\\\"-webkit-tap-highlight-color:transparent;margin-top:-0.5em;outline:0;color:rgb(38,38,38);display:inline-block;vertical-align:top;line-height:1em;height:1em;\\\"><div style=\\\"-webkit-tap-highlight-color:transparent;margin-top:-0.5em;outline:0;display:inline-block;vertical-align:top;line-height:1em;height:1em;\\\"><br style=\\\"-webkit-tap-highlight-color:transparent;outline:0\\\"/></div></div><div style=\\\"-webkit-tap-highlight-color:transparent;margin-top:-0.5em;outline:0;color:rgb(38,38,38);display:inline-block;vertical-align:top;line-height:1em;height:1em;\\\"><div style=\\\"-webkit-tap-highlight-color:transparent;margin-top:-0.5em;outline:0;display:inline-block;vertical-align:top;line-height:1em;height:1em;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;outline:0;color:rgb(0,82,255);font-family:mp-quote,-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\\\"><strong style=\\\"-webkit-tap-highlight-color:transparent;outline:0;__visibility:visible\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;outline:0;font-family:mp-quote,-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:inline-block;vertical-align:top;font-size:64px;line-height:1em;__visibility:visible\\\">”</span></strong></span></div></div></span></strong></span></div><p style=\\\"-webkit-tap-highlight-color:transparent;margin:0;text-align:justify;margin-left:8px;margin-right:8px;line-height:1.75em\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;background-color:rgb(255,255,255);color:rgb(38,38,38);font-family:PingFangSC-Light;font-size:15px;letter-spacing:1px\\\">DeepSeek-R1模型的发布，让我们可以更好地使用开源大语言模型运行推理任务。现在，R1模型可以通过DeepSeek API获得，也就是说我们可以将其集成到我们的工作流程中。更好的消息是，</span><strong style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(0,82,255);background-color:rgb(255,255,255);font-family:PingFangSC-Light;font-size:15px;letter-spacing:1px\\\">Ollama在他们的库中添加了几个版本的R1模型，现在我们可以在本地使用Ollama运行R1模型。 </span></strong></p><div style=\\\"-webkit-tap-highlight-color:transparent;text-align:justify;margin-left:8px;margin-right:8px;line-height:1.75em;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;background-color:rgb(255,255,255);color:rgb(38,38,38);font-family:PingFangSC-Light;font-size:15px;letter-spacing:1px\\\">现在你将可以做到一个命令建立你的本地知识库❗︎全程3分钟❗︎仅需2GB内存❗︎无需GPU运行❗︎安装即用❗︎快速使用❗︎</span></div><div style=\\\"-webkit-tap-highlight-color:transparent;\\\"><div style=\\\"-webkit-tap-highlight-color:transparent;text-align:justify;margin-left:8px;margin-right:8px;line-height:1.75em;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;letter-spacing:1px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(38,38,38);font-family:PingFangSC-Light;font-size:15px;background-color:rgb(255,255,255);text-align:justify\\\">下面我们将使用</span><strong style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;font-family:PingFangSC-Light;font-size:15px;background-color:rgb(255,255,255);text-align:justify;color:rgb(255,104,39)\\\">「具有RAG功能的完整端到端文档管道」</span></strong><span style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(38,38,38);font-family:PingFangSC-Light;font-size:15px;background-color:rgb(255,255,255);text-align:justify\\\">的AI搜索引擎开发框架LeetTools，在本地运行Ollama的R1模型。由于我们使用DuckDB作为后端，</span><strong style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;font-family:PingFangSC-Light;font-size:15px;background-color:rgb(255,255,255);text-align:justify;color:rgb(0,82,255)\\\">整个流程可以轻松地安装在一台具有16GB RAM且没有专用GPU的笔记本电脑中。</span></strong></span></div><p style=\\\"margin:0;margin-right:8px;margin-bottom:16px;margin-left:8px;white-space:normal;-webkit-tap-highlight-color:transparent;outline:0;font-family:&quot;PingFang SC&quot;,system-ui,-apple-system,&quot;system-ui&quot;,&quot;Helvetica Neue&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);__visibility:visible;line-height:1.75em\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></p><div style=\\\"-webkit-tap-highlight-color:transparent;margin-bottom:0;outline:0;letter-spacing:0.544px;color:rgb(34,34,34);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:16px;background-color:rgb(255,255,255);\\\"><div style=\\\"-webkit-tap-highlight-color:transparent;outline:0;\\\"><div style=\\\"-webkit-tap-highlight-color:transparent;margin:10px 8px;outline:0;text-align:center;line-height:2em;\\\"><div style=\\\"-webkit-tap-highlight-color:transparent;outline:0;display:inline-block;width:18px;height:18px;vertical-align:top;overflow:hidden;background-position:50% 50%;background-repeat:no-repeat;background-size:contain;background-attachment:scroll;background-image:url(https://mmbiz.qpic.cn/mmbiz_gif/ncqN8l14plbjCKicKgrfXWNhXmaoacOm8BN3QB92daGZ1uA2XjYCYSMUVI1ROLxrDI9V0aLYrPCO2uicicYNOBrnw/640?wx_fmt=gif);line-height:0;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;outline:0;letter-spacing:1px;font-size:15px\\\">’</span></div></div></div></div><div style=\\\"-webkit-tap-highlight-color:transparent;margin-right:8px;margin-bottom:0;margin-left:8px;outline:0;letter-spacing:0.544px;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;color:rgb(34,34,34);font-size:16px;background-color:rgb(255,255,255);text-align:center;line-height:2em;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;outline:0;__visibility:visible;letter-spacing:1px;font-size:17px\\\"><strong style=\\\"-webkit-tap-highlight-color:transparent;outline:0;color:rgb(50,109,249);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;text-align:justify;__visibility:visible\\\">演示</strong></span></div><div style=\\\"-webkit-tap-highlight-color:transparent;margin-top:16px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"></span></div><p style=\\\"-webkit-tap-highlight-color:transparent;margin:0;text-align:justify;margin-left:8px;margin-right:8px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;background-color:rgb(255,255,255);color:rgb(38,38,38);font-family:PingFangSC-Light;font-size:15px;letter-spacing:1px\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span></p><div style=\\\"-webkit-tap-highlight-color:transparent;text-align:justify;margin-left:8px;margin-right:8px;margin-bottom:24px;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(0,82,255)\\\"><strong style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;background-color:rgb(255,255,255);font-family:PingFangSC-Light;letter-spacing:1px;font-size:17px\\\"><span style=\\\"background-color:rgb(255,255,255);-webkit-tap-highlight-color:transparent;outline:0;font-family:PingFangSC-Light;__visibility:visible\\\">📌 </span>安装 Ollama</span></strong></span></div><p style=\\\"-webkit-tap-highlight-color:transparent;margin:0;text-align:justify;margin-left:8px;margin-right:8px;margin-bottom:24px;line-height:1.75em\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(38,38,38);font-family:PingFangSC-Light;font-size:15px;background-color:rgb(255,255,255);text-align:justify;letter-spacing:1px\\\">1. 按照以下说明操作 https://github.com/ollama/ollama</span><span style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(38,38,38);font-family:PingFangSC-Light;font-size:15px;background-color:rgb(255,255,255);text-align:justify;letter-spacing:1px\\\">安装ollama程序。</span></p><div style=\\\"-webkit-tap-highlight-color:transparent;\\\"><pre style=\\\"-webkit-tap-highlight-color:transparent\\\"><p style=\\\"-webkit-tap-highlight-color:transparent;margin:0;line-height:1.75em\\\"><code style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># if the ollama program is not running, start it with the following command</span></span></code><code style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">ollama</span> serve</span></code></p></pre></div><div style=\\\"-webkit-tap-highlight-color:transparent;text-align:justify;margin-left:8px;margin-right:8px;line-height:1.75em;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(38,38,38);font-family:PingFangSC-Light;font-size:15px;background-color:rgb(255,255,255);text-align:justify;letter-spacing:1px\\\">2. 加载ollama 模型:</span></div><div style=\\\"-webkit-tap-highlight-color:transparent;\\\"><pre style=\\\"-webkit-tap-highlight-color:transparent\\\"><div style=\\\"-webkit-tap-highlight-color:transparent;line-height:1.75em;\\\"><code style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">% ollama pull deepseek-r1:1.5b</span></code><code style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">% ollama pull nomic-embed-text</span></code></div></pre></div><h1 style=\\\"-webkit-tap-highlight-color:transparent;margin:0;text-align:justify;margin-left:8px;margin-right:8px;margin-bottom:24px\\\"><p style=\\\"-webkit-tap-highlight-color:transparent;text-align:justify;margin:24px 0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(0,82,255)\\\"><strong style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"font-size:17px;background-color:rgb(255,255,255);-webkit-tap-highlight-color:transparent;outline:0;font-family:PingFangSC-Light;letter-spacing:1px;__visibility:visible\\\">📌 安装 LeetTools</span></strong></span></p></h1><div style=\\\"-webkit-tap-highlight-color:transparent;\\\"><pre style=\\\"-webkit-tap-highlight-color:transparent\\\"><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=\\\"-webkit-tap-highlight-color:transparent\\\">% conda create -y -n leettools python=3.11</span><div><span style=\\\"-webkit-tap-highlight-color:transparent\\\">% conda activate leettools</span></div><div><span style=\\\"-webkit-tap-highlight-color:transparent\\\">% pip install leettools</span></div><div><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span></div><div><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># where we store all the data and logs</span></span></div><div><span style=\\\"-webkit-tap-highlight-color:transparent\\\">% <span style=\\\"-webkit-tap-highlight-color:transparent\\\">export</span> LEET_HOME=${HOME}/leettools</span></div><div><span style=\\\"-webkit-tap-highlight-color:transparent\\\">% mkdir -p ${LEET_HOME}</span></div><div><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span></div><div><span style=\\\"-webkit-tap-highlight-color:transparent\\\">% cat &gt; .env.ollama &lt;&lt;EOF</span></div><div><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># need tot change LEET_HOME to the correct path</span></span></div><div><span style=\\\"-webkit-tap-highlight-color:transparent\\\">LEET_HOME=&lt;/Users/myhome/leettools&gt;</span></div><div><span style=\\\"-webkit-tap-highlight-color:transparent\\\">EDS_DEFAULT_LLM_BASE_URL=http://localhost:11434/v1</span></div><div><span style=\\\"-webkit-tap-highlight-color:transparent\\\">EDS_LLM_API_KEY=dummy-key</span></div><div><span style=\\\"-webkit-tap-highlight-color:transparent\\\">EDS_DEFAULT_INFERENCE_MODEL=deepseek-r1:1.5b</span></div><div><span style=\\\"-webkit-tap-highlight-color:transparent\\\">EDS_DEFAULT_EMBEDDING_MODEL=nomic-embed-text</span></div><div><span style=\\\"-webkit-tap-highlight-color:transparent\\\">EDS_EMBEDDING_MODEL_DIMENSION=768</span></div><div><span style=\\\"-webkit-tap-highlight-color:transparent\\\">EOF</span></div></div></pre></div><div style=\\\"-webkit-tap-highlight-color:transparent;text-align:justify;margin-left:0;margin-right:0;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(38,38,38);font-family:PingFangSC-Light;font-size:15px;background-color:rgb(255,255,255);text-align:justify;letter-spacing:1px\\\"><strong style=\\\"-webkit-tap-highlight-color:transparent;font-size:16px;letter-spacing:0.578px;white-space:normal\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;font-size:17px;font-family:PingFangSC-Light;background-color:rgb(255,255,255);color:rgb(0,82,255)\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span></strong></span></div><div style=\\\"-webkit-tap-highlight-color:transparent;text-align:justify;margin-left:0;margin-right:0;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(38,38,38);font-family:PingFangSC-Light;font-size:15px;background-color:rgb(255,255,255);text-align:justify;letter-spacing:1px\\\"><strong style=\\\"-webkit-tap-highlight-color:transparent;font-size:16px;letter-spacing:0.578px;white-space:normal\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;font-size:17px;font-family:PingFangSC-Light;background-color:rgb(255,255,255);color:rgb(0,82,255)\\\">📌 用一个命令建立你的本地知识库</span></strong></span></div><div style=\\\"-webkit-tap-highlight-color:transparent;text-align:justify;margin-left:0;margin-right:0;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(38,38,38);font-family:PingFangSC-Light;font-size:15px;background-color:rgb(255,255,255);text-align:justify;letter-spacing:1px\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span></div><p style=\\\"-webkit-tap-highlight-color:transparent;margin:0;text-align:justify;margin-left:0;margin-right:0;line-height:1.75em\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(38,38,38);font-family:PingFangSC-Light;font-size:15px;background-color:rgb(255,255,255);text-align:justify;letter-spacing:1px\\\">通过一个命令行，我们可以使用URL中的PDF文件构建知识库。如果需要，你还可以添加更多URL。</span></p><pre style=\\\"-webkit-tap-highlight-color:transparent;text-align:justify;margin-left:8px;margin-right:8px\\\"><div style=\\\"-webkit-tap-highlight-color:transparent;\\\"><pre style=\\\"-webkit-tap-highlight-color:transparent\\\"><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=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"># this is a great LLM introduction book with 231 pages</span></span><div><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">leet</span> kb add-url -e .env.ollama -k llmbook -l <span style=\\\"-webkit-tap-highlight-color:transparent\\\">info</span> \\\\</span></div><div><span style=\\\"-webkit-tap-highlight-color:transparent\\\">    -r https://arxiv.org/pdf/2501.09223</span></div></div></pre></div></pre><h1 style=\\\"-webkit-tap-highlight-color:transparent;margin:0\\\"><div style=\\\"-webkit-tap-highlight-color:transparent;text-align:justify;margin-left:0;margin-right:0;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;background-color:rgb(255,255,255);color:rgb(38,38,38);font-family:PingFangSC-Light;font-size:15px;letter-spacing:1px\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span></div><div style=\\\"-webkit-tap-highlight-color:transparent;text-align:justify;margin-left:0;margin-right:0;\\\"><strong style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;font-family:PingFangSC-Light;background-color:rgb(255,255,255);text-align:justify;letter-spacing:1px;font-size:17px;color:rgb(0,82,255)\\\"><span style=\\\"color:rgb(0,82,255);background-color:rgb(255,255,255);text-align:justify;font-size:17px;-webkit-tap-highlight-color:transparent;outline:0;font-family:PingFangSC-Light;__visibility:visible\\\">📌 </span>使用R1查询你的本地知识库</span></strong><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></div><div style=\\\"-webkit-tap-highlight-color:transparent;\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></div></h1><p style=\\\"-webkit-tap-highlight-color:transparent;margin:0;text-align:justify;margin-left:0;margin-right:0;line-height:1.75em\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(38,38,38);font-family:PingFangSC-Light;font-size:15px;background-color:rgb(255,255,255);text-align:justify;letter-spacing:1px\\\">以下命令将使用LLM构建指南中的内容，使用R1模型回答问题。</span></p><div style=\\\"-webkit-tap-highlight-color:transparent;\\\"><pre style=\\\"-webkit-tap-highlight-color:transparent\\\"><p style=\\\"-webkit-tap-highlight-color:transparent;margin:0;line-height:1.75em\\\"><code style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">leet</span> flow -t answer -e .env.ollama -k llmbook -p retriever_type=local -l <span style=\\\"-webkit-tap-highlight-color:transparent\\\">info</span> \\\\</span></code><code style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent\\\">    -<span style=\\\"-webkit-tap-highlight-color:transparent\\\">p</span> output_language=cn -q <span style=\\\"-webkit-tap-highlight-color:transparent\\\">&quot;How does the FineTune process Work?&quot;</span> </span></code></p></pre></div><h1 style=\\\"-webkit-tap-highlight-color:transparent;margin:0;text-align:justify;margin-left:0;margin-right:0\\\"><p style=\\\"-webkit-tap-highlight-color:transparent;margin:0;text-align:justify;margin-left:0;margin-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(38,38,38);font-family:PingFangSC-Light;font-size:15px;background-color:rgb(255,255,255);text-align:justify;letter-spacing:1px\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span></p><p style=\\\"-webkit-tap-highlight-color:transparent;margin:0;text-align:justify;margin-left:0;margin-right:0\\\"><strong style=\\\"-webkit-tap-highlight-color:transparent\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;font-family:PingFangSC-Light;background-color:rgb(255,255,255);text-align:justify;letter-spacing:1px;color:rgb(0,82,255);font-size:17px\\\"><span style=\\\"font-size:17px;background-color:rgb(255,255,255);text-align:justify;color:rgb(0,82,255);-webkit-tap-highlight-color:transparent;outline:0;font-family:PingFangSC-Light;__visibility:visible\\\">📌 </span>资源使用情况</span></strong></p><p style=\\\"-webkit-tap-highlight-color:transparent;margin:0;text-align:justify;margin-left:0;margin-right:0\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;background-color:rgb(255,255,255);color:rgb(38,38,38);font-family:PingFangSC-Light;font-size:15px;letter-spacing:1px\\\"><br style=\\\"-webkit-tap-highlight-color:transparent\\\"/></span></p><div style=\\\"-webkit-tap-highlight-color:transparent;text-align:justify;margin-left:0;margin-right:0;margin-bottom:8px;line-height:1.75em;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;background-color:rgb(255,255,255);color:rgb(38,38,38);font-family:PingFangSC-Light;font-size:15px;letter-spacing:1px\\\">这个过程最强的地方就是，整个管道只使用了大约2GB的内存，不需要特殊的GPU来运行：</span></div><ol style=\\\"-webkit-tap-highlight-color:transparent;margin:0;list-style-type:decimal\\\"><li style=\\\"-webkit-tap-highlight-color:transparent\\\"><div style=\\\"-webkit-tap-highlight-color:transparent;text-align:justify;margin-left:0;margin-right:0;margin-bottom:8px;line-height:1.75em;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;background-color:rgb(255,255,255);color:rgb(38,38,38);font-family:PingFangSC-Light;font-size:15px;letter-spacing:1px\\\">带有RAG服务后端的LeetTools文档管道使用了大约350MB的内存</span></div></li><li style=\\\"-webkit-tap-highlight-color:transparent\\\"><div style=\\\"-webkit-tap-highlight-color:transparent;text-align:justify;margin-left:0;margin-right:0;margin-bottom:8px;line-height:1.75em;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;background-color:rgb(255,255,255);color:rgb(38,38,38);font-family:PingFangSC-Light;font-size:15px;letter-spacing:1px\\\">R1型号使用大约1.6GB的内存，嵌入式型号使用大约370MB的内存</span></div></li></ol><div style=\\\"-webkit-tap-highlight-color:transparent;\\\"><pre style=\\\"-webkit-tap-highlight-color:transparent\\\"><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=\\\"-webkit-tap-highlight-color:transparent\\\">% ollama ps </span><div><span style=\\\"-webkit-tap-highlight-color:transparent\\\">NAME                       ID              SIZE      PROCESSOR    UNTIL              </span></div><div><span style=\\\"-webkit-tap-highlight-color:transparent\\\">deepseek-r1:1.5b           a42b25d8c10a    1.6 GB    100% CPU     4 minutes from now    </span></div><div><span style=\\\"-webkit-tap-highlight-color:transparent\\\">nomic-embed-text:latest    0a109f422b47    370 MB    100% CPU     4 minutes from now</span></div></div></pre></div></h1></div><div style=\\\"-webkit-tap-highlight-color:transparent;margin:24px 8px 8px;letter-spacing:0.578px;white-space:normal;line-height:1.75em;\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(38,38,38);font-family:PingFangSC-Light;font-size:15px;letter-spacing:1px\\\">👇点击</span><strong style=\\\"-webkit-tap-highlight-color:transparent;font-family:mp-quote,-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:var(--articleFontsize);letter-spacing:0.034em\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;font-family:PingFangSC-Light;font-size:15px;letter-spacing:1px;color:rgb(0,82,255)\\\">阅读原文</span></strong><span style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(38,38,38);font-family:PingFangSC-Light;font-size:15px;letter-spacing:1px\\\">，获取开源地址</span></div><p style=\\\"-webkit-tap-highlight-color:transparent;margin:0;line-height:1.75em;margin-left:8px;margin-right:8px\\\"><span style=\\\"-webkit-tap-highlight-color:transparent;color:rgb(38,38,38);font-family:PingFangSC-Light;font-size:15px;letter-spacing:1px\\\">🚀帮我们点亮一颗🌟，愿您的开发之路星光璀璨</span></p></div></div><div style=\\\"-webkit-tap-highlight-color:transparent;\\\"><div style=\\\"-webkit-tap-highlight-color:transparent;\\\"><div style=\\\"-webkit-tap-highlight-color:transparent;\\\"><div style=\\\"-webkit-tap-highlight-color:transparent;display:flex;\\\"><a style=\\\"-webkit-tap-highlight-color:transparent\\\">阅读原文</a></div></div></div></div></div></div></div></span>\\\n</div></body></html>\\u0000\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":30894}]"
metadata_diff: {"new":{"id":"0010205a6f384895b84bca7d45ebc0a8","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":1764348863682,"user_updated_time":1764345621072,"markup_language":2,"is_shared":0,"share_id":"","conflict_original_id":"","master_key_id":"","user_data":"","deleted_time":1764365025041},"deleted":[]}
encryption_cipher_text: 
encryption_applied: 0
updated_time: 2025-11-28T21:24:54.392Z
created_time: 2025-11-28T21:24:54.392Z
type_: 13