Zleap-AI/SAG-Wiki

A lightweight knowledge base for people and agents, with ultra fast indexing and most precise retrieval.

SAG-Wiki in plain terms

What it is: A lightweight desktop app that turns your local files (documents, notes, code) into a searchable knowledge base — for you and for AI coding agents. You add a folder, it indexes the contents, and you can search, ask questions with cited answers, or let an agent query the same index.

The core idea: Most similar tools ("LLM Wiki" or "vector RAG") use AI models to prepare and search your knowledge. SAG-Wiki deliberately avoids that for indexing and retrieval — no LLM calls, no embeddings. Instead it uses its own retrieval method called SAG2, which builds a local index and finds supporting passages using "Jev evidence scoring" and query-time expansion. LLMs are only involved when you explicitly ask for a generated answer.

Why that matters:

  • Light: ~14 MB download, no separate database to install.
  • Fast: claims to index a million characters in about 200 ms.
  • Precise: the README says SAG2 outperforms RAG, GraphRAG, and other approaches on benchmark tests (with a chart showing recall improvements on three question-answering datasets).
  • Private: your original files stay on your machine; only when you use in-depth retrieval or Q&A does it send the necessary questions/passages to the external services you configure.

What you can do with it:

  • Add a local folder and search across files with passage-level results.
  • Ask questions in a chat interface; answers come with citations you can click to see the exact source passage.
  • Read/edit Markdown, preview HTML, explore related documents.
  • Search from the terminal via a CLI.
  • Give a coding agent (Claude Code, Codex, OpenCode) access to the same knowledge base by installing a "Skill" — a one-sentence setup instruction is provided.

Tech stack: Built with Rust (core engine and CLI), Tauri (desktop shell), and Svelte (interface). The CLI is the runtime foundation: it starts a shared local service that both the terminal and the desktop app connect to.

Platforms: Desktop releases for macOS and Windows; the npm CLI package ships prebuilt binaries for macOS Apple Silicon and Windows x64 (no Rust toolchain needed).

License & community: MIT-licensed, open source, with Discord and WeChat community channels.

One caveat to note: The README links to an arXiv paper (2610.22588) and a separate benchmark repository for the SAG2 method — those are the places to verify the performance claims if you want to dig deeper.

Related

  • Project
  • Project
  • Project
  • Project