█

AI/TLDR

मुझे पिलाएं कॉफ़ी
मुझे एक कॉफ़ी पिलाएँ

LLM Wiki Compiler

कच्चे स्रोतों को ऐसे interlinked markdown wiki में बदलें जिसके हर उद्धरण को वापस स्रोत तक ट्रेस किया जा सके

Notes & Knowledge Basesओपन सोर्स
भाषा
TypeScript
लाइसेंस
MIT
$npm install -g llm-wiki-compiler
संक्षेप में

LLM Wiki Compiler क्या है?

LLM Wiki Compiler कच्चे स्रोतों को ऐसे interlinked markdown wiki में बदलें जिसके हर उद्धरण को वापस स्रोत तक ट्रेस किया जा सके. यह AI Productivity & Writing टूल्स की Notes & Knowledge Bases श्रेणी में आता है; ओपन सोर्स है, TypeScript में लिखा गया है और MIT लाइसेंस के तहत है।

सारांश

LLM Wiki Compiler — npm पैकेज `llm-wiki-compiler`, जिसका एक्ज़िक्यूटेबल `llmwiki` है — एक नॉलेज कंपाइलर है: कच्चे स्रोत अंदर जाते हैं और एक interlinked markdown wiki बाहर आती है। यह Andrej Karpathy के LLM Wiki पैटर्न को लागू करता है, जिसमें काम क्वेरी टाइम से हटकर कंपाइल टाइम पर होता है। पारंपरिक RAG की तरह हर सवाल पर raw चंक्स खोजकर मॉडल से रिश्ते दोबारा बनवाने के बजाय, यह पहले रिसर्च पेपर, नोट्स, README फ़ाइलें, ट्रांसक्रिप्ट, PDF, इमेज या वेब पेज को टाइप्ड, interlinked पेजों में बदलता है, जिनमें citations, metadata और review state होते हैं।

The llmwiki local viewer in the Scientific Clay theme, showing a compiled Knowledge compilation concept page with inline source citation chips, a sidebar for concepts, queries, sources, graph explorer and reviews, and page metadata on the right
A compiled concept page in the local viewer; each claim carries a chip pointing to the source lines behind it.llm-wiki-compiler README ↗

एक दो-चरणीय LLM पाइपलाइन पहले concepts निकालती है, फिर चार प्रकार के पेज बनाती है — `concept`, `entity`, `comparison` और `overview` — जिनके पैराग्राफ़ स्रोत फ़ाइलों और लाइन रेंज का हवाला देते हैं, जिन्हें `llmwiki lint` जाँचता है। कंपाइलेशन incremental होता है, इसलिए जो स्रोत नहीं बदले उन्हें मॉडल से दोबारा नहीं गुज़ारा जाता, और पुराने या orphan पेजों को पहचानकर `llmwiki refresh --stale` से ठीक किया जा सकता है। Queries, agents के लिए evidence packs, exports और MCP tools, सब कंपाइल किए गए wiki पर काम करते हैं, और इसके लिए semantic chunk search, BM25 reranking और wikilink graph expansion का इस्तेमाल होता है।

डिफ़ॉल्ट concepts और queries लेआउट के अलावा, एक वैलिडेटेड `.llmwiki/profile.json` (Configurable Lifecycle Profiles) entity types, typed relations, lifecycle states, review gates और workflows घोषित कर सकता है, जिन्हें runtime लागू करता है, न कि उन्हें prompts पर छोड़ा जाता है। बने-बनाए templates में research के लिए `autosci` और editorial काम के लिए `newsroom` शामिल हैं। प्रोजेक्ट अपने सबसे उपयुक्त इस्तेमाल को एक टिकाऊ प्रोजेक्ट या डोमेन wiki बताता है — जैसे research folders, codebase docs, team handbooks, decision logs — और कहता है कि यह कोई general static-site generator नहीं है, न ही तेज़ी से बदलते raw logs पर ad-hoc search का विकल्प है। यह MIT लाइसेंस के तहत TypeScript में लिखा गया है और इसके लिए Node.js 24 या उससे नया संस्करण चाहिए।

यह क्या करता है

  • दो-चरणीय कंपाइल प्रक्रिया, जो स्रोत फ़ाइलों और लाइन रेंज के citations वाले टाइप्ड `concept`, `entity`, `comparison` और `overview` पेज बनाती है
  • हाइब्रिड रिट्रीवल — semantic chunk search, BM25 reranking और wikilink graph expansion — जो `llmwiki query` और citations को समझने वाले `llmwiki context` evidence packs के पीछे काम करता है
The same compiled page in the llmwiki viewer's Minimal theme, with a plain light layout that follows the system setting
The Minimal viewer theme, which follows the system light or dark setting.llm-wiki-compiler README ↗
  • सिर्फ़ पढ़ने वाला लोकल व्यूअर (`llmwiki view`), जिसमें search, graph exploration, source-freshness badges, citation chips और चार themes हैं
  • Review queues, freshness checks, `llmwiki lint` और एक `llmwiki eval` harness, जो CI में quality thresholds लागू कर सकता है
  • MCP server (`llmwiki serve`), एक TypeScript SDK (`createWiki({ root })`) और Open Knowledge Format, JSON, JSON-LD, GraphML, Marp तथा `llms.txt` में export
  • Environment variables से provider चुनें: डिफ़ॉल्ट रूप से Anthropic, इसके अलावा Claude Agent SDK login, OpenAI Codex CLI login, OpenAI-compatible servers, Ollama, GitHub Copilot, Atlas Cloud और OrcaRouter

शुरू करें

llmwiki के लिए Node.js 24 या उससे नया संस्करण और एक LLM provider चाहिए। डिफ़ॉल्ट provider Anthropic है; किसी और को इस्तेमाल करने के लिए `LLMWIKI_PROVIDER` सेट करें।

CLI इंस्टॉल करें और provider सेट करें

npm पैकेज का नाम `llm-wiki-compiler` है; इंस्टॉल होने वाला एक्ज़िक्यूटेबल `llmwiki` है।

bashbash
npm install -g llm-wiki-compiler

export ANTHROPIC_API_KEY=sk-...
# or choose another provider:
# export LLMWIKI_PROVIDER=openai
# export OPENAI_API_KEY=sk-...

पहला wiki कंपाइल करें और उससे सवाल पूछें

`quickstart` एक स्रोत (URL या लोकल फ़ाइल) को इनजेस्ट करता है, पेज कंपाइल करता है और व्यूअर खोल सकता है। `view --open` सिर्फ़ पढ़ने वाला लोकल ब्राउज़र UI शुरू करता है।

bashbash
mkdir my-wiki && cd my-wiki
llmwiki quickstart https://en.wikipedia.org/wiki/Andrej_Karpathy
llmwiki query "What terms did Andrej coin?"
llmwiki view --open

इसे बढ़ाएँ और संभालें

और स्रोत जोड़ें, incremental तरीके से दोबारा कंपाइल करें, citations और freshness जाँचें, और काम के जवाब wiki में वापस सेव करें। किसी मौजूदा प्रोजेक्ट के अंदर `llmwiki next` अगला सबसे सुरक्षित कदम सुझाता है।

bashbash
llmwiki ingest <url-or-file>
llmwiki compile
llmwiki lint
llmwiki query "question" --save
llmwiki refresh --stale --dry-run

इसे agent या अपने कोड को सौंपें

MCP-compatible agents के लिए MCP server चलाएँ, या SDK के ज़रिए TypeScript से वही operations चलाएँ।

tsts
import { createWiki } from "llm-wiki-compiler";

const wiki = createWiki({ root: "/path/to/wiki-project" });
await wiki.ingest({ source: "./notes.md" });
await wiki.compile();
const answer = await wiki.query({ question: "What changed?" });

कमांड और कोड प्रोजेक्ट के अपने दस्तावेज़ों से लिए गए हैं — हमेशा जांचें आधिकारिक repo ताज़ा जानकारी के लिए।

कब इस्तेमाल करें

  • रिसर्च पेपर, नोट्स और PDF वाले फ़ोल्डर को एक ऐसे citation-युक्त, ब्राउज़ करने योग्य wiki में बदलें जो स्रोत जुड़ने के साथ बढ़ता जाए
  • कोडिंग या रिसर्च agents को बिखरी हुई फ़ाइलों के ढेर के बजाय MCP के ज़रिए एक स्थिर, citation को समझने वाला context pack दें
  • team handbook, design notes या decision log को review gates और stale-page repair के साथ कंपाइल किए गए पेजों के रूप में रखें
  • बिल्ट-इन `autosci` या `newsroom` templates से टाइप्ड research या editorial workflow चलाएँ

How LLM Wiki Compiler compares

LLM Wiki Compiler alongside other open-source notes & knowledge bases tools AI/TLDR tracks, ranked by GitHub stars.

टूलस्टारयह क्या करता है
SiYuan★ 47.5kएक सेल्फ-होस्टेड, ब्लॉक-स्तर का नॉलेज बेस, जिसे आप क्वेरी कर सकते हैं, स्क्रिप्ट कर सकते हैं और किसी LLM से जोड़ सकते हैं
notebooklm-py★ 20.5kPython, CLI या agent से Google के Gemini Notebook को चलाएं
Smart Connections★ 5.6kस्थानीय embedding model के साथ Obsidian के अंदर सिमेंटिक सर्च और संबंधित नोट्स दिखाना
MineContext★ 5.6kएक लोकल-फ़र्स्ट डेस्कटॉप ऐप, जो आपकी स्क्रीन पर नज़र रखता है और ज़रूरी बातें फिर से सामने लाता है
OpenKnowledge★ 5kज्ञान आधार के लिए local-first markdown IDE, जिसे इंसान और एजेंट दोनों एडिट करते हैं
ReadAny★ 3kलोकल-फ़र्स्ट ई-बुक रीडर, जो आपकी लाइब्रेरी को ऑन-डिवाइस वेक्टर स्टोर में इंडेक्स करता है और फिर जिस किताब को आप पढ़ रहे हैं, उसके बारे में सवालों के जवाब देता है
LLM Wiki Compiler★ 2.3kकच्चे स्रोतों को ऐसे interlinked markdown wiki में बदलें जिसके हर उद्धरण को वापस स्रोत तक ट्रेस किया जा सके
LLM Wiki★ 1.8kClaude आपके दस्तावेज़, क्लिप और हाइलाइट्स से MCP के ज़रिए एक निजी wiki लिखता और संभालता है