Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

805 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

llm_wiki_banner

๐Ÿง  Karpathy LLM Wiki Plugin for Obsidian

An Obsidian plugin that turns your notes into a connected, queryable knowledge base โ€” the Karpathy LLM Wiki idea, built into the editor where you already write.

Obsidian Review Perfect Score โ€ข Zero-embedding graph retrieval โ€ข 10-language native โ€ข Works with every provider Local-first โ€ข No backend โ€ข GDPR-Friendly

Version License Obsidian Languages Providers
Maintenance Build Status Author
GitHub Stars Downloads Release Obsidian plugin Ask DeepWiki

English | ็ฎ€ไฝ“ไธญๆ–‡ | ็น้ซ”ไธญๆ–‡ | ๆ—ฅๆœฌ่ชž | ํ•œ๊ตญ์–ด | Deutsch | Franรงais | Espaรฑol | Portuguรชs | Italiano

Official Site | Obsidian Marketplace | Blog | Discussions

๐Ÿค” Why this plugin? | ๐Ÿš€ Quick Start | โœจ Features | ๐ŸŒ Ecosystem | ๐Ÿ” How Retrieval Works | ๐Ÿค– Models | โ“ FAQ

ko-fi โ† If this plugin has helped you, feel free to buy me a coffeeโ™ฅ๏ธ or drop a star๐ŸŒŸโ†—


๐Ÿ“‘ Contents


๐Ÿค” Why this plugin?

You write notes. They sit in folders. Finding what relates to what means remembering threads you forgot months ago.

Other open-source reimplementations of Karpathy's LLM Wiki idea exist โ€” but none of them ships as a one-click Obsidian plugin. Most are CLI tools, Claude Code skills, or separate desktop apps. We are the only one with native UI, in-vault storage, and Obsidian's own Graph View built in.

How we compare

Karpathy LLM Wiki (this plugin) nashsu / llm_wiki SamurAIGPT / llm-wiki-agent sdyckjq / llm-wiki-skill atomicstrata / llm-wiki-compiler
Delivery & install โœ… 5 min โ€” One-click Obsidian plugin: Community Plugins โ†’ Install โ†’ pick provider โ†’ Ingest โŒ 30 min+ โ€” Compile/download Tauri binary, configure CLI โŒ 15 min โ€” Claude Code subscription + skill install โŒ 10 min โ€” Claude Code/Codex subscription + skill setup โŒ 30 min+ โ€” pip install + Python SDK + local server
Architecture & dependencies โœ… Zero dependencies โ€” no vector DB, no embedding model, no external processes (PPR over [[wiki-link]] graph, by design) ๐ŸŸก Embeds Python runtime + sigma.js + sqlite; optional embeddings off by default ๐ŸŸก Uses Claude Code's environment โ€” not self-contained; no embeddings ๐ŸŸก Requires separate platform runtime; no embeddings โŒ Requires Python + embedding model + vector DB (mandatory)
i18n (UI + wiki output) โœ… 10 languages (independent UI / output) ๐ŸŸก 2 (EN / ไธญๆ–‡) โŒ English only โŒ English only โŒ English only
LLM providers โœ… 12+ (incl. Codex OAuth, Bedrock, LM Studio, Ollama, Anthropic-compatible, Kimi, GLM, MiniMax, DeepSeek) ๐ŸŸก OpenAI-compatible ๐ŸŸก Subscription via Claude Code ๐ŸŸก Subscription via Claude Code / Codex ๐ŸŸก OpenAI-compatible
Retrieval & query pipeline โœ… 5-stage cascade โ€” Lex โ†’ LLM keyword โ†’ substring scan โ†’ LLM KB fallback โ†’ PPR expansion (truncates on first sufficient signal). Personalized PageRank (Haveliwala 2002) + Monte Carlo (Fogaras 2005) ๐ŸŸก 2-hop decay only (4-signal heuristic: Adamic-Adar + 2-hop) โŒ Louvain community detection only โŒ k-hop previews only (no LLM augment) โŒ BM25 + semantic over chunks (no graph)
Graph visualization โœ… Obsidian's native Graph View (built in, zero extra size) โŒ Custom sigma.js + graphology in desktop app ๐ŸŸก vis.js graph.html (separate file) โŒ Custom sigma.js offline HTML โŒ Read-only browser viewer
Wiki honesty โœ… "Stage FALLBACK" banner when no wiki source matches your query โŒ No equivalent โŒ No equivalent โŒ No equivalent โŒ No equivalent
Published retrieval benchmark โœ… PPR @5 = 27.1% vs pure-kNN 24.1% (only published number in this space) โŒ 58% โ†’ 71% only with embeddings enabled, not in our apples-to-apples format โŒ Not published โŒ Not published โŒ Not published

Three things we chose on purpose, not by accident

  • ๐ŸชŸ Obsidian is the runtime. No terminal, no separate app, no Docker, no Python. Install from Community Plugins, click Ingest, the wiki lives in your vault from the first second. Obsidian's native Graph View renders your [[wiki-link]] graph โ€” built in, zero extra bundle size.
  • ๐Ÿงญ Clean and self-contained. Zero dependencies. No embedding model, no vector database, no pip package โ€” a single plugin that reads your notes, talks to an LLM, and writes wiki pages. Everything lives inside Obsidian.
  • ๐Ÿ”Œ Any model you already pay for. Anthropic, Bedrock, OpenAI, ChatGPT Plan (Codex OAuth), DeepSeek, Kimi, GLM, MiniMax, LM Studio, Ollama, OpenRouter, Anthropic-compatible, custom endpoint โ€” twelve-plus providers, none of them required to have an embedding endpoint.

๐ŸŽฏ Is it for me?

โœ… Yes, if you:

  • Want a 5-minute setup, not a 5-hour project. Install from Community Plugins โ†’ pick a provider โ†’ Ingest one note. No CLI, no Python, no separate runtime, no vector DB. You see wiki pages in wiki/ within seconds.
  • Want something clean and self-contained. The plugin has exactly zero external dependencies: no embedding model, no vector database, no pip package, no Docker container. It's a single Obsidian plugin that reads your notes, talks to an LLM, and writes wiki pages into your vault. Everything lives inside Obsidian.
  • Want a queryable chat that answers from your notes โ€” not the internet โ€” with every answer carrying [[wiki-links]] back into your knowledge graph.
  • Care about data sovereignty โ€” runs fully local with Ollama or LM Studio, never touching the internet.
  • Write in or read from any of 10 supported languages โ€” the UI and wiki output language are independent (your wiki can be in Chinese while the interface is in English).
  • Maintain the graph by writing [[wiki-links]] โ€” every link you write already enriches retrieval; no separate tagging/embedding/indexing step.
  • Want one-click maintenance โ€” Lint health scan + Smart Fix All keep duplicates, dead links, and orphan pages in check without you hand-curating.

โŒ No, if you:

  • Want a general-purpose ChatGPT replacement โ€” this plugin answers from your knowledge only.
  • Need a RAG pipeline over PDFs / web pages / external corpora โ€” we focus on the in-vault path (PDFs are supported as of v1.25.0).
  • Are looking for a hosted SaaS โ€” there's no backend, no server, no account.

๐Ÿš€ Quick Start

  1. Install. Obsidian โ†’ Settings โ†’ Community plugins โ†’ Browse โ†’ search "Karpathy LLM Wiki" โ†’ Install โ†’ Enable. Or visit the Community Plugin page and click Add to Obsidian.

  2. Configure a provider. Open Settings โ†’ Karpathy LLM Wiki โ†’ pick a provider (OpenAI, Anthropic, Ollama, ChatGPT Plan (Codex OAuth), etc.) โ†’ enter API key (not needed for local) โ†’ click Test Connection โ†’ Save.

  3. Ingest one note. Two ways:

    • โŒจ๏ธ Keyboard: Cmd+P/Ctrl+P โ†’ "Ingest single source" โ†’ pick any Markdown (or PDF, v1.25.0+) file.
    • ๐Ÿ–ฑ๏ธ Toolbar icon: Click the sticker icon in Obsidian's left ribbon to instantly ingest the currently-open note โ€” no menu hunting.

    Your first wiki pages appear in wiki/sources/, wiki/entities/, wiki/concepts/ within seconds.

  4. Query your wiki. Two ways:

    • โŒจ๏ธ Keyboard: Cmd+P/Ctrl+P โ†’ "Query wiki".
    • ๐Ÿ–ฑ๏ธ Toolbar icon: Click the message-circle icon in Obsidian's left ribbon.

    A right-docked side panel opens (Copilot-style) where you can chat with your wiki. Answers carry [[wiki-links]] back into your knowledge graph.

Query side panel

That's it. The plugin modifies nothing in your original notes โ€” only creates new pages under wiki/. Both Ingest and Query wiki are pinned to the left ribbon for one-click access anytime. (Cmd on macOS, Ctrl on Windows/Linux.)

Core commands

Command What it does
๐Ÿ“ฅ Ingest single source Cmd+P/Ctrl+P โ†’ "Ingest single source" โ€” pick a Markdown or PDF (v1.25.0+) file, get entity/concept/wiki pages. Also: ๐Ÿ–ฑ๏ธ ribbon sticker icon on the active note.
๐Ÿ“‚ Ingest from folder Cmd+P/Ctrl+P โ†’ "Ingest from folder" โ€” batch-ingest every note in a folder, with smart batch skip
๐Ÿ“‘ Ingest multiple files Cmd+P/Ctrl+P โ†’ "Ingest multiple files" โ€” pick a subset via a two-pane file tree (with live queue + per-file cancel)
๐Ÿ” Query wiki Cmd+P/Ctrl+P โ†’ "Query wiki" โ€” chat with your wiki in a right-docked side panel; answers carry [[wiki-links]]. Also: ๐Ÿ–ฑ๏ธ ribbon message-circle icon.
๐Ÿ› ๏ธ Lint wiki Cmd+P/Ctrl+P โ†’ "Lint wiki" โ€” full health scan: duplicates, dead links, empty pages, orphans, missing aliases, contradictions
โšก Smart Fix All inside Lint Modal โ€” one-click causal-order repair with per-phase report
๐Ÿ“‹ Regenerate index Cmd+P/Ctrl+P โ†’ "Regenerate index" โ€” rebuild wiki/index.md with current pages and aliases
โน Cancel Cmd+P/Ctrl+P โ†’ "Cancel current ingestion" or click the status bar โ€” stops cleanly at the next batch boundary
๐Ÿ“Š Ingestion history Cmd+P/Ctrl+P โ†’ "View Ingestion History" โ€” searchable UI for past ingestions, lint reports, maintenance runs

Command panel โ€” all LLM Wiki commands live in Obsidian's command palette

Before After
notes/machine-learning.md (a flat file) wiki/concepts/supervised-learning.md with [[bidirectional links]], aliases, source attribution, and an entry in wiki/index.md

๐Ÿ’ก Stay updated. New features, fixes, and performance improvements ship frequently. Settings โ†’ Community plugins โ†’ Check for updates, or enable automatic plugin updates. ๐Ÿ“– Detailed walkthroughs (installation, PDF setup, multi-provider notes, upgrades) are maintained in GitHub Discussions โ†’ Guides.

๐ŸŒŸ If this saved you setup time, a star on GitHub helps others find it.


โœจ Features

๐Ÿ“š Knowledge quality

  • ๐Ÿ” Entity & concept extraction โ€” LLM extracts entities (people, orgs, products, events) and concepts (theories, methods, terms) into standalone pages. Granularity is configurable (Minimal โ†’ Fine, plus Custom) so you trade cost vs. depth.
  • ๐Ÿท๏ธ Mandatory aliases โ€” every page ships with at least one alias (translation, abbreviation, variant) so cross-language duplicate detection works.
  • ๐Ÿ”„ Tiered duplicate detection โ€” Tier 1 (direct name match: cross-language, abbreviation, high-similarity titles) is always verified; Tier 2 (shared links, medium similarity) fills remaining token budget.
  • ๐Ÿงฉ Smart merge & contradiction state โ€” duplicates merge while preserving aliases; contradictions are flagged with source attribution; reviewed: true pages are protected from overwrite.
  • ๐ŸŽจ Custom tag vocabulary โ€” define your own entity-type and concept-type tag lists in Settings โ†’ Wiki โ†’ Tag Vocabulary โ†’ Custom. The vocabulary is a schema injection hint for the LLM, not a write-time enforcement gate โ€” small/local models may still drift, and the Lint diagnostic surfaces those pages so you can fix them. (Schema enforcement is being designed for v1.26.0+; see the design anchor.)

๐Ÿ“„ PDF ingest (v1.25.0+)

  • ๐Ÿ”Œ Provider gate โ€” Anthropic, OpenAI, and Bedrock handle PDF natively. For any other OpenAI/Anthropic-compatible endpoint, enable Force PDF Support in Settings โ†’ LLM Configuration โ†’ Advanced to let the plugin attempt the call. For local OCR on Apple Silicon, third-party extractors (MinerU, Docling, Mathpix, Adobe), and the full PDF ingest walkthrough, see PDF OCR Paths below and docs/PDF-OCR-GUIDE.md.
  • ๐Ÿ—„๏ธ Bounded cache โ€” .obsidian/plugins/karpathywiki/pdf-cache/ stores converted Markdown keyed by content hash + model + converter version. Three-defense-layer housekeeping: 100 MB total / 1000 entries / 10 MB single-entry caps with LRU-by-mtime eviction.
  • ๐Ÿ“ Optional vault sidecar โ€” Settings โ†’ Wiki Configuration โ†’ Wiki Folder โ†’ Write PDF Markdown to Vault writes <basename>.pdf.md next to the source PDF (off by default โ€” cache-only is the default).
  • ๐Ÿ›ก๏ธ Verbatim transcriber prompt โ€” OCR-style conversion with [illegible] / [figure: ...] anti-hallucination markers; markdown-fence-wrapping from small local models is auto-cleaned before cache write.

๐Ÿ“„ PDF OCR Paths

Three paths, pick what fits your setup:

  1. โ˜๏ธ Cloud provider with native PDF support โ€” Anthropic, OpenAI, or AWS Bedrock read PDFs out of the box. Just ingest; no extra setup. For any other OpenAI/Anthropic-compatible endpoint, enable Force PDF Support in Settings โ†’ LLM Configuration โ†’ Advanced to let the plugin attempt the call.
  2. ๐Ÿ–ฅ๏ธ Local OCR on Apple Silicon โ€” oMLX integrates Microsoft Markitdown as a built-in PDFโ†’Markdown backend. Enable Markitdown in oMLX, load Baidu Unlimited-OCR (3B / 570M-active, open-sourced 2026-06) as the vision model, point the plugin at oMLX as a Custom OpenAI-Compatible provider, turn on Force PDF Support, and pick the multimodal model oMLX is serving. The PDF never leaves your machine.
  3. ๐Ÿ› ๏ธ Third-party extractor (MinerU, Docling, Mathpix, Adobe) โ€” run a separate extractor on your PDFs to produce .md files, then ingest them as regular Markdown notes via the plugin's standard pipeline. Most reliable for scientific papers, scanned documents, math-heavy PDFs.

๐Ÿ“– Full setup walkthroughs for all three paths (cloud providers, oMLX hardware tiers, MinerU installation, cache housekeeping) โ†’ docs/PDF-OCR-GUIDE.md

๐Ÿ’ฌ Query & maintenance

  • ๐Ÿงญ 5-stage PPR cascade โ€” see How retrieval works. Personalized PageRank over [[wiki-link]] gives graph-aware multi-hop context.
  • ๐ŸชŸ Right-docked side panel โ€” Query Wiki opens in a Copilot-style right sidebar leaf (v1.22.1+) instead of a centered modal.
  • ๐Ÿ” Lint health scan โ€” single command catches: duplicates, dead links, empty pages, orphans, missing aliases, contradictions.
  • โšก Smart Fix All โ€” one-click causal-order repair: fill aliases โ†’ merge duplicates โ†’ fix dead links โ†’ link orphans โ†’ expand empty pages, with per-phase report.
  • ๐Ÿ“Š Operation history panel โ€” searchable, filterable UI for past ingestions, lint reports, and maintenance runs.
  • ๐Ÿ›ก๏ธ Pre-ingest gate โ€” empty / whitespace / frontmatter-only notes are rejected before any LLM call; content-hash dedup catches identical files across paths.

๐Ÿ”’ Privacy

  • ๐Ÿšซ No backend, no tracking, no analytics. Runs entirely inside Obsidian. Network is used only to communicate with the LLM provider you configure.
  • ๐Ÿ“ Source files are read-only. The plugin never modifies your original vault notes โ€” only creates new pages under wiki/.
  • ๐Ÿฆ™ Full local mode. Ollama, LM Studio, or any local OpenAI-compatible endpoint โ†’ your notes never leave your machine.
  • ๐Ÿ” Minimal permissions. Vault file access for wiki management. Clipboard access only when you click the "Copy" button in the Query modal.

๐Ÿฆ™ Local-first

  • ๐Ÿ–ฅ๏ธ Ollama, LM Studio, OpenRouter, custom endpoint โ€” out-of-the-box. Local models work for query (smaller context windows); ingest on a 2,000-page vault usually needs a long-context cloud model.
  • ๐Ÿ“„ PDF OCR path is fully local on Apple Silicon โ€” see PDF OCR Paths below.
  • ๐Ÿ” ChatGPT Plan (Codex OAuth) โ€” desktop loopback callback on 127.0.0.1:1455; mobile via device-code. Credentials live only in Obsidian SecretStorage; sign-out clears them. Third-party Codex compatibility, not an OpenAI partnership.

๐ŸŒ Language

  • ๐ŸŒ 10 UI languages โ€” English, ็ฎ€ไฝ“ไธญๆ–‡, ็น้ซ”ไธญๆ–‡, ๆ—ฅๆœฌ่ชž, ํ•œ๊ตญ์–ด, Deutsch, Franรงais, Espaรฑol, Portuguรชs, Italiano. UI and wiki-output language are independent โ€” your wiki can be Chinese while the interface is English.
  • ๐Ÿ“š 10 wiki-output languages โ€” same set; pick in Settings โ†’ Wiki Configuration. Custom input option for ad-hoc prompts.
  • ๐Ÿˆถ 269+ translated UI strings โ€” every label, modal, and notice. Adding an 11th language is contributor-driven (PR #159 pattern).

๐ŸŒ Ecosystem

The plugin composes with the rest of your Obsidian stack โ€” each tool below plugs into the [[wiki-link]] graph without code changes.

  • ๐Ÿ“„ MinerU online conversion โ€” official free PDF/Word/PPT/Excel/HTML/image โ†’ Markdown converter from Shanghai AI Lab's OpenDataLab team. Upload a document, download the .md, drop it in your vault outside the wiki folder, run Ingest single source. Best path for scientific papers, scanned documents, and complex multi-modal PDFs that need accurate formula/table extraction. Privacy-sensitive users can self-host MinerU; future versions may integrate MinerU natively โ€” see #376.
  • ๐Ÿ•ธ๏ธ Obsidian Graph View โ€” open the native graph on any wiki page; every [[wiki-link]] becomes a node, every back-link an edge. Built in, zero extra bundle size.
  • โœ‚๏ธ Obsidian Web Clipper โ€” official browser extension. Save web pages (articles, blog posts, Reddit threads, Hacker News, recipes, research papers, YouTube transcripts via Interpreter) into any folder of your vault, then run the plugin's Ingest from folder command to batch-extract entities and concepts.
  • ๐Ÿ“Š Dataview โ€” query the wiki like a database with DQL (LIST FROM "wiki/entities" WHERE contains(tags, "person")) or JS API. The plugin writes standard frontmatter (tags:, type:, aliases:) on every page, so Dataview queries work out of the box.
  • ๐ŸŒฟ Git โ€” version your vault (any Git client). The plugin never rewrites your source files; only creates new pages under wiki/, so git diff cleanly separates your edits from LLM-generated content.
  • ๐ŸŽž๏ธ Marp Slides โ€” turn any Obsidian note into slide decks via Marp frontmatter (marp: true). Wiki pages are pure Markdown, so they render as slides without extra conversion.
  • ๐Ÿ–ผ๏ธ Canvas โ€” Obsidian's native infinite canvas. Drag wiki cards onto a Canvas to assemble study guides, mind maps, or research overviews from [[wiki-links]] without leaving the vault.
  • ๐ŸŽค Obsidian Nous โ€” companion plugin for local voice memo and meeting capture (whisper.cpp on macOS; audio never leaves the machine). Generates speaker-labeled transcripts and its own wiki hub pages. Independent of this plugin โ€” both can share the same vault without coupling.

๐Ÿ› ๏ธ Tools

The plugin ships a headless CLI in this repo so you can run the same ingest pipeline against a vault on disk โ€” no Obsidian, no Electron, no display. The engine, the analyzer, the page factory, the schema manager and the LLM clients are imported straight from src/; only the host (obsidian, the live vault, the metadataCache) is replaced by a shim. Useful for CI, scripted runs, comparing sampling parameters across arms, and profiling the extract loop on a single source.

pnpm llm-wiki ingest --vault /path/to/vault --source "notes/foo.md" --dry-run

See the full flag reference, environment requirements, and shim caveats in tools/llm-wiki-cli/README.md.


๐Ÿ” How retrieval works

Most "AI search" plugins fragment your notes into chunks and embed them in a vector DB. We don't. Karpathy's argument against RAG is that chunking breaks the LLM's ability to reason across your whole knowledge graph โ€” and that argument holds up in practice. Instead, we walk the graph you already maintain by writing [[wiki-links]].

The 5-stage seed-selection cascade

When you ask "Who founded Microsoft?", Query Wiki runs five stages before any answer generation:

  1. Lex fast path โ€” straight token-overlap against every entity/concept title and aliases. Free, instant, and the gating step for everything that follows.
  2. LLM keyword generation โ€” the LLM proposes 8โ€“12 cross-language keywords from your query (handles synonyms, abbreviations, and token-overlap-resistant terms in one LLM call).
  3. Local substring scan โ€” every generated keyword is re-matched locally against page titles, aliases, and body snippets. No extra LLM call; rounds out noise-tolerant recall.
  4. LLM KB fallback โ€” when lex + keyword scan returns weak signals, the LLM re-seeds the top-N candidates against the full wiki for one semantic pass.
  5. PPR graph expansion โ€” Personalized PageRank (Haveliwala 2002) over the [[wiki-link]] graph starting from the candidate seed set. This is what gives graph-aware multi-hop context: "Bill Gates" โ†’ "Microsoft" โ†’ "competitors", not just literal title overlap.

The cascade truncates at whichever step returned enough signal โ€” no fixed 5-step cost, no LLM calls when lex is sufficient, no lost precision when LLM augmentation is needed.

Personalized PageRank at scale

We use Monte Carlo PPR (Fogaras 2005) โ€” 3,000 random walks ร— 50 steps each โ€” with the dead-end rule from Haveliwala 2002. Cost is O(K ร— L) independent of the number of pages, so a 2,000-page vault sees the same expansion latency as a 200-page one.

PPR @5 = 27.1% vs pure-kNN baseline 24.1% on the project's own benchmark corpus (the only published retrieval benchmark in this open-source LLM-Wiki space).

Why no embeddings

We deliberately rejected the embedding path in Issue #175. The graph signal is already there โ€” every [[wiki-link]] is a hand-curated "these are related" edge, and most providers we support (Ollama, LM Studio, Anthropic, Bedrock, Kimi, GLM, MiniMax) don't ship a /v1/embeddings endpoint at all. Adding an embedding model would mean a per-page download, a per-provider adapter, and zero benefit on retrieval quality.


๐Ÿค– Models

Supported providers (12+, all from models.dev cross-check 2026-07):

Provider Series Notes
Anthropic Claude 5 series Native PDF; /v1/messages protocol
OpenAI GPT-5.6 series (Sol / Terra / Luna) Native PDF; Platform API key
Google Gemini Gemini 3.6 series Native PDF (file parts since 1.5); OpenAI-compatible endpoint
DeepSeek DeepSeek V4 series OpenAI-compatible; lowest cost tier
Alibaba Qwen Qwen3.7/3.8 series OpenAI-compatible (DashScope)
xAI Grok Grok 4 series OpenAI-compatible; long context
Moonshot Kimi Kimi K3 series OpenAI-compatible; 2.8T MoE frontier
Zhipu GLM GLM-5 series OpenAI-compatible; strong bilingual
MiniMax MiniMax M3 series OpenAI-compatible; 1M context
Step (้˜ถ่ทƒๆ˜Ÿ่พฐ) Step 3 series (Flash) OpenAI-compatible; fast inference
Tencent Hunyuan Hy3 series OpenAI-compatible; open-weight MoE
Xiaomi MiMo MiMo V2.5 series MIT open-source; flat pricing
Google Gemma Gemma 4 series Open-weight; 262K context
AWS Bedrock Anthropic + OpenAI variants VPC / compliance path
ChatGPT Plan (Codex OAuth) Codex Responses API Browser/device-code sign-in; SecretStorage
Local: Ollama, LM Studio, OpenRouter, Anthropic-Compatible Any OpenAI-/Anthropic-protocol model Custom OpenAI-Compatible + Anthropic-Compatible (Token Plan / Coding Plan)

This plugin feeds the LLM your full Wiki context per query โ€” so long-context models win. The full tiered table (cloud + local) lives in docs/MODEL-GUIDE.md, cross-checked against models.dev so the picks stay current.

What matters

  • ๐Ÿง  Context window โ‰ฅ 200K tokens for vaults over ~500 pages. Below 200K the cascade's assembled context starts getting truncated.
  • โš–๏ธ Instruction-following quality matters more than raw IQ for the extraction task โ€” pick a model that follows the schema template, not the biggest leaderboard number.
  • ๐Ÿ”Œ Embedding endpoint is irrelevant โ€” we don't use embeddings. A provider that lacks /v1/embeddings is fine (most of our 12+ providers do).
  • ๐Ÿฆ™ Local works for query, cloud for ingest โ€” ingest on a 2,000-page vault usually needs a long-context cloud model; a 262K local model covers most queries.

Anthropic vs OpenAI vs Codex OAuth โ€” they are distinct providers

  • Anthropic (and its Bedrock variant) โ€” separately billed Anthropic Platform API key.
  • OpenAI โ€” separately billed OpenAI Platform API key.
  • ChatGPT Plan (Codex OAuth) โ€” experimental, distinct provider that uses eligible Codex allowance after browser or device-code sign-in; availability follows OpenAI Codex authentication and allowance policies, not plan name. Third-party Codex compatibility, not an OpenAI partnership or a general ChatGPT API.

๐Ÿ“– Full pick table (cloud + local + PDF OCR + Codex OAuth + quantization + hardware tiers) โ†’ docs/MODEL-GUIDE.md

โ“ FAQ

What does the plugin actually do?

Pick any note, folder, or selection; the LLM extracts entities and concepts and generates an interlinked wiki with [[bidirectional links]]. Ask questions and get conversational answers grounded in your notes, not the internet. Your original vault notes are never modified.

How do I get started?

Install from Obsidian Community Plugins โ†’ pick a provider โ†’ Test Connection โ†’ run Ingest single source on any note. First wiki pages appear within seconds. See Quick Start.

Is my existing wiki safe?

โœ… Backward compatible since v1.0.0. Set reviewed: true on any page to protect it from overwrite. Upgrading from v1.24.x doesn't rewrite your vault; v1.25.0's PDF ingest is cache-only by default.

Is my data sent anywhere?

๐Ÿšซ No backend, no analytics โ€” the plugin runs entirely inside Obsidian. Only text you explicitly send for ingest/query leaves your device, and only to the LLM provider you configure. For complete data locality, use Ollama or LM Studio.

Can I use the plugin in my language?

๐ŸŒ 10 languages for both UI and wiki output. UI and wiki language are independent. Adding an 11th language is contributor-driven (PR #159 pattern).

How is this different from a RAG chatbot?

๐Ÿšซ No chunking. ๐Ÿšซ No embeddings. ๐Ÿšซ No vector DB. โœ… Personalized PageRank over your existing [[wiki-link]] graph โ€” graph-aware multi-hop context, zero embedding cost, full local-model support.

Which LLM should I use?

Long-context models (โ‰ฅ200K tokens) work best. The Models section covers the principles; the full tiered table is in docs/MODEL-GUIDE.md.

Is there a published benchmark?

Yes โ€” PPR @5 = 27.1% vs pure-kNN baseline 24.1% on the project's own corpus. The full pipeline and benchmark script are described in How retrieval works.

How do I control API costs?

Use Coarse or Minimal extraction granularity for batch ingest. Smart Batch Skip auto-detects already-ingested files. Auto-Maintenance is OFF by default. Lint shows counts before running fixes โ€” nothing is charged without your approval.

How do I cancel a running operation?

Click the status bar (shows "Ingestingโ€ฆ click to cancel") or Cmd+P/Ctrl+P โ†’ "Cancel current ingestion". Stops cleanly at the next batch boundary.

Where do I get help?

GitHub Issues for bug reports ยท GitHub Discussions for questions and feature requests ยท Developer Console (Ctrl+Shift+I / Cmd+Option+I) for plugin logs.


๐Ÿ”’ Privacy

This plugin is listed on the Obsidian Community Plugin Market and undergoes automated review for security and permissions.

  • ๐Ÿšซ No backend, no server, no data collection. Pure local software running inside Obsidian. The plugin cannot and does not collect, store, or transmit your data to any server โ€” because no such server exists.
  • ๐Ÿ” Network access is opt-in. Used only to communicate with the LLM provider you configure. You choose the provider, you enter the API key, you decide where your data goes.
  • ๐Ÿ“ Vault file access is used for wiki management (reading notes, generating pages, scanning dead links, detecting duplicates). The plugin never modifies your source files.
  • ๐Ÿ“‹ Clipboard access is used exclusively by the "Copy" button in the Query modal โ€” and only when you click it.

For complete data locality, use Ollama or LM Studio. With a local provider, your data never leaves your machine.


๐Ÿ’– Support

If LLM-Wiki has become a meaningful part of your knowledge workflow:

Sponsorship is entirely optional. The plugin stays Apache-2.0-licensed and feature-complete regardless.

Thanks to @jameses-cyber and @issaqua for supporting the project.


๐Ÿ“œ License & Credits

Apache License, Version 2.0 โ€” see LICENSE and NOTICE.

Built on:

Maintainer: @green-dalii

Star History Chart

About

Karpathy's LLM Wiki implementation plugin for Obsidian - turns notes and PDFs into a linked, LLM-powered knowledge base with entity pages, concept pages, graph-powered Q&A, and local-first privacy.

Topics

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages