xinn261 downloadsBilingual Qwen assistant that reads your vault: understand, organize, and integrate your notes.
A bilingual (中文 / English) Qwen assistant that lives inside Obsidian — read, organize, and merge your notes without leaving the vault.
双语 Qwen 笔记助手:用你自己的 OpenAI 兼容网关,理解、整理、整合知识库。 回答带引用角标,点击直达原文;除你点击确认的写入外,永不静默修改笔记。


One sidebar, three tabs:
| Tab | Tools | Writes to your notes? |
|---|---|---|
| Chat | Multi-session chat (new / switch / rename / delete, survives restarts); vault-wide Q&A with clickable [1][2] citation chips; ask about the current note or a selection; one-click note anatomy (summary / key concepts / open questions); Markdown answers with a copy button |
No |
| Organize | Index health banner (sync/rebuild), related notes with heading + snippet + score, semantic search result cards, tag suggestions with current tags and batch apply, near-duplicate detection with open-both/copy actions | Tags only — automatically inside whitelisted folders, one click elsewhere |
| Integrate | Note picker with selected counter / select-all / clear, compare 2–10 notes (consensus / divergence / complementary), editable merge draft with per-point sources, knowledge-gap analysis with retrieved-context count, raw-model fallback when JSON parsing fails | Only when you click “create note” |
UI strings are fully bilingual — switch in the sidebar header or in settings (it can also follow your Obsidian locale).
qwen3.8-27b chat + qwen3-embedding-8b
embeddings); change the base URL, models, and key in settings. Ollama, LM Studio,
vLLM, DashScope-compatible mode, one-api/new-api gateways all work.Community directory: search for Xi Qwen in Settings → Community plugins, or open community.obsidian.md/plugins/xi-qwen.
BRAT (beta): paste https://github.com/zhang66633/obsidian-xi into the BRAT plugin.
Manual: copy main.js, manifest.json, and styles.css into
<your vault>/.obsidian/plugins/xi-qwen/, then enable the plugin in Settings → Community plugins.
data.json), check the base URL, and click Test connection.| Command | What it does |
|---|---|
| Open Xi sidebar | Focus the chat panel |
| Ask Xi about selection | Explain the selected text in the context of the current note |
| Xi: Understand current note | Summary + key concepts + open questions for the active note |
| Rebuild Xi index | Full re-index (also fills missing embeddings) |
.obsidian/plugins/xi-qwen/data.json; it never leaves your
machine except in requests to your endpoint.cache.json, sessions.json). Deleting them is safe; the index rebuilds.created and source frontmatter.npm install
npm run dev # esbuild watch → main.js
npm run build # tsc --noEmit + production bundle
npm test # vitest (core logic, HTTP mocked — no network needed)
npm run lint # eslint-plugin-obsidianmd
npm run check # lint + test + build
Architecture
flowchart LR
subgraph Core["src/core — zero Obsidian imports"]
IDX[NoteIndex<br/>chunk + mtime/hash]
VS[VectorStore<br/>base64 Float32]
RAG[RAG<br/>retrieve + citations]
LLM[LLM client<br/>Transport injected]
ANA[Anatomy / Insight<br/>prompts + parsers]
SES[SessionStore<br/>serialized writes]
end
subgraph Obs["src/obsidian — glue"]
VIEW[ChatView]
SET[Settings tab]
PORT[VaultPort]
GW[requestUrl transport]
end
PORT --> IDX
IDX --> VS
IDX --> RAG
LLM --> GW
VIEW --> IDX
VIEW --> SES
VIEW --> ANA
SET --> LLM
src/core/ is pure TypeScript: indexing, vector math, RAG, prompt builders/parsers, and the
LLM client with an injected transport. src/obsidian/ holds views, ports, and settings, so core
logic runs in plain Node and is unit-tested without Obsidian.
Releasing: bump all three version files with
npm version 0.5.1 --no-git-tag-version, commit, then push a tag equal to
manifest.json.version. .github/workflows/release.yml runs the checks, generates a build
provenance attestation, and creates a draft GitHub release with main.js, manifest.json,
and styles.css.
Development notes (plan / decisions / pitfalls / test log) live in docs/.
MIT © Zhe
希XI 是一个住在 Obsidian 侧边栏里的双语 Qwen 助手,三个标签页:
[1][2] 引用角标;也可以问当前笔记、解释选中文字,
或一键做「笔记解剖」(摘要 / 关键概念 / 待解问题)。回答按 Markdown 渲染,可一键复制。created + source frontmatter);
模型不按 JSON 输出时展示原文并可保存。隐私与联网:笔记只会发送到你亲自配置的接口;无遥测、无账号、无广告。
API Key 保存在本机插件目录的 data.json,索引与会话缓存在同目录,删掉可重建。
白名单外的任何改动都只是建议,点一下才写入;对比/合并笔记只有点「创建」才会落盘。
安装:社区目录搜索 Xi Qwen;或把 main.js / manifest.json / styles.css
拷进 <你的库>/.obsidian/plugins/xi-qwen/ 后启用。
要求:Obsidian 1.13.0+;任意 OpenAI 兼容端点(需同时提供对话模型与向量模型)。
开发:核心逻辑(src/core/)零 Obsidian 依赖,可在 Node 下单测;开发文档见 docs/。