面向 HTML 的本地知识系统

重新定义世界学习的方式。

sodarie 是为那些已经不满足于静态 markdown 仓库的人打造的 AI 原生笔记系统。在本地 HTML 笔记里直接构建可交互的课程、研究地图、代码、媒体和私人知识库。

现在完全免费 没有订阅、没有内购,也没有在早期版本里被锁住的功能。
本地优先AI 真的会改笔记用 HTML 取代普通 markdown
test_html/RNN/LSTM_Gates_Explained.html

LSTM Gates — Interactive Notes

Created: 2026年5月16日 Modified: 2026年5月16日

LSTM Gates Explained

An RNN with a protected memory lane.

Long Short-Term Memory networks solve the vanishing gradient problem by introducing a cell state (conveyor belt) and three gating mechanisms that carefully add or remove information.

🚫The Vanilla RNN Problem

ht = tanh(Wh ht-1 + Wx xt)

Each new hidden state overwrites the old one. Over long sequences, gradients either explode or vanish.

🏭The Conveyor Belt

Imagine an assembly line (the cell state) running straight through. At each station, gates decide:

  • Forget Gate: drop old products?
  • Input Gate: add new ones?
  • Output Gate: what to expose?

🗑️Forget Gate

ft = σ(Wf · [ht-1, xt] + bf)

Discards information from the cell state when a new context starts.

📥Input + Output Gates

it = σ(Wi · [ht-1, xt] + bi)
ot = σ(Wo · [ht-1, xt] + bo)

🎮Interactive Demo: The Conveyor Belt

Thecatsatonthemat
h0 h1 h2 h3 h4 h5
Cell State (conveyor) Hidden State (output)

Retrieval-Augmented Generation

Giving LLMs an open-book exam instead of a closed-book memory test.

RAG augments a language model by fetching relevant external documents from a knowledge base at inference time, grounding generation in facts.

📚The Exam Analogy

ParadigmAnalogyHallucination
Plain LLMClosed-bookHigh
Fine-tuningStudyingMedium
RAGOpen-bookLow

🔍Step 1: Indexing

Documents are chunked and embedded into a high-dimensional vector space.

vdoc = fenc(chunk) ∈ ℝd

🎯Step 2: Retrieval

score(q, d) = (vq · vd) / (‖vq‖ ‖vd‖)

Return the top-k chunks using approximate search like HNSW for billion-scale retrieval.

✍️Step 3: Generation

Use the following context to answer.
If the answer is not in the context, say "I don't know".

Context: {retrieved chunks}
Question: {query}
Answer:

🎮Interactive Demo: Vector Search

Convolution Operators

Sliding a flashlight over an image to find patterns.

Convolution is a local, translation-equivariant operator that learns spatial hierarchies by sliding learnable filters across an input grid.

🔦The Flashlight Metaphor

Imagine shining a small flashlight (the kernel) over a photograph, one patch at a time. The collection becomes a feature map.

📐Discrete 2D Convolution

(I * K)(i, j) = Σm Σn I(i+m, j+n) · K(m, n)

Where I = input image, K = kernel weights.

🎛️Classic Hand-Crafted Kernels

KernelEffect
Sobel XHorizontal edges
GaussianSmoothing
SharpenEnhance detail

📏Padding & Stride

O = ⌊(I − K + 2P) / S⌋ + 1

Padding adds a zero border. Stride controls how many pixels the flashlight jumps.

🎮Interactive Demo: Kernel Slideshow

Input (7×7)

Kernel (Sobel X)

-101 -202 -101

Position: (0, 0)

Output (5×5)

Seq2Seq & Cross-Attention

One RNN reads; another writes. Attention lets them whisper to each other.

Sequence-to-sequence models map variable-length inputs to variable-length outputs using an encoder-decoder pair. Attention liberates the decoder from a single fixed-size context vector.

🍾The Encoder-Decoder Bottleneck

A classic Seq2Seq compresses the entire input into one context vector c.

Fitting a 50-word paragraph into 256 dims is like fitting a novel into a tweet.

🎯Attention to the Rescue

ct = Σj=1T αtj · hjenc

The decoder gets a different context vector at every step.

📊Alignment Weights

αtj = exp(etj) / Σk exp(etk)

where etj = score(st-1, hj).

🌉From Seq2Seq to Transformers

Seq2Seq attention is cross-attention: queries from decoder, keys/values from encoder. This exact pattern survives in Transformers today.

🎮Interactive Demo: Alignment Heatmap

Source (EN)
Iloveyouverymuch
Target (FR)
Je t'aime beaucoup

笔记即应用

不只是 markdown 仓库

Markdown 适合纯文本。sodarie 把每篇笔记当作一个小型网页应用:学习计划、研究画布、图表、模拟、AI 生成的小工具,都能放进同一个本地文件里。

可交互的 HTML 笔记

AI 真的改文件

会动手改文件的 AI

sodarie 的 AI 不止给建议——它直接动笔。看着它在笔记里塞进一块黄色提示框、重新组织段落、把学习卡片重构掉,所有修改都写回硬盘上的 .html 文件。右边这段演示完全跑在本地模型上:没有 API key、没有云端调用,你的硬件在做所有事情。

本地 AI 测试

AI 在笔记里直接编辑

原地编辑

任何文件,一键直接改

不用导出,也不用另开编辑器。在任何笔记上切到编辑模式,原地改写 HTML —— 加一个区块、删一张图表、调一段结构,或者贴入外部的代码片段。随时切换字体,再用格式刷一键复制标题、段落或区块的样式,让整篇笔记的排版一格不差地对齐。Save 直接写回硬盘上的文件,Cancel 一键回滚。新建、重命名、移动、丢进回收站,全在 vault 里完成。

原地 HTML 编辑

看见你的思路

一张真正能读的 vault 图谱

搜索你的 vault,跟着 backlink 走,再让 sodarie 把相关笔记串成一条学习路径。图谱由 Cytoscape + fcose 布局在本地渲染,几千个节点也跑得飞快,平时不打扰,需要时一目了然。

本地 vault 知识图谱

vault 任你摆布

拖、放、重排——改动直接落到硬盘

拖动侧栏排序。把文件拖进另一个文件夹,硬盘上的目录结构会立刻同步。把笔记移到别的目录、重命名也不会丢 backlink —— 文件系统始终是真相,sodarie 只是把可见的结构跟着你的动作走。

侧栏拖拽 + 文件夹移动

AI 你来挑

一键换模型,从不被绑死

本地模型 —— Ollama、LM Studio、任何跑在你硬件上的 OpenAI 兼容接口 —— 和云端 API 之间一键切换。sodarie 从来不绑你在某一家服务商上,切换也不会重启应用。同一条提示词,换个大脑,立刻就生效。

本地 AI 与云端 API 一键切换

提示词造 vault

一句提示词,搭出一整个 vault

不会写 HTML?没关系。描述你想要的 vault —— 「六周线性代数课程」、「transformer 可解释性研究合集」、「每日日记」—— 或者直接贴入参考资料,sodarie 就会在你硬盘的文件夹里把整个 vault、连带所有笔记一次搭好。不用找模板,不用写样板。

AI 一键搭建全新 vault

快速切换

一击直达任何笔记

Cmd+P 或 Ctrl+P 模糊查找任何笔记。点左上角的搜索框,对所有笔记做全文搜索。CJK 支持完好,模糊匹配可用,跳到笔记内的某个标题只要两次按键。

Cmd/Ctrl+P 快速切换与全文搜索

看着舒服才写得下去

主题随你换

在暖米、深夜、护眼、超高对比等多套配色之间一键切换,字号也能从紧凑挑到超大。所有笔记瞬间换上新外观,不用刷新、不用插件。

暖米色

sodarie 的标志配色,白天长时间学习也不刺眼。

深夜

深棕黑底配暖色高光,专为夜晚写作与 OLED 屏幕设计。

护眼羊皮纸

温润纸张色调,适合长时间阅读笔记与研究资料。

高对比

纯白底配深黑字,加单色高光,会议投屏与分享场景下最清晰。

字号

Aa 紧凑
Aa 默认
Aa 舒适
Aa 大字号

定位

为已经准备好告别静态笔记的人而做。

旧 vault 你来组织文件

文件夹、markdown、插件,还有一张往往变成新负担的关系图。

sodarie 会反过来工作的知识

本地 HTML 笔记可以渲染工具、执行受信任的交互,借助 AI 直接变成课程。

核心系统

一本带引擎的笔记本。

支持 CJK 的全文搜索

针对中文、日文和混合内容做了三元组分词。

知识图谱

基于 Cytoscape + fcose 布局的 backlink 图,看着你的思路慢慢展开。

逐文件信任系统

脚本默认在沙箱 iframe 里跑,可让 AI 在你信任文件前做一次安全审计。

不止 markdown

把媒体、代码、图表、3D 内容统统塞进同一个本地 HTML 文件。

快速切换

Cmd+P 或 Ctrl+P 模糊查找任何笔记,内建中文模糊匹配。

跨平台

macOS 和 Windows 都已发布,下载按钮会根据访客系统自动切换。

本地优先

默认私密,由你的电脑驱动。

一本带引擎的笔记本。

sodarie 是 desktop-first 的应用,全部在你电脑上运行。你的笔记、vault、AI prompt —— 都不会经过 sodarie 的服务器,因为根本没有 sodarie 服务器。唯一会发出的网络请求,是你自己明确配置的(一个本地模型,或者你信任的 AI 服务商)。

接入本地 AI

把 sodarie 指向跑在你硬件上的 Ollama、LM Studio,或任何 OpenAI 兼容接口。提示词、上下文、回复都不出本机

Vault 留在你的硬盘上

.html 文件,放在你选的文件夹里。没有云同步、没有 sodarie 账号、没有第三方存储。想怎么备份就怎么备份。

零遥测

没有 analytics、没有使用统计上报、没有崩溃日志回传。你写什么、怎么写、问 AI 什么,全在你和你电脑之间,仅此而已。

逐文件信任门控

可交互 HTML 默认沙箱化。脚本和网络访问只有在你(或 AI 安全审计)明确信任该文件后才会执行。不会有任何东西在你背后偷偷跑。

承诺:哪怕你的电脑断网,sodarie 照常工作。唯一离开你电脑的数据,是你主动发出去的数据。

开始搭建那个替代旧仓库的新 vault。

sodarie 0.1.6 已经在 macOS 和 Windows 上可用。下载按钮会在浏览器里本地判断你的设备。

现在完全免费 没有订阅、没有内购,也没有在早期版本里被锁住的功能。