MEMORY FOR YOUR AGENT · README
Personal RAG
v0.1.5
What it does, how to install it, how to use it, and where your data lives — the whole manual on one page.
它是什么、怎么装、怎么用、数据在哪——整本手册就在这一页。
Why Personal RAG为什么是 Personal RAG
Your agent can search the open web. It cannot read your own notes, meetings and course transcripts — unless something indexes them.
Personal RAG does exactly that and nothing else: a folder of Markdown in, cited answers out, on your machine. The knowledge base is a folder, not an account.
你的 agent 能搜整个公网,但读不到你自己的笔记、会议与课程转写——除非有人把它们索引起来。
Personal RAG 只做这件事:一个 Markdown 文件夹进去,带出处的答案出来,全程在本机。知识库是一个文件夹,不是一个账号。
What it does能做什么
- Point it at any folder of Markdown; no Obsidian required, compatible if you use it.
- Ingest and index, manually or automatically as files appear.
- Search or ask; every answer carries its source file and passage.
- Front doors: the desktop UI (which also serves MCP), the local HTTP API, and MCP for agents.
- Maintenance tools: reindex, audit, doctor, and query labelling for evaluation.
- 指向任意 Markdown 文件夹;不用 Obsidian,用也完全兼容。
- 入库与建索引,手动或自动盯着文件夹。
- 搜索或提问,每个答案都带出处:哪个文件、哪一段。
- 入口:桌面 UI(同时是 MCP 服务端)、本地 HTTP API、给 agent 的 MCP。
- 维护工具:reindex、audit、doctor,以及给评测用的查询标注。
Install安装
Windows installer. After launching, pick the vault folder (your notes) and a data folder for the index — keep the data folder outside the vault.
The installer bundles the 512-D bge-small-zh-v1.5 model, so retrieval works offline out of the box. The 1024-D bge-m3 model is optional and is not bundled (about 2.2 GB).
Switching to bge-m3: put the model cache under <data folder>\models, open Settings → Model → Local embedding model, choose bge-m3, save, then click Reindex. A full rebuild takes about an hour; the old 512-D index is kept as lance-small-bak and tantivy-small-bak, so you can switch back. Staying on the bundled model needs no reindex.
Windows 安装包。启动后选 vault 目录(你的笔记)和索引数据目录——数据目录不要放进 vault 里。
安装包内置 512 维的 bge-small-zh-v1.5 模型,装完即可离线检索。1024 维的 bge-m3 是可选项,不随包(约 2.2 GB)。
换成 bge-m3:把模型缓存放到 <数据目录>\models,打开「设置 → 模型 → 本地嵌入模型」,选 bge-m3,保存后点「重建索引」。全量重建约 1 小时;旧的 512 维索引会保留为 lance-small-bak 与 tantivy-small-bak,可以切回。继续用随包模型则不需要重建。
How to use使用说明
- Settings: choose vault and data folder, save.
- Turn on auto-ingest, or press ingest then index.
- Ask a question in the search box; check the citation under each hit.
- For an agent: open Settings → MCP, copy the generated block into your client. It runs
personal-rag-desktop.exe mcp --read-only; no separate CLI is needed. - Scripts can use the local HTTP API; a standalone CLI is available separately if needed.
- 设置里选 vault 与数据目录,保存。
- 打开自动入库,或手动点 ingest 再 index。
- 在搜索框提问,看每条结果的出处。
- 给 agent 用:设置 → MCP 配置,复制生成的片段到客户端。它执行
personal-rag-desktop.exe mcp --read-only,不需要单独的 CLI。 - 脚本可以用本地 HTTP API;需要独立 CLI 的可以另外提供。
Data, privacy, limits数据、隐私、限制
The vault is the source of truth; the index is derived and can be rebuilt. Do not delete the data folder by hand — run reindex instead.
Retrieval and indexing run locally. Changing chunking or embedding parameters requires bumping the index version and rebuilding, otherwise results silently degrade.
vault 是真相源,索引是派生的,可以重建。别手动删数据目录——用 reindex。
检索与索引都在本地。改切分或嵌入参数必须提升索引版本并重建,否则结果会悄悄变差。
Version, update, tech版本、更新、实现
Version 0.1.5. Updates: the desktop app checks a manifest at pra-updates.bimon.net and installs only after you confirm.
Rust; SQLite plus a vector store and a keyword index; MCP server over stdio; evaluation sets for both human-style and agent-style queries.
版本 0.1.5。更新:桌面端读 pra-updates.bimon.net 的清单,你确认后才装。
技术:Rust;SQLite + 向量库 + 关键词索引;MCP server 走 stdio;自带人话与 agent 风格两套评测集。