GenWiki
approvedby yvonshong
Incremental personal knowledge base using LLMs for Obsidian - This plugin has not been manually reviewed by Obsidian staff.
GenWiki
An Incremental Personal Knowledge Base using LLMs for Obsidian
GenWiki is an Obsidian plugin inspired by Andrej Karpathy's "LLM Wiki" concept. It aims to solve the limitations of traditional RAG (Retrieval-Augmented Generation) systemsβwhere search is ephemeral and knowledge doesn't compoundβby using LLMs to incrementally build, structure, and audit a persistent personal knowledge base directly within your vault.
Unlike standard search tools, GenWiki parses your web clippings, merges new findings with your existing notes, structures them with bidirectionally-linked wiki files, and continuously audits your knowledge base for conflicts and gaps.
π Core Features
1. Incremental Ingest (π₯ Ingest Clippings)
- Scan & Parse: Scans your unprocessed clippings directory for raw web clippings.
- Smart Merge: Employs LLMs to read the new source material, look up your existing knowledge index, and decide whether to modify and merge existing Wiki pages or create new ones.
- Automatic Linking: Dynamically formats Obsidian internal WikiLinks (
[[Entity_Name]]) to connect concepts automatically. - Audit Trail: Archives the original clippings and registers audit logs to
wiki/log.md.
2. Conversational Sidebar (π¬ Chat Panel)
- Contextual Q&A: Asks questions based on your local compiled wiki. The plugin performs a fast, local index lookup to retrieve the top 5 most relevant wiki pages and feeds them to the LLM.
- Source Citations: Answers are fully referenced with standard wikilinks pointing to the source note (e.g.,
[[Tool_Obsidian#Features]]). - Wiki Solidification (Save to Wiki): Explored insights or deep syntheses from your chats can be instantly saved as a permanent Wiki note with a single click. The plugin uses LLM to de-conversationalize the chat, creates aliases/summaries, and updates the local metadata index.
3. Knowledge Base Linter (π Lint Wiki)
- Auditing: Performs health checks across your active Wiki nodes in batches.
- Issues Detected:
- Contradictions: Highlights conflicts where different pages state conflicting facts.
- Orphans: Detects isolated files that lack any inbound WikiLinks.
- Stale Pages: Spots blank or underdeveloped placeholders.
- Audit Report: Outputs a thorough report containing precise improvement recommendations.
π οΈ Architecture & Data Flow
GenWiki enforces a clean three-tier structure inside your wiki/ directory:
wiki/
βββ _skills/ # Modular Agent Prompts (Ingest.md, Query.md, Lint.md, SavePage.md)
βββ _agents/ # System SOP Specifications (CLAUDE.md)
βββ _database/ # Flat-file Local Database Index (index.json)
βββ index.md # Visual, card-style personal knowledge map
βββ log.md # Action audit logs
Pure Local Text Database
To bypass iOS sandbox constraints and support frictionless cross-device synchronization (e.g., via iCloud, Git, or Obsidian Sync), all indexing metadata (aliases, summaries, backlinks, and claims) is stored in a lightweight flat JSON database (_database/index.json). No binary database or server infrastructure is required.
π Installation
Manual Installation
- Download the latest release files (
main.js,manifest.json,styles.css) from the Releases page. - Inside your Obsidian vault, navigate to
.obsidian/plugins/(create the directory if it doesn't exist). - Create a subfolder named
genwikiand paste the three files inside it. - Open Obsidian, go to Settings $\rightarrow$ Community Plugins, and toggle GenWiki on.
βοΈ Configuration
Open Obsidian Settings and navigate to GenWiki under Community Plugins.
- LLM Provider: Choose your preferred model provider:
- Google Gemini (Default:
gemini-3.5-flash) - Anthropic Claude (Default:
claude-sonnet-4-6) - OpenAI (Default:
gpt-5.4-mini) - DeepSeek (Default:
deepseek-v4-flash, supports OpenAI/Anthropic-compatible endpoints) - Moonshot Kimi (Default:
kimi-k2.6) - OpenRouter (Default:
openrouter/free, handles unified model endpoints)
- Google Gemini (Default:
- Model Selection:
- Select a recommended model from the dropdown.
- If you wish to use a custom or newly-released model, choose Custom, and enter the exact Model ID in the text field that appears.
- Paths: Customize the source directory for raw clippings (default:
Clippings) and the destination Wiki folder (default:wiki).
π How to Use
- Setup: Make sure your API key is configured. On the first startup, GenWiki automatically sets up the folder structure and default Skill templates in your vault.
- Start Chatting: Click the CPU icon on the left ribbon to pop open the GenWiki Chat Panel on the right side.
- Ingest Clippings: Drop raw Markdown clippings into your
Clippings/folder, open the Chat Panel, and click π₯ Process Clippings at the top. The plugin will automatically parse, link, and index them. - Solidify Chat: Ask questions in the Chat Panel. If the assistant provides a detailed answer you want to keep, click πΎ Save as Wiki Page beneath the answer to compile it into your permanent knowledge wiki.
π§βπ» Customizing Prompts (Skills)
GenWiki is completely prompt-driven. You can inspect or rewrite the system prompts and instruction flows directly inside your Obsidian editor:
wiki/_skills/Ingest.mdβ Incremental clipping extraction, linking, and contradiction checks.wiki/_skills/Query.mdβ Context retrieval guidelines and link citations.wiki/_skills/Lint.mdβ Knowledge audit heuristics.wiki/_skills/SavePage.mdβ De-conversationalizing text format rules.
π License
This project is licensed under the CC BY-NC-SA 4.0 License (Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International). It is free to share and adapt for non-commercial purposes.
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.