Files
llm-wiki/concepts/rag-vs-compiled-wiki.md
T
2026-06-28 19:03:31 +09:00

27 lines
1.3 KiB
Markdown

---
title: RAG vs Compiled Wiki
created: 2026-06-28
updated: 2026-06-28
type: concept
tags: [retrieval, wiki, comparison, synthesis]
sources: [raw/articles/karpathy-llm-wiki-2026.md]
confidence: medium
---
# RAG vs Compiled Wiki
RAG は query-time retrieval が中心で、質問ごとに raw documents から relevant chunks を探し、都度 synthesis する。これは手軽だが、過去の読み込み・統合・矛盾検出が artifact として残りにくい。
Compiled wiki 型の [[llm-wiki-pattern]] は ingest-time synthesis が中心。source を追加した時点で [[wiki-maintenance-loop]] に沿って wiki page、cross-reference、index、log を更新する。後の質問では raw source だけでなく、すでに整理された中間知識を読める。
## Comparison
| Dimension | RAG | LLM Wiki |
|---|---|---|
| Main timing | Query time | Ingest + query time |
| Persistence | Index/chunks are persistent, synthesis is often transient | Synthesis, links, contradictions, log are persistent |
| Human role | Upload/ask | Curate/review/direct |
| Best for | Fast Q&A over docs | Long-running research and compounding knowledge |
[[obsidian]] や git と組み合わせると、LLM Wiki は読む・編集する・差分を見る、という通常の Markdown workflow に乗せやすい。