Sage-Wiki 是 AI Skill Hub 本期精选AI工具之一。综合评分 7.5 分,整体质量较高。我们推荐使用将其纳入你的 AI 工具库,帮助提升工作效率。
Sage-Wiki是一款开源的AI工具,用于创建个人知识库。它可以将论文、文章和笔记等内容整合起来,形成一个个人知识库。Sage-Wiki使用Go语言开发,提供了一个易于安装和使用的界面。它的核心价值在于能够帮助用户快速地查找和组织个人知识。
Sage-Wiki 是一款基于 Go 开发的开源工具,专注于 Go、知识库、AI工具 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
Sage-Wiki是一款开源的AI工具,用于创建个人知识库。它可以将论文、文章和笔记等内容整合起来,形成一个个人知识库。Sage-Wiki使用Go语言开发,提供了一个易于安装和使用的界面。它的核心价值在于能够帮助用户快速地查找和组织个人知识。
Sage-Wiki 是一款基于 Go 开发的开源工具,专注于 Go、知识库、AI工具 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:go install(推荐) go install github.com/xoai/sage-wiki@latest # 方式二:从源码编译 git clone https://github.com/xoai/sage-wiki cd sage-wiki go build -o sage-wiki . # 方式三:下载预编译二进制 # 访问 Releases 页面下载对应平台二进制文件 # https://github.com/xoai/sage-wiki/releases
# 查看帮助 sage-wiki --help # 基本运行 sage-wiki [options] <input> # 详细使用说明请查阅文档 # https://github.com/xoai/sage-wiki
# sage-wiki 配置说明 # 查看配置选项 sage-wiki --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export SAGE_WIKI_CONFIG="/path/to/config.yml"
```
git clone https://github.com/xoai/sage-wiki.git && cd sage-wiki cd web && npm install && npm run build && cd .. go build -tags webui -o sage-wiki ./cmd/sage-wiki/ ```
sage-wiki serve --ui
```bash
sage-wiki compile
sage-wiki compile
```bash
docker pull xoai/sage-wiki:latest
docker build -t sage-wiki . docker run -d -p 3333:3333 -v ./my-wiki:/wiki -e GEMINI_API_KEY=... sage-wiki ```
Available tags: :latest (main branch), :v1.0.0 (releases), :sha-abc1234 (specific commits). Multi-arch: linux/amd64 and linux/arm64.
See the self-hosting guide for Docker Compose, Syncthing sync, reverse proxy, and LLM provider setup.
sources: - path: raw # or vault folders like Clippings/, Papers/ type: auto # auto-detect from file extension watch: true
output: wiki # compiled output directory (_wiki for vault overlay)
sage-wiki lets you use different LLM providers for different tasks. The api section sets the primary provider for generation (summarize, extract, write, lint, query), while embed can use a completely separate provider for embeddings — each with its own credentials and rate limits.
Use cases: - Cost optimization — cheap model for bulk summarization, quality model for article writing - Best-of-breed — Claude for generation, OpenAI for embeddings, Ollama for local search - Subscription mixing — use your ChatGPT subscription for generation and Gemini subscription for embeddings
Example: Claude for generation + OpenAI embeddings
api:
provider: anthropic
api_key: ${ANTHROPIC_API_KEY}
models:
summarize: claude-haiku-4-5-20251001 # cheap for bulk work
extract: claude-haiku-4-5-20251001
write: claude-sonnet-4-20250514 # quality for articles
lint: claude-haiku-4-5-20251001
query: claude-sonnet-4-20250514
embed:
provider: openai
model: text-embedding-3-small
api_key: ${OPENAI_API_KEY}
Example: Subscription auth with two providers
sage-wiki auth login --provider anthropic
sage-wiki auth import --provider gemini
api:
provider: anthropic
auth: subscription
embed:
provider: gemini
# no api_key needed — uses imported Gemini subscription credentials
The models section controls which model is used per task, all within the primary provider. Different models can have very different cost/quality tradeoffs — use smaller models (haiku, flash, mini) for high-volume passes like summarization, and larger models (sonnet, pro) for article writing and Q&A.
sage-wiki pack install academic-research sage-wiki pack apply academic-research --mode merge
sage-wiki pack install https://github.com/someone/their-pack.git
sage-wiki scales from a single-person wiki to a shared knowledge base for teams of 3-50. Three deployment patterns:
Git-synced repo (3-10 people) — the wiki lives in a Git repository. Everyone clones, compiles locally, and pushes. The compiled wiki/ directory is tracked; the database is .gitignored and rebuilt on each compile.
Shared server (5-30 people) — run sage-wiki on a server with the web UI. Team members browse in the browser and connect agents via MCP over SSE.
Hub federation (multi-project) — each project has its own wiki. The hub system federates them into a single search interface with sage-wiki hub search.
```bash
| Guide | Description |
|---|---|
| [Agent Memory Layer](docs/guides/agent-memory-layer.md) | MCP setup, skill files, capture workflows, read-capture-evolve loop |
| [Team Setup](docs/guides/team-setup.md) | Git-synced, shared server, and hub federation deployment patterns |
| [Contribution Packs](CONTRIBUTING.md) | Creating packs, parser authoring, registry submission |
| [Large Vault Performance](docs/guides/large-vault-performance.md) | Tiered compilation, backpressure, code parsers, 100K+ scaling |
| [Search Quality](docs/guides/search-quality.md) | Chunk indexing, query expansion, re-ranking, graph expansion |
| [Output Trust](docs/guides/output-trust.md) | Grounding verification, consensus, promotion/demotion lifecycle |
| [Subscription Auth](docs/guides/subscription-auth.md) | OAuth login, token import, credential management |
| [Self-Hosted Server](docs/guides/self-hosted-server.md) | Docker Compose, Syncthing, reverse proxy, VPS deployment |
| [Configurable Relations](docs/guides/configurable-relations.md) | Custom ontology types, multilingual synonyms, type restrictions |
| [Local Models](docs/guides/local-models.md) | Ollama setup, GPU/CPU routing, per-pass model config |

config.yaml is created by sage-wiki init. Full example:
```yaml version: 1 project: my-research description: "Personal research wiki"
The ontology has 8 built-in relation types: implements, extends, optimizes, contradicts, cites, prerequisite_of, trades_off, derived_from. Each has default keyword synonyms used for automatic extraction.
You can customize relations via ontology.relations in config.yaml:
[a-z][a-z0-9_]*.Relations are extracted using block-level keyword proximity — a keyword must co-occur with a [[wikilink]] in the same paragraph or heading block. This prevents spurious edges from cross-paragraph matches.
You can also restrict which entity types a relation connects:
ontology:
relation_types:
- name: curated_by
synonyms: ["curated by", "organized by"]
valid_sources: [exhibition, program]
valid_targets: [artist]
When valid_sources/valid_targets are set, edges are only created if the source/target entity type matches. Empty = all types allowed (default).
Zero config = identical to current behavior. Existing databases are migrated automatically on first open. See the full guide for domain-specific examples, type-restricted relations, and how extraction works.
trust: include_outputs: verified # "false" (exclude all), "verified" (confirmed only), "true" (legacy) consensus_threshold: 3 # confirmations needed for auto-promote grounding_threshold: 0.8 # minimum grounding score similarity_threshold: 0.85 # cosine similarity for question matching auto_promote: true # auto-promote when thresholds met
**How it works:**
1. **Query** — sage-wiki answers your question. The output is written to `wiki/under_review/` as pending.
2. **Consensus** — If the same question is asked again and produces the same answer from different source chunks, confirmations accumulate. Independence is scored via Jaccard distance between chunk sets.
3. **Grounding** — Run `sage-wiki verify` to check claims against source passages via LLM entailment.
4. **Promotion** — When both consensus and grounding thresholds are met, the output is promoted to `wiki/outputs/` and indexed into search.
bash
parsers: external: true # enable external parser loading trust_external: true # acknowledge that parsers run unsandboxed ```
Security: external parsers run with timeout enforcement (30s default, 120s max) and environment stripping (only PATH, HOME, LANG). They require double opt-in: parsers.external: true to load parser definitions, and parsers.trust_external: true to acknowledge that parsers execute as unsandboxed subprocesses. Packs with parsers also require --enable-parsers during pack apply.
See CONTRIBUTING.md for the full parser authoring guide.
trust: include_outputs: verified # quarantine until verified compiler: default_tier: 1 # index fast, compile on demand auto_commit: true # audit trail ```
See the full team setup guide for source organization, agent integration workflows, knowledge capture pipelines, scaling considerations, and ready-to-use recipes for startups, research labs, and Obsidian vault teams.
go install github.com/xoai/sage-wiki/cmd/sage-wiki@latest
api: provider: gemini api_key: ${GEMINI_API_KEY} # env var expansion supported # auth: subscription # use subscription credentials instead of api_key # requires: sage-wiki auth login --provider <name> # supported providers: openai, anthropic, gemini # base_url: # custom endpoint (OpenRouter, Azure, etc.) # rate_limit: 60 # requests per minute # extra_params: # provider-specific params merged into request body # enable_thinking: false # e.g., disable Qwen thinking mode # reasoning_effort: low # e.g., DeepSeek reasoning control
#
sage-wiki auth import --provider claude sage-wiki auth import --provider copilot sage-wiki auth import --provider gemini
Then set `api.auth: subscription` in your `config.yaml`:
yaml api: provider: openai auth: subscription ```
All commands will use your subscription credentials. Tokens refresh automatically. If a token expires and can't refresh, sage-wiki falls back to api_key with a warning.
Limitations: Batch mode is unavailable with subscription auth (auto-disabled). Some models may not be accessible via subscription tokens. See the subscription auth guide for details.

sage-wiki query "How does flash attention optimize memory?"
项目简介:sage-wiki 是一个记录决策的工具,带有合理性
环境依赖与系统要求:需要 Node.js 构建前端资产
安装:首先clone 仓库,安装依赖,编译前端资产,使用 go build
使用教程:包括 Agent Memory Layer、Team Setup、Contribution Packs 等
配置说明:编辑 config.yaml 添加 API 密钥,选择 LLMs
API/接口说明:CLI 只支持(无 web UI)
工作流 / 模块说明:包括 MCP 集成,Compiler Pipeline 等
常见问题:使用 sage-wiki query 查询答案
Sage-Wiki是一款功能强大的AI工具,能够帮助用户快速地查找和组织个人知识。它的界面易于使用,且提供了一个易于安装的界面。然而,Sage-Wiki的性能和稳定性需要进一步优化。
该工具未明确声明开源协议,商业使用前请联系原作者确认授权范围,避免侵权风险。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
经综合评估,Sage-Wiki 在AI工具赛道中表现稳健,质量良好。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | sage-wiki |
| 原始描述 | 开源AI工具:An LLM-compiled personal knowledge base. Drop in your papers, articles, and not。⭐534 · Go |
| Topics | Go知识库AI工具 |
| GitHub | https://github.com/xoai/sage-wiki |
| 语言 | Go |
收录时间:2026-06-09 · 更新时间:2026-06-09 · License:未公布 · AI Skill Hub 不对第三方内容的准确性作法律背书。