Files
nexus/wiki/concepts/LLMWikiArchitecture.md
2026-05-03 05:42:12 +08:00

35 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "LLMWikiArchitecture"
type: concept
tags: [architecture, knowledge-management, llm]
sources: [llm-wiki]
last_updated: 2026-05-02
---
## Overview
LLM Wiki 架构是 [[PersistentWiki]] 的结构化实现采用三层架构Raw Sources → Wiki → Schema。
## Three Layers
### Layer 1: Raw Sources原始资源
- 用户精心收集的源文档:文章、论文、图像、数据文件
- **不可变**LLM 读取但不修改是唯一的真实来源Source of Truth
- 位于仓库的 `raw/` 目录
### Layer 2: Wiki知识层
- LLM 生成的 Markdown 文件目录
- 包含:摘要页、实体页、概念页、综合分析、概览、索引
- **LLM 完全拥有并维护**:创建页面、新来源到达时更新、维护交叉引用、保持一致性
- 位于仓库的 `wiki/` 目录
### Layer 3: Schema模式文件
- 配置文件,告诉 LLM Wiki 的结构、约定和工作流
- 例如Claude Code 的 `CLAUDE.md`、Codex 的 `AGENTS.md`
- 是让 LLM 成为"规范的 Wiki 维护者"而非"普通聊天机器人"的关键
- 用户和 LLM 共同随时间演进
## Design Philosophy
- **人读 LLM 写**:用户消费 Wiki 内容LLM 负责编写和维护
- **LLM 不厌倦**LLM 不会忘记更新交叉引用,一次可以处理多个文件
- **维护成本接近零**:正是 LLM 承担维护工作,使 Wiki 可以持续运行