wiki-retrieve
यह क्या करती है
यह स्किल wiki का खोज index बनाती है और किसी सवाल के लिए सबसे प्रासंगिक अंश लौटाती है। यह उन लोगों के लिए है जिनके पास बहुत नोट्स हैं और जो तेज़ व सटीक खोज चाहते हैं।
कब इस्तेमाल करें
- ✓जब आपका wiki बड़ा हो और किसी सवाल के लिए संबंधित अंश चाहिए।
- ✓जब आप अपने vault के लिए स्थानीय खोज index बनाना या ताज़ा करना चाहते हैं।
- ✓जब आपको यह समझना हो कि खोज वही नतीजे क्यों लौटा रही है।
Skill का लिंक
https://github.com/AgriciDaniel/claude-obsidian/blob/main/skills/wiki-retrieve/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे wiki का खोज index बनाइए और हमारी भर्ती प्रक्रिया के बारे में अंश ढूँढिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट आपके पेजों को हिस्सों में बाँटता है, इस कंप्यूटर पर keyword index बनाता है, और सबसे अच्छे मेल खाने वाले अंश उनके पेजों के साथ लौटाता है। किसी भी रिमोट प्रसंस्करण के लिए आपकी स्पष्ट सहमति चाहिए।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Retrieve relevant passages
This extension derives search data from wiki/ into .vault-meta/. It never
changes canonical notes. Always pass the selected vault explicitly.
Resolve the installed product root from this skill's own location, not from the vault or current working directory:
PRODUCT_ROOT=/absolute/path/to/installed/claude-obsidian
PREFIX="$PRODUCT_ROOT/scripts/contextual-prefix.py"
BM25="$PRODUCT_ROOT/scripts/bm25-index.py"
RETRIEVE="$PRODUCT_ROOT/scripts/retrieve.py"
RERANK="$PRODUCT_ROOT/scripts/rerank.py"
test -f "$PREFIX" && test -f "$BM25" && test -f "$RETRIEVE" && test -f "$RERANK"
Pipeline
contextual-prefix.pysplits pages on paragraph boundaries and stores the raw chunk plus a short page-level prefix.bm25-index.pybuilds a local, standard-library BM25 index over the contextualized text.retrieve.pyselects BM25 candidates, optionally reranks them, rejects invalid records, deduplicates by page, and returns paths and snippets.- The caller reads the returned pages and performs synthesis; retrieval output is not itself evidence.
Provision locally
Preview first, then build synthetic prefixes without network egress:
python3 "$PREFIX" --vault "$VAULT" --all --no-llm --peek
python3 "$PREFIX" --vault "$VAULT" --all --no-llm
python3 "$BM25" --vault "$VAULT" build
python3 "$RETRIEVE" --vault "$VAULT" "wiki" --top 1 --no-rerank --explain
Chunk and index files are disposable runtime state. Incremental prefixing skips records whose chunk hashes, page hashes and provider/model profile still match. Legacy records without that profile regenerate on an explicit build. A complete scan removes surplus records for deleted pages, and the prefixer invalidates the BM25 index before changing its chunk set so a mixed stale index is not served. Prefix and BM25 build operations share the vault-wide mutation lock with every other writer; a busy vault fails closed instead of publishing a partial index.
Contextual-prefix privacy
Synthetic prefixes use only local frontmatter and page text. The explicit
Anthropic API profile can send page bodies off-machine and requires the user's
consent plus --allow-egress and a configured API key. There is no Claude CLI
generation tier or ambient subprocess fallback. Never infer consent from an
API key or installed binary. Preview the scope first and state which provider
will receive what data.
Remote Ollama endpoints also require explicit approval and
--allow-remote-ollama; the default reranker accepts localhost only.
Local model prefixes are a separate explicit option. Use an already installed
exact name:tag; no server is started and no model is installed or pulled:
python3 "$PREFIX" --vault "$VAULT" --all --local-ollama --ollama-model installed:tag --peek
python3 "$PREFIX" --vault "$VAULT" --all --local-ollama --ollama-model installed:tag
The prefix adapter verifies cloud-disabled server status and local model
identity before sending page text. Unsupported or unavailable preflight falls
back to synthetic prefixes for new or changed chunks only; prefixes from the
same endpoint and model stay in place, so a transient outage leaves an
unchanged vault's chunks and BM25 index untouched. This requirement can exclude
older Ollama servers.
Reranking and tiling use the same local-only proof before query, page, chunk,
or embedding cache work. --allow-remote-ollama approves the endpoint, not
cloud delegation by the server.
See prefix providers for the exact policy,
cloud model selection and verification limits. The reranker has its own model
and endpoint policy; selecting local prefixes does not enable reranking.
Query
For a strictly read-only lookup, use the prebuilt BM25 index:
python3 "$RETRIEVE" --vault "$VAULT" "$QUERY" --top 5 --no-rerank --explain
For an explicitly requested rerank, omit --no-rerank. The default is Ollama's
multilingual nomic-embed-text-v2-moe model (approximately 958 MB); the product
never pulls it automatically. To use an already-installed, smaller,
English-oriented v1.5 model, pass --model nomic-embed-text explicitly.
Nomic models use search_query: for the query and search_document: for
candidate text. Nomic v2 has a 512-token input context and Ollama truncates
longer embedding inputs by default; BM25 still scores the complete chunk.
Embeddings are cached by exact model, verified digest, input scheme, and hash
of
अक्सर पूछे जाने वाले सवाल
क्या यह मेरे नोट्स इंटरनेट पर भेजती है?
जब तक आप स्पष्ट सहमति न दें, नहीं। रिमोट प्रसंस्करण के लिए आपकी सहमति चाहिए, वरना index इसी कंप्यूटर पर रहता है।
क्या यह मेरे नोट्स बदलती है?
नहीं। index व्युत्पन्न डेटा के रूप में रखा जाता है, और मुख्य नोट्स नहीं बदलते।
अगर reranking चरण उपलब्ध न हो तो?
खोज सरल keyword तरीके पर लौट आती है, इसलिए नतीजे फिर भी आते हैं।
जानकारी
लेखक का मूल विवरण
Build and query a vault-local contextual BM25 retrieval index with optional multilingual Nomic cosine reranking; use for retrieve, hybrid retrieval, BM25, rerank, contextual retrieval, chunk search, vault search, semantic search, find relevant passages, or retrieval diagnostics. Derived caches stay under .vault-meta, remote egress requires explicit consent, and unavailable reranking falls back deterministically.
लोकप्रियता
- GitHub स्टार
- 16k
- रैंकिंग में स्थान
- #10817
- लाइसेंस
- MIT
- अपडेट की गई
- 25/10/2026
कमेंट
- …
इस repository की और skills
autoresearch
16kआपके एजेंट को तय सीमाओं में किसी विषय पर शोध करने और उद्धरणों वाला रिपोर्ट मसौदा बनाने देती है। वेब के नतीजे सबूत रहते हैं, अपने-आप नोट्स में नहीं जुड़ते।
canvas
16kआपके एजेंट को Obsidian में ऐसे visual बोर्ड बनाने और बदलने देती है जिनमें नोट्स, फ़ाइलें, लिंक और समूह हों। नक्शों और स्थानिक लेआउट के लिए उपयोगी।
defuddle
16kआपके एजेंट को वेब पेज को पढ़ने योग्य टेक्स्ट में साफ़ करने की योजना बनाने और स्रोत फ़ाइलों की स्थानीय प्रतियाँ रखने में मदद करती है। नेटवर्क से सफ़ाई अभी उपलब्ध नहीं है।
obsidian-bases
16kआपके एजेंट को Obsidian Bases व्यू बनाने में मदद करती है, जो सरल डेटाबेस की तरह काम करते हैं, फ़िल्टर, फ़ॉर्मूले और तालिका या कार्ड लेआउट के साथ।
मिलती-जुलती skills
gitcrawl
394kयह आपके एजेंट को GitHub issues और pull requests के सेव आर्काइव में खोजने, मिलते-जुलते मामलों को समूह में रखने और लाइव स्थिति जांचने देती है।
slacrawl
394kयह आपके एजेंट को स्थानीय Slack आर्काइव में संदेश खोजने और गिनने, उसकी ताज़गी जांचने और ज़रूरत पड़ने पर उसे ताज़ा करने देती है।
goplaces
394kयह आपके एजेंट को Google Places से जगहें खोजने, उनका विवरण और समीक्षाएं पाने, और जगह के नाम हल करने में मदद करती है, स्क्रिप्ट के लिए JSON आउटपुट के साथ।