<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>猴子的記憶庫</title>
        <link>https://www.2031215.xyz/</link>
        <description>一隻會電腦的猴子所搭建的博客</description>
        <lastBuildDate>Thu, 16 Apr 2026 07:05:55 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>zh-TW</language>
        <copyright>All rights reserved 2026, 猴子的記憶庫</copyright>
        <item>
            <title><![CDATA[本地運行Translategemma接入沉浸式翻譯]]></title>
            <link>https://www.2031215.xyz/article/translategemma</link>
            <guid>https://www.2031215.xyz/article/translategemma</guid>
            <pubDate>Sat, 24 Jan 2026 00:00:00 GMT</pubDate>
            <description><![CDATA[教學如何用LM Studio接入沉浸式翻譯來本地運行Google TranslateGemma模型]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-2f2656108e5e8069ad23daa0dd3bbd89"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-2f2656108e5e80aeb1c6fa39e94abf2d" data-id="2f2656108e5e80aeb1c6fa39e94abf2d"><span><div id="2f2656108e5e80aeb1c6fa39e94abf2d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2f2656108e5e80aeb1c6fa39e94abf2d" title="翻譯對照"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">翻譯對照</span></span></h2><div class="notion-text notion-block-2f2656108e5e81a59765d517a391817b">你可能會疑問，為甚麼不用網頁的Goolge的翻譯，我直接給對比大家參觀一下:</div><div class="notion-text notion-block-2f2656108e5e805aa1b8c5f36e224278">先是原文:</div><div class="notion-text notion-block-2f2656108e5e808f996bd9c2a04eebdf">2018年10月31日。 ハロウィンで賑わう渋谷駅周辺に突如“帳”が降ろされ大勢の一般人が閉じ込められる。 そこに単独で乗り込む現代最強の呪術師・五条悟。だが、そこには五条の封印を目論む呪詛師・呪霊達が待ち構えていた。 渋谷に集結する虎杖悠仁ら、数多くの呪術師たち。 かつてない大規模な呪い合い「渋谷事変」が始まる―。 </div><table class="notion-simple-table notion-block-2f2656108e5e8010940bc3a20c87359d"><tbody><tr class="notion-simple-table-row notion-block-2f2656108e5e806fb0e9e681ad53fddf"><td class="" style="width:305.328125px"><div class="notion-simple-table-cell">翻譯來源</div></td><td class="" style="width:448.328125px"><div class="notion-simple-table-cell">翻譯文本</div></td></tr><tr class="notion-simple-table-row notion-block-2f2656108e5e80229612e6b0db0852fd"><td class="" style="width:305.328125px"><div class="notion-simple-table-cell">Goolge翻譯
4/10
評價:句意完整沒問題，但一些專有名詞上全翻成是英式的叫法</div></td><td class="" style="width:448.328125px"><div class="notion-simple-table-cell">2018 年 10 月 31 日，澀谷車站周圍突然落下一道帷幕，原本熙熙攘攘的人群正慶祝萬聖節，許多普通人被困其中。現代最強的<span class="notion-red">魔法師</span>五條悟獨自一人進入了這片區域。然而，他卻遭遇了許多<span class="notion-red">詛咒者和被詛咒的亡靈</span>，他們正密謀封印五條悟。包括虎杖悠仁在內的眾多<span class="notion-red">魔法師</span>聚集在澀谷。這標誌著「澀谷事件」的開始，一場前所未有的大規模詛咒<span class="notion-red">交換</span>。</div></td></tr><tr class="notion-simple-table-row notion-block-2f2656108e5e80c4b5adea3965bae46f"><td class="" style="width:305.328125px"><div class="notion-simple-table-cell">Bing翻譯
3/10 
評價:比Goolge差，不知為甚麼多了一些奇怪的字如<span class="notion-red">騎馬</span></div></td><td class="" style="width:448.328125px"><div class="notion-simple-table-cell">2018 年 10 月 31 日。一座「帳篷」突然在澀谷車站周圍放下，該站因萬聖節而擁擠，許多普通人被困。現代最強咒術師五條悟獨自<span class="notion-red">騎馬</span>前往。然而，<span class="notion-red">詛咒大師</span>與意圖封印五條的詛咒靈正等待著他。<span class="notion-red">虎杖裕司</span>與許多咒術師聚集於澀谷。一場前所未有的大規模詛咒<span class="notion-red">交換</span>「澀谷事件」開始。</div></td></tr><tr class="notion-simple-table-row notion-block-2f2656108e5e80658216e7965ba13bbb"><td class="" style="width:305.328125px"><div class="notion-simple-table-cell">DeepL翻譯
9/10 
評價:最好的翻譯，最忠於原文且語氣流暢</div></td><td class="" style="width:448.328125px"><div class="notion-simple-table-cell">2018年10月31日。在萬聖節熱鬧非凡的澀谷車站周邊，突然降下「帳幕」，將大批一般民眾困在其中。現代最強咒術師・五條悟獨自闖入現場。然而，企圖封印五條的詛咒師與咒靈們早已埋伏在此。虎杖悠仁等眾多咒術師齊聚澀谷。前所未有的大規模詛咒對決「澀谷事變」就此揭幕──。</div></td></tr><tr class="notion-simple-table-row notion-block-2f2656108e5e80a0a02dde76b5ad389e"><td class="" style="width:305.328125px"><div class="notion-simple-table-cell">本地LLM translategemma-12b-it@q4_k_s
7/10 
評價:比傳統機械翻譯強多了，和DeepL翻譯很接近</div></td><td class="" style="width:448.328125px"><div class="notion-simple-table-cell">2018 年 10 月 31 日。 在充滿萬聖節氣氛的澀谷車站周邊，突然降下了一道<span class="notion-red">“屏障”</span>，將大量普通民眾困在其中。 獨自一人闖入其中的，是當今最強大的咒術師——五條悟。 然而，在那裡等待著他的，是企圖封印五條的詛咒師和咒靈。 在澀谷聚集的虎杖悠仁等眾多咒術師。 一場前所未有的大規模咒術對決「<span class="notion-red">澀谷事件</span>」，即將開始——。</div></td></tr><tr class="notion-simple-table-row notion-block-2f2656108e5e80709e3be9c35f8d1418"><td class="" style="width:305.328125px"><div class="notion-simple-table-cell">本地LLM hy-mt1.5-1.8b
5/10 
評價:translategemma的下位版，不知是甚麼原因多了”<span class="notion-red">解除”</span>與原意相反</div></td><td class="" style="width:448.328125px"><div class="notion-simple-table-cell">2018 年 10 月 31 日。 在歡慶萬聖節的澀谷車站周邊，突然降臨了一層<span class="notion-red">“結界”</span>，導致大量普通人被困在裡面。 這時，現代最強大的咒術師——五條悟獨自一人闖了進去。 然而，那裡卻等待著他的是那些企圖<span class="notion-red">解除</span>五條封印的咒術師們。 虎杖悠仁等人也聚集在澀谷，還有許多咒術師們參與其中。 一場前所未有的大規模咒術對決——“澀谷事變”就此開始。</div></td></tr></tbody></table><div class="notion-text notion-block-2f2656108e5e80d08553f9ef099b5158">可以見到機械翻譯的Goolge翻譯和Bing翻譯完全不行，而AI翻譯的DeepL翻譯是最好的表現，不過DeepL翻譯免費版有限制50,000 個字元/月，所以本地LLM的優勢來了，雖然不及DeepL翻譯，但比起Goolge和Bing好多了。</div><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-2f2656108e5e80d690ace814b651855a" data-id="2f2656108e5e80d690ace814b651855a"><span><div id="2f2656108e5e80d690ace814b651855a" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2f2656108e5e80d690ace814b651855a" title="如何用LM Studio接入沉浸式翻譯"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">如何用LM Studio接入沉浸式翻譯</span></span></h2><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-2f2656108e5e80beba33e75d6b4ca0ca" data-id="2f2656108e5e80beba33e75d6b4ca0ca"><span><div id="2f2656108e5e80beba33e75d6b4ca0ca" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2f2656108e5e80beba33e75d6b4ca0ca" title="設定LM Studio:"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">設定LM Studio:</span></span></h3><div class="notion-text notion-block-2f2656108e5e806c85ccc8d922160775">首先要先下載模型，在左方按查找模型功能，輸入translategemma-12b-it，右下按下載模型</div><div class="notion-text notion-block-2f2656108e5e804482bacb0b66e2c39d">在translategemma模型有4B、12B、27B等模型參數，參數數量越多，效能越強，但需要的運算資源，記憶體也會越大。而模型本身也量化等級如Q2_K，Q4_K_M，LM Studio會按硬體性能自動推薦。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2f2656108e5e8061bba6e63d5eceaee7"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A25f16699-8750-4728-9867-d05ec31c9879%3AScreenshot_2026-01-24_220103.jpg?table=block&amp;id=2f265610-8e5e-8061-bba6-e63d5eceaee7&amp;t=2f265610-8e5e-8061-bba6-e63d5eceaee7" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2f2656108e5e8017a877f521c1672ed5">而因為translategemma是剛出的模型，要先設定一下，在模型操作按設定-Prompt，把提示模板轉為手動，模板設為Alpaca</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2f2656108e5e80ddad06ebb330d9db65"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A43ebd7ec-d958-4dcf-b7b8-b990a982efb3%3Aimage.png?table=block&amp;id=2f265610-8e5e-80dd-ad06-ebb330d9db65&amp;t=2f265610-8e5e-80dd-ad06-ebb330d9db65" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2f2656108e5e8032b923fe748a55bc27"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A3472485a-fc0d-451a-8dd3-e5ae6539a774%3AScreenshot_2026-01-24_220103.png?table=block&amp;id=2f265610-8e5e-8032-b923-fe748a55bc27&amp;t=2f265610-8e5e-8032-b923-fe748a55bc27" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2f2656108e5e80edaaf3e190cfd48053">之前按左方的開發者，在Server Settings打開 啟用CORS，選擇加載剛下載的translategemma作為Server的形式運行，在LM Studio的設定就完成了。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2f2656108e5e80e7960dea1896c44baa"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:320px"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A39046d89-1937-40fd-b605-df902725446e%3Aa7f4cce5-6417-49f8-a625-d73a19660afa.png?table=block&amp;id=2f265610-8e5e-80e7-960d-ea1896c44baa&amp;t=2f265610-8e5e-80e7-960d-ea1896c44baa" alt="notion image" loading="lazy" decoding="async"/></div></figure><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2f2656108e5e800ba21bd77e2d286936"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A83425e2f-a2db-4ea1-bc41-a76b08975034%3Aimage.png?table=block&amp;id=2f265610-8e5e-800b-a21b-d77e2d286936&amp;t=2f265610-8e5e-800b-a21b-d77e2d286936" alt="notion image" loading="lazy" decoding="async"/></div></figure><h3 class="notion-h notion-h2 notion-h-indent-1 notion-block-2f2656108e5e8026965fd614020e2706" data-id="2f2656108e5e8026965fd614020e2706"><span><div id="2f2656108e5e8026965fd614020e2706" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2f2656108e5e8026965fd614020e2706" title="安裝沉浸式翻譯:"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">安裝沉浸式翻譯:</span></span></h3><div class="notion-text notion-block-2f2656108e5e80df9694c40c952d5cee"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://chromewebstore.google.com/detail/immersive-translate-trans/bpoadfkcbjbfhfodiogcnhhhpibjhbnh">沉浸式翻譯 - 網頁翻譯及 PDF 翻譯 - Chrome 線上應用程式商店</a></div><div class="notion-text notion-block-2f2656108e5e807aa4cfc562fe634209">設定按- 翻譯服務 - 新增自訂翻譯服務 - 選 自訂 AI</div><div class="notion-text notion-block-2f2656108e5e807db3b3c051ed2ab051">自訂翻譯服務名稱：”自訂名稱”</div><div class="notion-text notion-block-2f2656108e5e804ab9a5f8bc683d9e8b">自訂 API 位址：<a target="_blank" rel="noopener noreferrer" class="notion-link" href="http://127.0.0.1:1234/">http://127.0.0.1:1234/</a></div><div class="notion-text notion-block-2f2656108e5e807b98eacb58e9772f1b">APIKEY：1   “隨便都可以”</div><div class="notion-text notion-block-2f2656108e5e8084b3bceeb13c6ee74d">模型：下載的translategemma名稱如”translategemma-12b-it”</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2f2656108e5e80f7abd1d6e425d971d7"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A1b7fff9c-2335-4dee-80dc-e5d5649ba536%3Aimage.png?table=block&amp;id=2f265610-8e5e-80f7-abd1-d6e425d971d7&amp;t=2f265610-8e5e-80f7-abd1-d6e425d971d7" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-2f2656108e5e80cb8b89f305f63d2352">在想翻譯的頁面中把翻譯服務為剛設定好的服務就可以用自己的translategemma翻譯網頁</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-2f2656108e5e804e9ea6db2e2b88f844"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Af22aefa3-55d4-461d-bfd6-60ef6b0fd4c3%3Aimage.png?table=block&amp;id=2f265610-8e5e-804e-9ea6-db2e2b88f844&amp;t=2f265610-8e5e-804e-9ea6-db2e2b88f844" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-2f2656108e5e808f9674dee4e251db9f" data-id="2f2656108e5e808f9674dee4e251db9f"><span><div id="2f2656108e5e808f9674dee4e251db9f" class="notion-header-anchor"></div><a class="notion-hash-link" href="#2f2656108e5e808f9674dee4e251db9f" title="最後寫下為何用選用這方案:"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">最後寫下為何用選用這方案:</span></span></h2><div class="notion-text notion-block-2f2656108e5e80b1b8cedce7f8c4c32a">本身有試LM Studio和Ollama，但Ollama在設定開啟CORS和除錯太麻煩了</div><div class="notion-text notion-block-2f2656108e5e80d4969dec5c67b4ad05"><code class="notion-inline-code">set OLLAMA_ORIGINS=*</code></div><div class="notion-text notion-block-2f2656108e5e800e8c24c8ca604d7c00"><code class="notion-inline-code">ollama serve</code></div><div class="notion-text notion-block-2f2656108e5e802f9b47d1f974321203">模型:translategemma和 hy-mt，本文本身就是因為想試試Google 推出了名為 TranslateGemma 的開源翻譯模型系列，加它有辨識圖片功能，在LM Studio也可以直接試到，不過在低參數下辨識圖片不太行</div><div class="notion-text notion-block-2f2656108e5e80e49ba8fd59c4f4a5a7"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://blog.google/innovation-and-ai/technology/developers-tools/translategemma/">TranslateGemma: A new family of open translation models</a></div><div class="notion-text notion-block-2f2656108e5e8049bf60fd6595c2a5d9">而騰訊開源模型hy-mt 是最近WMT2025冠軍大模型，在1.8b大小下可能做到這品質也不錯</div><div class="notion-text notion-block-2f2656108e5e801bae87ca6843cc011d"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://github.com/Tencent-Hunyuan/HY-MT/blob/main/README_CN.md">HY-MT/README_CN.md at main · Tencent-Hunyuan/HY-MT · GitHub</a></div><div class="notion-blank notion-block-2f2656108e5e80f7818aef74c7131de5"> </div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[使用Docker版百度網盤下載文件]]></title>
            <link>https://www.2031215.xyz/article/baidunetdisk</link>
            <guid>https://www.2031215.xyz/article/baidunetdisk</guid>
            <pubDate>Tue, 21 Jan 2025 00:00:00 GMT</pubDate>
            <description><![CDATA[利用自己的NAS把百度網盤的資源用慢速（128kb/s）的方式下載完]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-31f88aa24b424b59b3f034fa8284bafc"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-callout notion-gray_background_co notion-block-e6f9111740234395a1b2511137b36340"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="📖">📖</span></div><div class="notion-callout-text">如果是想註冊百度網盤可以參考下面文章:
<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://cyber.suma.tw/baidu-overseas-registration/">https://cyber.suma.tw/baidu-overseas-registration/</a></div></div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-8ff2cba24f8e438caf2e1c8c9324d9cf" data-id="8ff2cba24f8e438caf2e1c8c9324d9cf"><span><div id="8ff2cba24f8e438caf2e1c8c9324d9cf" class="notion-header-anchor"></div><a class="notion-hash-link" href="#8ff2cba24f8e438caf2e1c8c9324d9cf" title="前言"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">前言</span></span></h3><div class="notion-text notion-block-183656108e5e805c80e9cd2f27dfde2a">最近找到文章說不用中國電話就可以註冊百度網盤，所以花了一些時間真的成功了
不過普通會員只有128kb/s的下載速度，如果下載大文件可能要掛一整天
正好找到Docker版百度網盤(johngong/baidunetdisk)，直接用在自己的NAS那下載一整天也沒問題了</div><div class="notion-text notion-block-183656108e5e80b7bb51d22edf2f12f3"><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://hub.docker.com/r/johngong/baidunetdisk">johngong/baidunetdisk - Docker 鏡像 |Docker 中心</a></div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-9eb8e86791c2481d97e0cbf4672e197d" data-id="9eb8e86791c2481d97e0cbf4672e197d"><span><div id="9eb8e86791c2481d97e0cbf4672e197d" class="notion-header-anchor"></div><a class="notion-hash-link" href="#9eb8e86791c2481d97e0cbf4672e197d" title="搭建"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b><b>搭建</b></b></span></span></h4><div class="notion-text notion-block-183656108e5e800ca1f7d852e2a9d254">部署可以通過docker或者docker-compose來部署</div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-3cfdaf0c419b47e587ca4f28ffe20923" data-id="3cfdaf0c419b47e587ca4f28ffe20923"><span><div id="3cfdaf0c419b47e587ca4f28ffe20923" class="notion-header-anchor"></div><a class="notion-hash-link" href="#3cfdaf0c419b47e587ca4f28ffe20923" title="docker run"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">docker run</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-c59336fbcdb04e9ab59f9916e94b05b1" data-id="c59336fbcdb04e9ab59f9916e94b05b1"><span><div id="c59336fbcdb04e9ab59f9916e94b05b1" class="notion-header-anchor"></div><a class="notion-hash-link" href="#c59336fbcdb04e9ab59f9916e94b05b1" title="docker-compose"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">docker-compose</span></span></h4><div class="notion-blank notion-block-183656108e5e80c1be72d2dd25f3c84b"> </div><div class="notion-text notion-block-e675fa3d5b8b497db60f0512083995fe">等待初始化完成後，可以在瀏覽器端開啟<a target="_blank" rel="noopener noreferrer" class="notion-link" href="http://127.0.0.1:5800/">http://127.0.0.1:5800</a>。也可以使用任何VNC用戶端連接埠。</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-18c656108e5e8067b66bed9fec53a668"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:277.0421852122987px"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A9c56b595-cadf-4df0-9e5c-352d1a54379c%3Ae71d4b4f-f38d-457d-b723-fb0ec63d787f.png?table=block&amp;id=18c65610-8e5e-8067-b66b-ed9fec53a668&amp;t=18c65610-8e5e-8067-b66b-ed9fec53a668" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-blank notion-block-18c656108e5e802c9d17c57d21b1a829"> </div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker Rclone搭建Webdav]]></title>
            <link>https://www.2031215.xyz/article/rclone_webdav</link>
            <guid>https://www.2031215.xyz/article/rclone_webdav</guid>
            <pubDate>Fri, 15 Mar 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[手把手用Rclone構建一個WebDAV伺服器]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-182656108e5e801ab3f1e5b5b6b26860"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-callout notion-gray_background_co notion-block-694c2bb77d1f42a5a077543b3c691232"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="📖">📖</span></div><div class="notion-callout-text">Rclone是一个命令行工具，可以掛載任何雲端硬碟在上作為本地硬碟，也可以通過 SFTP、HTTP、WebDAV、FTP 存取些服務。<div class="notion-text notion-block-1ccc89c36ea04e16b38f8eba0ed58abe">能處理下列雲端儲存服務：
- Google Drive
- Amazon S3
- Openstack Swift / Rackspace cloud files / Memset Memstore
- Dropbox
- Google Cloud Storage
- Amazon Cloud Drive
- Microsoft One Drive
- Backblaze B2
- Yandex Disk
- The local filesystem</div></div></div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-6c82d6f867fd4202a86d6afae9578e51" data-id="6c82d6f867fd4202a86d6afae9578e51"><span><div id="6c82d6f867fd4202a86d6afae9578e51" class="notion-header-anchor"></div><a class="notion-hash-link" href="#6c82d6f867fd4202a86d6afae9578e51" title="前言"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">前言</span></span></h3><div class="notion-text notion-block-f992c5a6f2164d819e614fc0262af48d">目前上一篇用nginx作webdav服務，發現Obsidian同步時會出現無法建立資料夾問題
之前都是手動去伺服器建立資料夾，一來二去太麻煩了，所以想換另一個webdav服務
正好看到Rclone，它除了掛載網盤之外，也可以作為webdav伺服器掛載本機資料夾
本文將基於Docker/Rclone手把手構建一個WebDAV伺服器。</div><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-faeb3dca969f411d866a4f8b5d51bc05" data-id="faeb3dca969f411d866a4f8b5d51bc05"><span><div id="faeb3dca969f411d866a4f8b5d51bc05" class="notion-header-anchor"></div><a class="notion-hash-link" href="#faeb3dca969f411d866a4f8b5d51bc05" title="搭建"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title"><b>搭建</b></span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-0b55863ff0de472883bea067604f3798" data-id="0b55863ff0de472883bea067604f3798"><span><div id="0b55863ff0de472883bea067604f3798" class="notion-header-anchor"></div><a class="notion-hash-link" href="#0b55863ff0de472883bea067604f3798" title="docker run"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">docker run</span></span></h4><h4 class="notion-h notion-h3 notion-h-indent-1 notion-block-5de90fd48e01444ab8629ca07d187bc7" data-id="5de90fd48e01444ab8629ca07d187bc7"><span><div id="5de90fd48e01444ab8629ca07d187bc7" class="notion-header-anchor"></div><a class="notion-hash-link" href="#5de90fd48e01444ab8629ca07d187bc7" title="docker-compose"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">docker-compose</span></span></h4><div class="notion-text notion-block-da4892d9afcb477eaba1e9652b05bfb7">Rclone只用14MB ram 左右，和NGINX差不多</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-50b544e63aa64409a17ab79fee0bef0e"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2Fc4a0358d-630b-4d92-a515-45b5063cde61%2F8b155a2b-e2a5-4529-b081-95581f861b6c%2FRcloneWebdav.png?table=block&amp;id=50b544e6-3aa6-4409-a17a-b79fee0bef0e&amp;t=50b544e6-3aa6-4409-a17a-b79fee0bef0e&amp;width=712.013916015625&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-7f376d3d79f042ba9cd159daca484278">之前nginx版的webdav插件是很古老的版本，功能和安全性都不太放心
而Rclone可以直接用最新版Imaige開WebDAV伺服器，之後更新也方便
先用一陣看看~</div><div class="notion-blank notion-block-b2d4b7347b15448ebb0a8e8943b90319"> </div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[RTL9210B硬碟盒固件更新(v1.33.44)]]></title>
            <link>https://www.2031215.xyz/article/RTL9210B</link>
            <guid>https://www.2031215.xyz/article/RTL9210B</guid>
            <pubDate>Fri, 14 Feb 2025 00:00:00 GMT</pubDate>
            <description><![CDATA[手上有一隻汰換下來的M2 SSD， 想說把它裝到外接盒當外接碟用，有時能正常用，但有時出現無法識別的USB設備，看到RTL9210B固件好像是2022年的版本，正好更新一下]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-19a656108e5e8007968ec8b70094b69d"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-callout notion-gray_background_co notion-block-19a656108e5e809a93ecdacb97d54aa5"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="📌">📌</span></div><div class="notion-callout-text">手上有一隻汰換下來的M2 SSD， 想說把它裝到外接盒當外接碟用
有時能正常用，但有時出現無法識別的USB設備
看到RTL9210B固件好像是2022年的版本，正好更新一下</div></div><div class="notion-blank notion-block-19a656108e5e8095a184f9431f542212"> </div><h3 class="notion-h notion-h2 notion-h-indent-0 notion-block-19a656108e5e80358663c2ff9b666b50" data-id="19a656108e5e80358663c2ff9b666b50"><span><div id="19a656108e5e80358663c2ff9b666b50" class="notion-header-anchor"></div><a class="notion-hash-link" href="#19a656108e5e80358663c2ff9b666b50" title="使用 UTHSB_MPtool 更新 Realtek RTL9210B-CG 驅動到 v1.33.44 版本"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">使用 UTHSB_MPtool 更新 Realtek RTL9210B-CG 驅動到 v1.33.44 版本</span></span></h3><div class="notion-text notion-block-19a656108e5e80c896a2c7eb6e36f0a6"><b>事前準備：</b></div><ol start="1" class="notion-list notion-list-numbered notion-block-19a656108e5e8073a9d1dd5e046d8e82" style="list-style-type:decimal"><li><b>下載必要檔案：</b></li><ol class="notion-list notion-list-numbered notion-block-19a656108e5e8073a9d1dd5e046d8e82" style="list-style-type:lower-alpha"><ul class="notion-list notion-list-disc notion-block-19a656108e5e804b81c6c59c82cf5a42"><li><b>RTL9210B-CG 韌體 + UTHSB_MPtool</b> <a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://github.com/bensuperpc/rtl9210?tab=readme-ov-file">下載連結</a>（選擇對應版本）</li></ul></ol></ol><div class="notion-text notion-block-19a656108e5e80b5942af262a7e52b8c"><b>步驟：</b></div><ol start="1" class="notion-list notion-list-numbered notion-block-19a656108e5e8077ba1cd5ffed58c9ce" style="list-style-type:decimal"><li>解壓<b>韌體：</b></li><ol class="notion-list notion-list-numbered notion-block-19a656108e5e8077ba1cd5ffed58c9ce" style="list-style-type:lower-alpha"><ul class="notion-list notion-list-disc notion-block-19a656108e5e80bfbff8ea82c8576656"><li>解壓縮下載的 <b>RTL9210B-CG 韌體</b>。</li></ul></ol></ol><ol start="2" class="notion-list notion-list-numbered notion-block-19a656108e5e80c0b54fd0bdcb341a35" style="list-style-type:decimal"><li><b>連接硬碟盒：</b></li></ol><ol start="3" class="notion-list notion-list-numbered notion-block-19a656108e5e80baa904d43babb8b0ef" style="list-style-type:decimal"><li><b>執行 UTHSB_MPtool：</b></li><ol class="notion-list notion-list-numbered notion-block-19a656108e5e80baa904d43babb8b0ef" style="list-style-type:lower-alpha"><ul class="notion-list notion-list-disc notion-block-19a656108e5e8072b052ed4fed350f5b"><li>開啟 UTHSB_MPtool。</li></ul><ul class="notion-list notion-list-disc notion-block-19a656108e5e80dfb09dfba4056332fb"><li>在工具中選擇你的硬碟盒。</li></ul></ol></ol><ol start="4" class="notion-list notion-list-numbered notion-block-19a656108e5e80cb80adfd9c839882bf" style="list-style-type:decimal"><li><b>更新韌體：</b></li><ol class="notion-list notion-list-numbered notion-block-19a656108e5e80cb80adfd9c839882bf" style="list-style-type:lower-alpha"><ul class="notion-list notion-list-disc notion-block-19a656108e5e803ab4a6fbdc5366bbae"><li>點擊 &quot;Update Firmware&quot;。</li></ul><ul class="notion-list notion-list-disc notion-block-19a656108e5e80a1820cdc93cb92cef7"><li>選擇下載的 v1.33.44 韌體檔案。</li></ul><ul class="notion-list notion-list-disc notion-block-19a656108e5e80159ce3c40c6e5c7cd7"><li>確認更新，等待過程完成。</li></ul></ol></ol><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1bb656108e5e802f95effafa0d7254c2"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3Ae9ddf0fd-5dae-410a-b8e2-4fde219e6780%3Aimage.png?table=block&amp;id=1bb65610-8e5e-802f-95ef-fafa0d7254c2&amp;t=1bb65610-8e5e-802f-95ef-fafa0d7254c2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-19a656108e5e800c8115f4df3ce207aa">更新到v1.33.44 正好解決了問題，而且Disk Latency也從25ms減少到1ms</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-1bb656108e5e809da6e4d265ae19c131"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/attachment%3A1d63f05d-b1b3-495a-9e4f-b871bc48a4a2%3Aimage.png?table=block&amp;id=1bb65610-8e5e-809d-a6e4-d265ae19c131&amp;t=1bb65610-8e5e-809d-a6e4-d265ae19c131" alt="notion image" loading="lazy" decoding="async"/></div></figure><h2 class="notion-h notion-h1 notion-h-indent-0 notion-block-19a656108e5e803890aeeda073503c86" data-id="19a656108e5e803890aeeda073503c86"><span><div id="19a656108e5e803890aeeda073503c86" class="notion-header-anchor"></div><a class="notion-hash-link" href="#19a656108e5e803890aeeda073503c86" title="📎 参考文章"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">📎 参考文章</span></span></h2><ul class="notion-list notion-list-disc notion-block-19a656108e5e80f5a2bcdafe9d521d41"><li><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://github.com/bensuperpc/rtl9210?tab=readme-ov-file">GitHub - bensuperpc/rtl9210: All RTL9210(A/B) firmwares, tools, dump ect...</a></li></ul><ul class="notion-list notion-list-disc notion-block-19a656108e5e8099b10ee92228e1cef8"><li><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://forum.gamer.com.tw/C.php?bsn=60030&amp;snA=626346">【心得】Realtek RTL9210B-CG 韌體更新 v1.33.44 (2024.01.18) @電腦應用綜合討論 哈啦板 - 巴哈姆特</a></li></ul><ul class="notion-list notion-list-disc notion-block-19a656108e5e80fdb049d496f0c69ba7"><li><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://www.airchip.org.cn/index.php/2022/04/18/9210abfw1298/">芯片烤电池 - 【硬件】RTL9210 VA\VB\CG 1.29.8固件参数翻译及调优建议</a></li></ul><div class="notion-blank notion-block-19a656108e5e8093a156f29875515a7f"> </div></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pinecone與Cohere搭建RAG向量資料庫]]></title>
            <link>https://www.2031215.xyz/article/rag_pinecone</link>
            <guid>https://www.2031215.xyz/article/rag_pinecone</guid>
            <pubDate>Mon, 11 Mar 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[看到現在熱門有關RAG(檢索增強生成)，正好來學習一下用Pinecone與Cohere搭建RAG向量資料庫]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-70a274db5b8347189c8c2fa6cfc2ef2e"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-callout notion-gray_background_co notion-block-bf106e0c76094508bc865b5acb4493b5"><div class="notion-page-icon-inline notion-page-icon-span"><span class="notion-page-icon" role="img" aria-label="📖">📖</span></div><div class="notion-callout-text">RAG是通過能從外部知識庫搜尋相關資訊，生成更準確的回應，有效克服LLM在新知識更新與資訊檢索上的短板。</div></div><div class="notion-text notion-block-8fcec39e50b246c285eb576a76127a84">看到現在熱門有關RAG(檢索增強生成)，正好來學習一下</div><div class="notion-row notion-block-4cafa7440c254f55a9ba86b15f0de1b8"><div class="notion-column notion-block-fa924a8030eb43b6857521c0fdc34873" style="width:calc((100% - (1 * min(32px, 4vw))) * 0.5)"><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-8b8372f95abd44d381caf8b4830c7502"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2Fc4a0358d-630b-4d92-a515-45b5063cde61%2F5913167a-a30a-48ed-88f7-f42c7e2c63f3%2FUntitled.png?table=block&amp;id=8b8372f9-5abd-44d3-81ca-f8b4830c7502&amp;t=8b8372f9-5abd-44d3-81ca-f8b4830c7502&amp;width=1400&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure></div><div class="notion-spacer"></div><div class="notion-column notion-block-8c618f6c353a48dcbb2634462231d2f9" style="width:calc((100% - (1 * min(32px, 4vw))) * 0.5)"><div class="notion-text notion-block-e6e61a2587154bb5bce32f9fabe6b537">簡單就是建立一個方便給LLM檢索資料的數據庫，目前主流是使用向量資料庫(Vector Database)
利用Sentence Transformers分析數據關係，通過語義相似性加快資料檢索</div></div><div class="notion-spacer"></div></div><div class="notion-text notion-block-00b0160f914b4480a4a946a83b54fd1a">因為工作用的電筆沒有顯示卡，所以用的都是網上免費的服務資源:</div><ul class="notion-list notion-list-disc notion-block-b16b07c48f84487fbf59427a7555a2af"><li>數據源:<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://github.com/521xueweihan/HelloGitHub">HelloGitHub</a>
每月都會以markdown格式發佈有趣的開源項目</li></ul><ul class="notion-list notion-list-disc notion-block-ddbb58ab067e48879ae1c72f13c5a4f5"><li>應用框架:<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://www.notion.so/%5BLangChain%5D(%3Chttps://www.langchain.com/%3E)">LangChain</a>(Python)
包含了各種組件的接口和集成的LLM框架，Cohere和Pinecone也包含在內，之後也方便連接LLM</li></ul><ul class="notion-list notion-list-disc notion-block-21193c2ac27e4a9da5d1ef49c9bf955b"><li>opencv-python 簡繁轉換套件</li></ul><ul class="notion-list notion-list-disc notion-block-789a372a4b794f09a73a118562d873b3"><li><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://www.pinecone.io/">Pinecone</a> 是一種專門用於存儲、管理和檢索向量資料的資料庫。它擅長處理大量高維度的向量資料，無論是文本、圖像還是音頻，都可以輕鬆應對。</li><ul class="notion-list notion-list-disc notion-block-789a372a4b794f09a73a118562d873b3"><li>目前Pinecone有Free Tier可以免費存儲100,000 vectors記錄</li></ul></ul><ul class="notion-list notion-list-disc notion-block-fb8bd5ea5f614635802ef1456cc8ab7f"><li><a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://cohere.com/">Cohere AI</a>一家提供自然語言處理解決方案的公司，其基於大型語言模型（LLMs）並使用檢索增強生成（RAG）技術。</li><ul class="notion-list notion-list-disc notion-block-fb8bd5ea5f614635802ef1456cc8ab7f"><li>Cohere 現在提供試用 API 金鑰，速率限制為每分鐘 100 次 API 調用</li></ul></ul><h4 class="notion-h notion-h3 notion-h-indent-0 notion-block-04a9b3281e584f9281c6998ed08f4144" data-id="04a9b3281e584f9281c6998ed08f4144"><span><div id="04a9b3281e584f9281c6998ed08f4144" class="notion-header-anchor"></div><a class="notion-hash-link" href="#04a9b3281e584f9281c6998ed08f4144" title="1.準備環境:"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">1.準備環境:</span></span></h4><div class="notion-text notion-block-11e3bb8bc3424d18880120a22b0ed30d">先在<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://www.pinecone.io/">Pinecone</a> 和<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://cohere.com/">Cohere AI</a>註冊及取得 API 金鑰
之後在<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://www.pinecone.io/">Pinecone</a>建立index 1024大小的向量資料庫</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-93022f1863d94f9d8259494d56e081b3"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2Fc4a0358d-630b-4d92-a515-45b5063cde61%2F06548262-a351-44ca-ada9-499eff6e76e1%2FPasted_image_20240229163858.png?table=block&amp;id=93022f18-63d9-4f9d-8259-494d56e081b3&amp;t=93022f18-63d9-4f9d-8259-494d56e081b3&amp;width=486.3194580078125&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-0 notion-block-4cadfce92b3b4a60a771ab326c4f437e" data-id="4cadfce92b3b4a60a771ab326c4f437e"><span><div id="4cadfce92b3b4a60a771ab326c4f437e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#4cadfce92b3b4a60a771ab326c4f437e" title="2.載入數據:"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">2.載入數據:</span></span></h4><div class="notion-text notion-block-4a8e58e079114832998fcee7c4c3ca1a">注意要把cohere_api_key, pinecone_api_key改為自己的api_key</div><div class="notion-text notion-block-88c1becdb9b440d4a2f0620e73984bb3">完成之後可以在Pinecone查看</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-b1223fc1d88347fe82d46cb3580d57f8"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2Fc4a0358d-630b-4d92-a515-45b5063cde61%2Fb6efa4f7-6786-46c7-a98e-ee66c8d6ce11%2Fpinecone.png?table=block&amp;id=b1223fc1-d883-47fe-82d4-6cb3580d57f8&amp;t=b1223fc1-d883-47fe-82d4-6cb3580d57f8&amp;width=486.3194580078125&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><h4 class="notion-h notion-h3 notion-h-indent-0 notion-block-25f984a84b704318822e89c5c4f60696" data-id="25f984a84b704318822e89c5c4f60696"><span><div id="25f984a84b704318822e89c5c4f60696" class="notion-header-anchor"></div><a class="notion-hash-link" href="#25f984a84b704318822e89c5c4f60696" title="3.查詢數據:"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">3.查詢數據:</span></span></h4><div class="notion-text notion-block-31e9eefcb76d4a988419ac7b5b6949e2">輸出結果:</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-335d009432434d1baf3664c6540669a5"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2Fc4a0358d-630b-4d92-a515-45b5063cde61%2Faea7ff59-8b1f-412f-b8e4-1f003fd38954%2FRAG.png?table=block&amp;id=335d0094-3243-4d1b-af36-64c6540669a5&amp;t=335d0094-3243-4d1b-af36-64c6540669a5&amp;width=486.3194580078125&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure></main></div>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[自製Obsidian繁簡轉換插件]]></title>
            <link>https://www.2031215.xyz/article/zh2cn_Obsidian</link>
            <guid>https://www.2031215.xyz/article/zh2cn_Obsidian</guid>
            <pubDate>Thu, 02 May 2024 00:00:00 GMT</pubDate>
            <description><![CDATA[因為平時會用Obsidian記錄國內的文章時需要繁簡轉換，所以自己做了一個用OpenCC的JS庫作離線翻譯的插件]]></description>
            <content:encoded><![CDATA[<div id="notion-article" class="mx-auto overflow-hidden "><main class="notion light-mode notion-page notion-block-e6a057b9a0234a83acf70810da19f677"><div class="notion-viewport"></div><div class="notion-collection-page-properties"></div><div class="notion-text notion-block-0e7b65d868c74529bf3b9e3a17d0d66c">來分享一下自己最近寫個的一個Obsidian插件</div><div class="notion-text notion-block-f571875899b246fab7b9eb9a4e3ef013">因為有時會用Obsidian記錄國內的文章時，每一次都要用google翻譯轉換一次
剛好看到VSCODE有相似的插件可以繁簡轉換，看看能不能Obsidian也自己個一個插件</div><h4 class="notion-h notion-h3 notion-h-indent-0 notion-block-e351ed22d868480ebed7ce11db90711e" data-id="e351ed22d868480ebed7ce11db90711e"><span><div id="e351ed22d868480ebed7ce11db90711e" class="notion-header-anchor"></div><a class="notion-hash-link" href="#e351ed22d868480ebed7ce11db90711e" title="Obsidian繁簡轉換插件:"><svg viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></a><span class="notion-h-title">Obsidian繁簡轉換插件:</span></span></h4><div class="notion-text notion-block-20733d035d5140d8b78b8aec8778733c">
<a target="_blank" rel="noopener noreferrer" class="notion-link" href="https://github.com/s2031215/zh2cn-Converter-obsidian">https://github.com/s2031215/zh2cn-Converter-obsidian</a></div><div class="notion-text notion-block-f3f07431db3f49c8aae361ad1816d4fb">
基本是用OpenCC的JS庫作離線翻譯，繁轉簡和簡轉繁也可以</div><figure class="notion-asset-wrapper notion-asset-wrapper-image notion-block-130296eda1ad43a2a800b111d7e5568d"><div style="position:relative;display:flex;justify-content:center;align-self:center;width:100%;max-width:100%;flex-direction:column;height:100%"><img style="object-fit:cover" src="https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2Fc4a0358d-630b-4d92-a515-45b5063cde61%2F00bc5c9b-9b26-42ec-a312-fefa644b14de%2FUntitled.png?table=block&amp;id=130296ed-a1ad-43a2-a800-b111d7e5568d&amp;t=130296ed-a1ad-43a2-a800-b111d7e5568d&amp;width=486.3194580078125&amp;cache=v2" alt="notion image" loading="lazy" decoding="async"/></div></figure><div class="notion-text notion-block-d6196858253b4437a2389508c5cea4c5">大家有興趣可以安裝試試，有問題歡迎提出，我會盡快更新</div><div class="notion-blank notion-block-6c5e6b5ab6b84f63b0f9acf608e9067f"> </div></main></div>]]></content:encoded>
        </item>
    </channel>
</rss>