Initial commit: LLM Wiki with raw and wiki folders only
This commit is contained in:
10
.gitignore
vendored
Normal file
10
.gitignore
vendored
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
# 排除所有文件
|
||||||
|
/*
|
||||||
|
# 但保留这两个目录
|
||||||
|
!raw/
|
||||||
|
!wiki/
|
||||||
|
# 保留目录内的所有内容
|
||||||
|
!raw/**
|
||||||
|
!wiki/**
|
||||||
|
# 排除 .gitignore 自身
|
||||||
|
!.gitignore
|
||||||
224
raw/Karpathy知识库「LLM Wiki」火爆了,全网围观讨论.md
Normal file
224
raw/Karpathy知识库「LLM Wiki」火爆了,全网围观讨论.md
Normal file
@@ -0,0 +1,224 @@
|
|||||||
|
---
|
||||||
|
title: "Karpathy知识库「LLM Wiki」火爆了,全网围观讨论"
|
||||||
|
source: "https://mp.weixin.qq.com/s/-2H3xFx_R4KIIZ_vDpEYQw"
|
||||||
|
author:
|
||||||
|
- "[[微信公众平台]]"
|
||||||
|
published:
|
||||||
|
created: 2026-04-07
|
||||||
|
description: "一种新的知识构建方式"
|
||||||
|
tags:
|
||||||
|
- "clippings"
|
||||||
|
rating: 4
|
||||||
|
---
|
||||||
|
*2026年4月5日 12:31*
|
||||||
|
|
||||||
|
机器之心编辑部
|
||||||
|
|
||||||
|
还记得前几天,AI 领域知名学者 Andrej Karpathy 做客一档节目时,半开玩笑地提到:token 用不完会让人焦虑,就像患上了某种「 [AI 精神病](https://mp.weixin.qq.com/s?__biz=MzA3MzI4MjgzMw==&mid=2651022949&idx=1&sn=9e4b21d9aaea56cfbc292f6031f251cc&scene=21#wechat_redirect) 」。
|
||||||
|
|
||||||
|
这句话当时听起来有点夸张,但当你仔细看他最近在做的一系列东西,会发现他确实在用 AI 不断试各种路径。
|
||||||
|
|
||||||
|
就在近日,Karpathy 构建的 LLM 知识库「LLM Wiki」爆火,在社区迅速传播,引发大量讨论。
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
就连 Karpathy 自己都忍不住自夸一句:哇,我这条推文真的火爆了!
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
这条爆火的推文介绍了「LLM Wiki」的构建思路。Karpathy 表示,他把最近的想法稍微整理、优化了一下,然后用一个「idea file」的形式分享出来。在 LLM agent 时代,分享具体代码或应用的意义正在变弱,现在只需要分享想法,然后把它交给 Claude、Grok 等 Agent,它就可以根据你的需求,自动搭建一个属于你自己的个人知识库。
|
||||||
|
|
||||||
|
Karpathy 把这个想法整理成 gist 形式进行分发:你可以把它交给你的 agent,它会帮你构建一个属于你自己的 LLM wiki,并指导你如何使用等等。
|
||||||
|
|
||||||
|
' fill='%23FFFFFF'%3E%3Crect x='249' y='126' width='1' height='1'%3E%3C/rect%3E%3C/g%3E%3C/g%3E%3C/svg%3E)
|
||||||
|
|
||||||
|
地址:<https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f>
|
||||||
|
|
||||||
|
这个思路可以说是有点超前,在 Agent 时代,这意味着我们已经不需要再分享具体代码或应用了!只需要把「想法」交给对方的 Agent,让它根据你的需求自动完成定制和实现!
|
||||||
|
|
||||||
|
有观点认为,这不只是一个 AI 工具,而更像是一种元框架(meta-framework)。它并不依赖某个具体模型或技术栈,而是在尝试定义一种人类与 AI 协作管理知识的方式。随着模型不断迭代、框架持续演进,让 LLM 帮助编译并维护一个持续生长的 Wiki 这一模式,反而具备更长期的稳定性和适用性。
|
||||||
|
|
||||||
|
' fill='%23FFFFFF'%3E%3Crect x='249' y='126' width='1' height='1'%3E%3C/rect%3E%3C/g%3E%3C/g%3E%3C/svg%3E)
|
||||||
|
|
||||||
|
还有观点将这套「LLM Wiki」的工作方式梳理成一个更清晰的闭环,方便大家理解其核心逻辑:
|
||||||
|
|
||||||
|
- 将原始资料(论文 / 文章 / 代码 / 图片等)整理到 raw/ 目录中
|
||||||
|
- 由 LLM 将其编译为一个结构化的 wiki(包含.md 文件、反向链接以及概念分类)
|
||||||
|
- 使用 Obsidian 作为前端进行浏览
|
||||||
|
- 当 wiki 达到一定规模(他的案例是:100 篇文章、40 万字)后,可以直接围绕整个 wiki 提出复杂问题
|
||||||
|
- 将每一次问答的输出重新归档回 wiki—— 这一点我认为是核心;知识库会随着使用不断变强
|
||||||
|
- 由 LLM 定期进行健康检查:发现矛盾数据、补全缺失信息、挖掘新的研究方向
|
||||||
|
|
||||||
|
在这一过程中,一个颇具启发性的判断是:在中等规模下,这套体系并不依赖传统意义上的 RAG。只要 LLM 能够维护好索引和摘要,就已经可以支撑起有效的检索与推理。
|
||||||
|
|
||||||
|
进一步看,这一思路的延伸方向也逐渐清晰,通过合成数据与微调,将知识逐步内化进模型权重,而不再仅仅依赖上下文窗口进行调用。
|
||||||
|
|
||||||
|
从这个角度来看,这已经不只是一个使用技巧,而是在逼近一种自我增强的知识系统形态,也可以被视为一个具备产品潜力的雏形。
|
||||||
|
|
||||||
|
' fill='%23FFFFFF'%3E%3Crect x='249' y='126' width='1' height='1'%3E%3C/rect%3E%3C/g%3E%3C/g%3E%3C/svg%3E)
|
||||||
|
|
||||||
|
为何要构建「LLM Wiki」
|
||||||
|
|
||||||
|
Karpathy 表示,大多数人使用 LLM 处理文档的方式,基本都类似于 RAG:你上传一组文件,模型在查询时检索相关片段,然后生成答案。
|
||||||
|
|
||||||
|
这种方式是有效的,但问题在于每一次提问,模型都在从零重新发现知识。没有积累。如果你问一个需要综合五篇文档的复杂问题,模型每次都要重新去找相关片段,再拼接起来。没有任何东西被沉淀下来。像 NotebookLM、ChatGPT 文件上传,以及大多数 RAG 系统,基本都是这种模式。
|
||||||
|
|
||||||
|
「LLM Wiki」提出的是一种不同的思路,不是在查询时直接从原始文档中检索,而是让 LLM 逐步构建并维护一个持续存在的 wiki,一个结构化、相互链接的 Markdown 文件集合,作为你和原始资料之间的中间层。
|
||||||
|
|
||||||
|
当你添加新的资料时,模型不只是简单地索引以备后用,而是会真正去阅读它,提取关键信息,并将其整合进现有的 wiki:更新实体页面、修订主题总结、标记新信息与旧结论之间的冲突,对整体认知进行强化或修正。知识被编译一次,并持续更新,而不是在每次查询时重新推导。
|
||||||
|
|
||||||
|
用 Karpathy 的话来说,这个 wiki 是一个持续存在、不断累积的产物。交叉引用已经提前建立,矛盾已经被标注,综合结论已经反映了你读过的所有内容。随着你不断加入新资料、提出新问题,这个 wiki 会持续变得更丰富。
|
||||||
|
|
||||||
|
你几乎不需要(或者很少需要)亲自去写这个 wiki,所有内容都由 LLM 来生成和维护。你负责的是提供资料、进行探索、提出问题;而模型负责所有苦活:总结、建立关联、归档整理、维护结构,让知识库随着时间真正变得有用。在实际使用中,通常是一边打开 LLM agent,一边打开 Obsidian:模型根据对话不断修改内容,而你可以实时浏览结果,点开链接、查看知识图谱、阅读更新后的页面。
|
||||||
|
|
||||||
|
这么说吧,Obsidian 是 IDE,LLM 是程序员,wiki 是代码库。
|
||||||
|
|
||||||
|
「LLM Wiki」是如何构建的?
|
||||||
|
|
||||||
|
这个系统可以分为三个层次:
|
||||||
|
|
||||||
|
原始数据:这是你整理好的原始资料集合,包括文章、论文、图片、数据文件等。这一层是不可变的:LLM 只读取它们,但不会对其进行任何修改,这是整个系统的事实来源。
|
||||||
|
|
||||||
|
Wiki 层(The wiki):一个由 LLM 生成的 Markdown 文件目录,包含摘要、实体页面、概念页面、对比分析、整体概览以及综合性总结等内容。这一层完全由 LLM 负责:它会创建页面,在新增资料时更新内容,维护交叉引用,并保证整体一致性。你负责阅读它;LLM 负责编写和维护它。
|
||||||
|
|
||||||
|
Schema 层(The schema):一份指导性文档(例如给 Claude Code 用的 CLAUDE.md,或给 Codex 用的 AGENTS.md),用于告诉 LLM:这个 wiki 的结构是什么、遵循哪些规范,以及在处理数据(ingest)、回答问题、维护内容时应采用什么样的工作流程。
|
||||||
|
|
||||||
|
这是整个系统的关键配置文件,正是它让 LLM 从一个通用聊天模型,变成一个有纪律的 wiki 维护者。随着你在具体领域中不断实践,这一层也会与你和 LLM 一起持续演化、不断优化。
|
||||||
|
|
||||||
|
操作(Operations)
|
||||||
|
|
||||||
|
数据摄取(Ingest):你将新的资料加入到原始数据集合中,并让 LLM 对其进行处理。一个典型流程是:LLM 读取资料,与你讨论关键要点,在 wiki 中写出一篇摘要页面,更新索引,同时更新整个 wiki 中相关的实体页和概念页,并在日志中追加一条记录。一个来源往往会影响 10–15 个 wiki 页面。Karpathy 个人更倾向于一次处理一个来源,并保持参与,他会阅读摘要、检查更新,并引导 LLM 强调重点。但你也可以选择批量导入多个来源,减少监督。最终,你可以形成一套适合自己风格的工作流,并将其记录在 schema 中,供后续使用。
|
||||||
|
|
||||||
|
查询(Query):你可以围绕 wiki 提出问题。LLM 会搜索相关页面,阅读内容,并综合生成带引用的回答。回答形式可以根据问题而变化,可以是一个 Markdown 页面、一个对比表、一份幻灯片(Marp)、一张图表(matplotlib),甚至是一个画布(canvas)。关键的一点是:好的回答可以被重新归档进 wiki,成为新的页面。无论是一次对比分析、一段推理,还是你发现的一条关联,这些内容都具有价值,不应该消失在聊天记录里。通过这种方式,你的探索会像导入的资料一样,在知识库中持续积累。
|
||||||
|
|
||||||
|
质量检查(Lint):可以定期让 LLM 对 wiki 进行健康检查。重点包括:页面之间是否存在矛盾;是否有被新资料取代的过时结论;是否存在没有入链的孤立页面;是否有被提及但尚未建立页面的重要概念;是否缺少交叉引用;是否存在可以通过网页搜索补充的数据空缺。LLM 也很擅长提出新的研究问题和建议新的信息来源。这一过程可以帮助 wiki 在不断扩展的同时,保持结构清晰和内容一致。
|
||||||
|
|
||||||
|
「LLM Wiki」应用场景
|
||||||
|
|
||||||
|
这种方式可以应用在很多不同场景中,例如:
|
||||||
|
|
||||||
|
个人层面:记录你的目标、健康、心理状态、自我成长过程,整理日记、文章、播客笔记,逐步构建一个关于你自己的结构化认知。
|
||||||
|
|
||||||
|
研究场景:围绕某个主题深入数周甚至数月,阅读论文、文章、报告,逐步构建一个不断演化的完整知识体系和核心观点。
|
||||||
|
|
||||||
|
读书场景:随着阅读进度整理每一章内容,建立人物、主题、情节线索之间的关联页面。读完之后,你会得到一个丰富的配套 wiki。可以类比像 Tolkien Gateway 这样的维基,由社区多年构建的、包含人物、地点、事件、语言等内容的庞大知识网络。现在,你可以在阅读过程中个人构建类似系统,由 LLM 完成所有的关联和维护。
|
||||||
|
|
||||||
|
企业 / 团队:一个由 LLM 维护的内部 wiki,持续接入 Slack 对话、会议记录、项目文档、客户沟通等信息,必要时由人工参与审核更新。由于维护工作由模型承担,这个 wiki 能够保持实时更新,而不再依赖团队成员额外投入精力。
|
||||||
|
|
||||||
|
竞品分析、尽职调查、旅行规划、课程笔记、兴趣深度研究,任何需要长期积累知识、并希望其被系统化组织而不是零散分布的场景,都可以采用这种模式。
|
||||||
|
|
||||||
|
最后,Karpathy 还强调了,关于「LLM Wiki」,他只是提供了一种思路,而不是一个具体实现。具体的目录结构、schema 规范、页面格式以及工具链,都会取决于用户使用场景、个人偏好以及所选择的 LLM。
|
||||||
|
|
||||||
|
上面提到的所有内容都是可选且模块化的,有用的就用,不合适的可以忽略。
|
||||||
|
|
||||||
|
' fill='%23FFFFFF'%3E%3Crect x='249' y='126' width='1' height='1'%3E%3C/rect%3E%3C/g%3E%3C/g%3E%3C/svg%3E)
|
||||||
|
|
||||||
|
© THE END
|
||||||
|
|
||||||
|
转载请联系本公众号获得授权
|
||||||
|
|
||||||
|
投稿或寻求报道:liyazhou@jiqizhixin.com
|
||||||
|
|
||||||
|
继续滑动看下一个
|
||||||
|
|
||||||
|
机器之心
|
||||||
|
|
||||||
|
向上滑动看下一个
|
||||||
|
|
||||||
|
搜索范围
|
||||||
|
|
||||||
|
全网
|
||||||
|
|
||||||
|
文库
|
||||||
|
|
||||||
|
学术
|
||||||
|
|
||||||
|
所有文献
|
||||||
|
|
||||||
|
所有文献
|
||||||
|
|
||||||
|
中文库
|
||||||
|
|
||||||
|
英文库
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
PubMed
|
||||||
|
|
||||||
|
北大核心
|
||||||
|
|
||||||
|
中科院分区
|
||||||
|
|
||||||
|
全部
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
中科院1区
|
||||||
|
|
||||||
|
中科院1-2区
|
||||||
|
|
||||||
|
中科院1-3区
|
||||||
|
|
||||||
|
JCR
|
||||||
|
|
||||||
|
全部
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
JCR:Q1
|
||||||
|
|
||||||
|
JCR:Q1-Q2
|
||||||
|
|
||||||
|
JCR:Q1-Q3
|
||||||
|
|
||||||
|
SCIE
|
||||||
|
|
||||||
|
EI
|
||||||
|
|
||||||
|
图片
|
||||||
|
|
||||||
|
视频
|
||||||
|
|
||||||
|
播客
|
||||||
|
|
||||||
|
我的
|
||||||
|
|
||||||
|
全部
|
||||||
|
|
||||||
|
我的
|
||||||
|
|
||||||
|
通识-持续更新
|
||||||
|
|
||||||
|
知识库obsidian
|
||||||
|
|
||||||
|
秘塔AI入门精选和使用技巧
|
||||||
|
|
||||||
|
AIforEDU
|
||||||
|
|
||||||
|
AI全栈提示词助手prompt专家
|
||||||
|
|
||||||
|
Download | Tailscale
|
||||||
|
|
||||||
|
营养师
|
||||||
|
|
||||||
|
芯片·半导体 行业全景库(持续更新)
|
||||||
|
|
||||||
|
慢成长图书馆(持续更新)
|
||||||
|
|
||||||
|
心灵工具箱
|
||||||
|
|
||||||
|
强度
|
||||||
|
|
||||||
|
深入
|
||||||
|
|
||||||
|
简洁
|
||||||
|
|
||||||
|
深入
|
||||||
|
|
||||||
|
深度研究
|
||||||
|
|
||||||
|
先想后搜
|
||||||
|
|
||||||
|
先搜后扩
|
||||||
|
|
||||||
|
科技新闻
|
||||||
87
raw/llm-wiki.md
Normal file
87
raw/llm-wiki.md
Normal file
@@ -0,0 +1,87 @@
|
|||||||
|
---
|
||||||
|
title: "llm-wiki"
|
||||||
|
source: "https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f"
|
||||||
|
author:
|
||||||
|
- "[[Gist]]"
|
||||||
|
published:
|
||||||
|
created: 2026-04-07
|
||||||
|
description: "llm-wiki. GitHub Gist: instantly share code, notes, and snippets."
|
||||||
|
tags:
|
||||||
|
- "clippings"
|
||||||
|
rating: 4
|
||||||
|
---
|
||||||
|
|
||||||
|
## LLM Wiki
|
||||||
|
|
||||||
|
A pattern for building personal knowledge bases using LLMs.
|
||||||
|
|
||||||
|
This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.
|
||||||
|
|
||||||
|
## The core idea
|
||||||
|
|
||||||
|
Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.
|
||||||
|
|
||||||
|
The idea here is different. Instead of just retrieving from raw documents at query time, the LLM **incrementally builds and maintains a persistent wiki** — a structured, interlinked collection of markdown files that sits between you and the raw sources. When you add a new source, the LLM doesn't just index it for later retrieval. It reads it, extracts the key information, and integrates it into the existing wiki — updating entity pages, revising topic summaries, noting where new data contradicts old claims, strengthening or challenging the evolving synthesis. The knowledge is compiled once and then *kept current*, not re-derived on every query.
|
||||||
|
|
||||||
|
This is the key difference: **the wiki is a persistent, compounding artifact.** The cross-references are already there. The contradictions have already been flagged. The synthesis already reflects everything you've read. The wiki keeps getting richer with every source you add and every question you ask.
|
||||||
|
|
||||||
|
You never (or rarely) write the wiki yourself — the LLM writes and maintains all of it. You're in charge of sourcing, exploration, and asking the right questions. The LLM does all the grunt work — the summarizing, cross-referencing, filing, and bookkeeping that makes a knowledge base actually useful over time. In practice, I have the LLM agent open on one side and Obsidian open on the other. The LLM makes edits based on our conversation, and I browse the results in real time — following links, checking the graph view, reading the updated pages. Obsidian is the IDE; the LLM is the programmer; the wiki is the codebase.
|
||||||
|
|
||||||
|
This can apply to a lot of different contexts. A few examples:
|
||||||
|
|
||||||
|
- **Personal**: tracking your own goals, health, psychology, self-improvement — filing journal entries, articles, podcast notes, and building up a structured picture of yourself over time.
|
||||||
|
- **Research**: going deep on a topic over weeks or months — reading papers, articles, reports, and incrementally building a comprehensive wiki with an evolving thesis.
|
||||||
|
- **Reading a book**: filing each chapter as you go, building out pages for characters, themes, plot threads, and how they connect. By the end you have a rich companion wiki. Think of fan wikis like [Tolkien Gateway](https://tolkiengateway.net/wiki/Main_Page) — thousands of interlinked pages covering characters, places, events, languages, built by a community of volunteers over years. You could build something like that personally as you read, with the LLM doing all the cross-referencing and maintenance.
|
||||||
|
- **Business/team**: an internal wiki maintained by LLMs, fed by Slack threads, meeting transcripts, project documents, customer calls. Possibly with humans in the loop reviewing updates. The wiki stays current because the LLM does the maintenance that no one on the team wants to do.
|
||||||
|
- **Competitive analysis, due diligence, trip planning, course notes, hobby deep-dives** — anything where you're accumulating knowledge over time and want it organized rather than scattered.
|
||||||
|
|
||||||
|
## Architecture
|
||||||
|
|
||||||
|
There are three layers:
|
||||||
|
|
||||||
|
**Raw sources** — your curated collection of source documents. Articles, papers, images, data files. These are immutable — the LLM reads from them but never modifies them. This is your source of truth.
|
||||||
|
|
||||||
|
**The wiki** — a directory of LLM-generated markdown files. Summaries, entity pages, concept pages, comparisons, an overview, a synthesis. The LLM owns this layer entirely. It creates pages, updates them when new sources arrive, maintains cross-references, and keeps everything consistent. You read it; the LLM writes it.
|
||||||
|
|
||||||
|
**The schema** — a document (e.g. CLAUDE.md for Claude Code or AGENTS.md for Codex) that tells the LLM how the wiki is structured, what the conventions are, and what workflows to follow when ingesting sources, answering questions, or maintaining the wiki. This is the key configuration file — it's what makes the LLM a disciplined wiki maintainer rather than a generic chatbot. You and the LLM co-evolve this over time as you figure out what works for your domain.
|
||||||
|
|
||||||
|
## Operations
|
||||||
|
|
||||||
|
**Ingest.** You drop a new source into the raw collection and tell the LLM to process it. An example flow: the LLM reads the source, discusses key takeaways with you, writes a summary page in the wiki, updates the index, updates relevant entity and concept pages across the wiki, and appends an entry to the log. A single source might touch 10-15 wiki pages. Personally I prefer to ingest sources one at a time and stay involved — I read the summaries, check the updates, and guide the LLM on what to emphasize. But you could also batch-ingest many sources at once with less supervision. It's up to you to develop the workflow that fits your style and document it in the schema for future sessions.
|
||||||
|
|
||||||
|
**Query.** You ask questions against the wiki. The LLM searches for relevant pages, reads them, and synthesizes an answer with citations. Answers can take different forms depending on the question — a markdown page, a comparison table, a slide deck (Marp), a chart (matplotlib), a canvas. The important insight: **good answers can be filed back into the wiki as new pages.** A comparison you asked for, an analysis, a connection you discovered — these are valuable and shouldn't disappear into chat history. This way your explorations compound in the knowledge base just like ingested sources do.
|
||||||
|
|
||||||
|
**Lint.** Periodically, ask the LLM to health-check the wiki. Look for: contradictions between pages, stale claims that newer sources have superseded, orphan pages with no inbound links, important concepts mentioned but lacking their own page, missing cross-references, data gaps that could be filled with a web search. The LLM is good at suggesting new questions to investigate and new sources to look for. This keeps the wiki healthy as it grows.
|
||||||
|
|
||||||
|
## Indexing and logging
|
||||||
|
|
||||||
|
Two special files help the LLM (and you) navigate the wiki as it grows. They serve different purposes:
|
||||||
|
|
||||||
|
**index.md** is content-oriented. It's a catalog of everything in the wiki — each page listed with a link, a one-line summary, and optionally metadata like date or source count. Organized by category (entities, concepts, sources, etc.). The LLM updates it on every ingest. When answering a query, the LLM reads the index first to find relevant pages, then drills into them. This works surprisingly well at moderate scale (~100 sources, ~hundreds of pages) and avoids the need for embedding-based RAG infrastructure.
|
||||||
|
|
||||||
|
**log.md** is chronological. It's an append-only record of what happened and when — ingests, queries, lint passes. A useful tip: if each entry starts with a consistent prefix (e.g. `## [2026-04-02] ingest | Article Title`), the log becomes parseable with simple unix tools — `grep "^## \[" log.md | tail -5` gives you the last 5 entries. The log gives you a timeline of the wiki's evolution and helps the LLM understand what's been done recently.
|
||||||
|
|
||||||
|
## Optional: CLI tools
|
||||||
|
|
||||||
|
At some point you may want to build small tools that help the LLM operate on the wiki more efficiently. A search engine over the wiki pages is the most obvious one — at small scale the index file is enough, but as the wiki grows you want proper search. [qmd](https://github.com/tobi/qmd) is a good option: it's a local search engine for markdown files with hybrid BM25/vector search and LLM re-ranking, all on-device. It has both a CLI (so the LLM can shell out to it) and an MCP server (so the LLM can use it as a native tool). You could also build something simpler yourself — the LLM can help you vibe-code a naive search script as the need arises.
|
||||||
|
|
||||||
|
## Tips and tricks
|
||||||
|
|
||||||
|
- **Obsidian Web Clipper** is a browser extension that converts web articles to markdown. Very useful for quickly getting sources into your raw collection.
|
||||||
|
- **Download images locally.** In Obsidian Settings → Files and links, set "Attachment folder path" to a fixed directory (e.g. `raw/assets/`). Then in Settings → Hotkeys, search for "Download" to find "Download attachments for current file" and bind it to a hotkey (e.g. Ctrl+Shift+D). After clipping an article, hit the hotkey and all images get downloaded to local disk. This is optional but useful — it lets the LLM view and reference images directly instead of relying on URLs that may break. Note that LLMs can't natively read markdown with inline images in one pass — the workaround is to have the LLM read the text first, then view some or all of the referenced images separately to gain additional context. It's a bit clunky but works well enough.
|
||||||
|
- **Obsidian's graph view** is the best way to see the shape of your wiki — what's connected to what, which pages are hubs, which are orphans.
|
||||||
|
- **Marp** is a markdown-based slide deck format. Obsidian has a plugin for it. Useful for generating presentations directly from wiki content.
|
||||||
|
- **Dataview** is an Obsidian plugin that runs queries over page frontmatter. If your LLM adds YAML frontmatter to wiki pages (tags, dates, source counts), Dataview can generate dynamic tables and lists.
|
||||||
|
- The wiki is just a git repo of markdown files. You get version history, branching, and collaboration for free.
|
||||||
|
|
||||||
|
## Why this works
|
||||||
|
|
||||||
|
The tedious part of maintaining a knowledge base is not the reading or the thinking — it's the bookkeeping. Updating cross-references, keeping summaries current, noting when new data contradicts old claims, maintaining consistency across dozens of pages. Humans abandon wikis because the maintenance burden grows faster than the value. LLMs don't get bored, don't forget to update a cross-reference, and can touch 15 files in one pass. The wiki stays maintained because the cost of maintenance is near zero.
|
||||||
|
|
||||||
|
The human's job is to curate sources, direct the analysis, ask good questions, and think about what it all means. The LLM's job is everything else.
|
||||||
|
|
||||||
|
The idea is related in spirit to Vannevar Bush's Memex (1945) — a personal, curated knowledge store with associative trails between documents. Bush's vision was closer to this than to what the web became: private, actively curated, with the connections between documents as valuable as the documents themselves. The part he couldn't solve was who does the maintenance. The LLM handles that.
|
||||||
|
|
||||||
|
## Note
|
||||||
|
|
||||||
|
This document is intentionally abstract. It describes the idea, not a specific implementation. The exact directory structure, the schema conventions, the page formats, the tooling — all of that will depend on your domain, your preferences, and your LLM of choice. Everything mentioned above is optional and modular — pick what's useful, ignore what isn't. For example: your sources might be text-only, so you don't need image handling at all. Your wiki might be small enough that the index file is all you need, no search engine required. You might not care about slide decks and just want markdown pages. You might want a completely different set of output formats. The right way to use this is to share it with your LLM agent and work together to instantiate a version that fits your needs. The document's only job is to communicate the pattern. Your LLM can figure out the rest.
|
||||||
282
raw/marp-guide.md
Normal file
282
raw/marp-guide.md
Normal file
@@ -0,0 +1,282 @@
|
|||||||
|
---
|
||||||
|
title: "Marp 学习资料汇编"
|
||||||
|
source:
|
||||||
|
- "https://github.com/marp-team/marp"
|
||||||
|
- "https://github.com/marp-team/marpit"
|
||||||
|
- "https://github.com/marp-team/marp-cli"
|
||||||
|
- "https://github.com/JichouP/obsidian-marp-plugin"
|
||||||
|
- "https://samuele-cozzi.github.io/obsidian-marp-slides/"
|
||||||
|
author:
|
||||||
|
- "[[Marp Team]]"
|
||||||
|
- "[[JichouP]]"
|
||||||
|
- "[[Samuele Cozzi]]"
|
||||||
|
created: 2026-04-07
|
||||||
|
description: "Marp 生态系统学习资料汇编:Marpit 框架、Marp CLI、Obsidian Marp 插件"
|
||||||
|
tags:
|
||||||
|
- "clippings"
|
||||||
|
- "marp"
|
||||||
|
- "presentation"
|
||||||
|
- "obsidian"
|
||||||
|
rating: 4
|
||||||
|
---
|
||||||
|
|
||||||
|
## 1. Marp 生态系统概述
|
||||||
|
|
||||||
|
Marp 是一个用纯 Markdown 编写演示文稿的生态系统。
|
||||||
|
|
||||||
|
核心组件:
|
||||||
|
|
||||||
|
| 组件 | 说明 |
|
||||||
|
|------|------|
|
||||||
|
| **Marpit** | 瘦框架,将 Markdown 转为幻灯片 |
|
||||||
|
| **Marp Core** | 核心转换引擎,含内置主题 |
|
||||||
|
| **Marp CLI** | 命令行工具,导出 HTML/PDF/PPTX/图片 |
|
||||||
|
| **Marp for VS Code** | VS Code 扩展,实时预览 |
|
||||||
|
| **Obsidian Marp Plugin** | Obsidian 集成,预览和导出 |
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 2. Marpit 指令系统(Directives)
|
||||||
|
|
||||||
|
Marpit 通过"指令"扩展 Markdown,控制幻灯片的行为和样式。
|
||||||
|
|
||||||
|
### 写法
|
||||||
|
|
||||||
|
**HTML 注释方式**:
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
<!--
|
||||||
|
theme: default
|
||||||
|
paginate: true
|
||||||
|
-->
|
||||||
|
```
|
||||||
|
|
||||||
|
**Front-matter 方式**:
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
---
|
||||||
|
theme: default
|
||||||
|
paginate: true
|
||||||
|
---
|
||||||
|
```
|
||||||
|
|
||||||
|
### 全局指令(Global Directives)
|
||||||
|
|
||||||
|
作用于整个演示文稿,多次书写只认最后一个。
|
||||||
|
|
||||||
|
| 指令 | 说明 |
|
||||||
|
|------|------|
|
||||||
|
| `theme` | 指定主题 |
|
||||||
|
| `style` | 自定义 CSS(避免污染其他编辑器) |
|
||||||
|
| `headingDivider` | 按标题级别自动分页 |
|
||||||
|
| `lang` | 设置 HTML lang 属性 |
|
||||||
|
|
||||||
|
### 局部指令(Local Directives)
|
||||||
|
|
||||||
|
作用于**当前页及后续所有页**。
|
||||||
|
|
||||||
|
| 指令 | 说明 |
|
||||||
|
|------|------|
|
||||||
|
| `paginate` | 显示页码(true/false/hold/skip) |
|
||||||
|
| `header` | 页眉内容 |
|
||||||
|
| `footer` | 页脚内容 |
|
||||||
|
| `class` | 设置 `<section>` 的 CSS 类 |
|
||||||
|
| `backgroundColor` | 背景色 |
|
||||||
|
| `backgroundImage` | 背景图 |
|
||||||
|
| `backgroundPosition` | 背景位置(默认 center) |
|
||||||
|
| `backgroundRepeat` | 背景重复(默认 no-repeat) |
|
||||||
|
| `backgroundSize` | 背景大小(默认 cover) |
|
||||||
|
| `color` | 文字颜色 |
|
||||||
|
|
||||||
|
### Spot 指令(仅当前页)
|
||||||
|
|
||||||
|
在局部指令名前加 `_` 前缀,仅对当前页生效:
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
<!-- _backgroundColor: black -->
|
||||||
|
<!-- _color: white -->
|
||||||
|
```
|
||||||
|
|
||||||
|
### 分页控制(paginate 的四种值)
|
||||||
|
|
||||||
|
| 值 | 显示页码 | 递增页码 |
|
||||||
|
|----|----------|----------|
|
||||||
|
| `true` | ✅ | ✅ |
|
||||||
|
| `false` | ❌ | ✅ |
|
||||||
|
| `hold` | ✅ | ❌ |
|
||||||
|
| `skip` | ❌ | ❌ |
|
||||||
|
|
||||||
|
### 标题自动分页(headingDivider)
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
<!-- headingDivider: 2 -->
|
||||||
|
|
||||||
|
# 1st page
|
||||||
|
内容...
|
||||||
|
|
||||||
|
## 2nd page(h2 触发分页)
|
||||||
|
内容...
|
||||||
|
|
||||||
|
# 3rd page(h1 也触发分页)
|
||||||
|
```
|
||||||
|
|
||||||
|
数值表示"大于等于该级别的标题都会分页",数组则只对指定级别生效。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 3. 内置主题
|
||||||
|
|
||||||
|
Marp Core 提供三个内置主题:
|
||||||
|
|
||||||
|
| 主题 | 风格 |
|
||||||
|
|------|------|
|
||||||
|
| `default` | 经典白底,蓝灰色调 |
|
||||||
|
| `uncover` | 现代、极简、居中布局 |
|
||||||
|
| `gaia` | 彩色、大胆、左对齐 |
|
||||||
|
|
||||||
|
使用方式:
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
---
|
||||||
|
marp: true
|
||||||
|
theme: uncover
|
||||||
|
---
|
||||||
|
```
|
||||||
|
|
||||||
|
### 自定义主题
|
||||||
|
|
||||||
|
创建 CSS 文件,使用 Marpit 的主题规范:
|
||||||
|
|
||||||
|
```css
|
||||||
|
/* @theme my-theme */
|
||||||
|
@import 'default';
|
||||||
|
|
||||||
|
section {
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
color: #0066cc;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 4. Marp CLI
|
||||||
|
|
||||||
|
### 安装
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# npm
|
||||||
|
npx @marp-team/marp-cli@latest
|
||||||
|
|
||||||
|
# macOS
|
||||||
|
brew install marp-cli
|
||||||
|
|
||||||
|
# Windows (Scoop)
|
||||||
|
scoop install marp
|
||||||
|
```
|
||||||
|
|
||||||
|
### 基本用法
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# 导出 HTML(默认)
|
||||||
|
marp presentation.md
|
||||||
|
|
||||||
|
# 导出 PDF
|
||||||
|
marp presentation.md --pdf
|
||||||
|
|
||||||
|
# 导出 PPTX
|
||||||
|
marp presentation.md --pptx
|
||||||
|
|
||||||
|
# 指定输出文件
|
||||||
|
marp presentation.md -o output.html
|
||||||
|
|
||||||
|
# 使用特定主题
|
||||||
|
marp --theme uncover --pdf presentation.md
|
||||||
|
|
||||||
|
# 导出后立即打开
|
||||||
|
marp presentation.md --pdf --open
|
||||||
|
```
|
||||||
|
|
||||||
|
> PDF/PPTX 导出需要系统安装 Chrome 或 Edge。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 5. Obsidian Marp 插件
|
||||||
|
|
||||||
|
来源:<https://github.com/JichouP/obsidian-marp-plugin>
|
||||||
|
|
||||||
|
### 功能
|
||||||
|
|
||||||
|
- **预览**:点击侧边栏按钮或命令面板运行 `Marp: Open Preview`
|
||||||
|
- **自动重载**:保存文件后自动刷新预览
|
||||||
|
- **导出**:支持 PDF、PPTX、HTML(需要 Node.js)
|
||||||
|
- **图片嵌入**:支持 Wikilink(`![[image.png]]`)和 CommonMark(``)格式
|
||||||
|
- **过渡效果**:HTML 导出支持页面过渡动画
|
||||||
|
|
||||||
|
### 设置
|
||||||
|
|
||||||
|
| 设置项 | 类型 | 默认值 | 说明 |
|
||||||
|
|--------|------|--------|------|
|
||||||
|
| Enable Auto Reload | toggle | on | 保存时自动刷新预览 |
|
||||||
|
| Open Preview in Split Tab | toggle | on | 在分栏中打开预览 |
|
||||||
|
| Theme Folder Location | text | `MarpTheme` | 自定义主题 CSS 目录 |
|
||||||
|
|
||||||
|
### 自定义主题
|
||||||
|
|
||||||
|
```
|
||||||
|
<your-vault>
|
||||||
|
└── MarpTheme/
|
||||||
|
├── beamer.css
|
||||||
|
├── border.css
|
||||||
|
└── gradient.css
|
||||||
|
```
|
||||||
|
|
||||||
|
> 添加 CSS 后需要重启 Obsidian。
|
||||||
|
|
||||||
|
### 图片处理
|
||||||
|
|
||||||
|
导出时图片自动转为 Base64 嵌入,支持本地图片分享。路径支持:
|
||||||
|
|
||||||
|
- Wikilink:`![[path/to/image.png]]`
|
||||||
|
- CommonMark:``
|
||||||
|
- 绝对路径和相对路径(相对于 vault 根目录)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 6. 最小可运行示例
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
---
|
||||||
|
marp: true
|
||||||
|
theme: uncover
|
||||||
|
paginate: true
|
||||||
|
---
|
||||||
|
|
||||||
|
# 我的第一个 Marp 幻灯片
|
||||||
|
|
||||||
|
用 Markdown 写演示文稿
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 第二页
|
||||||
|
|
||||||
|
- 项目一
|
||||||
|
- 项目二
|
||||||
|
- 项目三
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 第三页
|
||||||
|
|
||||||
|
> 就这么简单!
|
||||||
|
|
||||||
|
<!-- _backgroundColor: #1a1a2e -->
|
||||||
|
<!-- _color: #e0e0e0 -->
|
||||||
|
|
||||||
|
# 深色背景页
|
||||||
|
|
||||||
|
这段文字是浅色的
|
||||||
|
```
|
||||||
68
raw/marp-themes.md
Normal file
68
raw/marp-themes.md
Normal file
@@ -0,0 +1,68 @@
|
|||||||
|
---
|
||||||
|
title: "Marp CSS 主题推荐"
|
||||||
|
source:
|
||||||
|
- "https://github.com/favourhong/Awesome-Marp"
|
||||||
|
- "https://github.com/cunhapaulo/marpstyle"
|
||||||
|
- "https://github.com/rnd195/marp-community-themes"
|
||||||
|
- "https://github.com/zhaoluting/marp-themes"
|
||||||
|
- "https://github.com/cunhapaulo/MarpX"
|
||||||
|
- "https://github.com/marp-team/awesome-marp"
|
||||||
|
author:
|
||||||
|
- "[[favourhong]]"
|
||||||
|
- "[[cunhapaulo]]"
|
||||||
|
- "[[rnd195]]"
|
||||||
|
- "[[zhaoluting]]"
|
||||||
|
created: 2026-04-07
|
||||||
|
description: "GitHub 上优质的 Marp CSS 主题合集推荐"
|
||||||
|
tags:
|
||||||
|
- "clippings"
|
||||||
|
- "marp"
|
||||||
|
- "themes"
|
||||||
|
- "css"
|
||||||
|
rating: 4
|
||||||
|
---
|
||||||
|
|
||||||
|
## 1. favourhong/Awesome-Marp ⭐953
|
||||||
|
|
||||||
|
最全面的中文友好学术主题,直接对标 LaTeX Beamer。
|
||||||
|
|
||||||
|
- 6 种主题色:深色、绿色、蓝色、红色、紫色、棕色
|
||||||
|
- 38 种自定义样式:页面分栏(8种)、列表分栏(6种)、封面页(5种)、目录页(3种)、Callout(5种)、导航进度栏
|
||||||
|
- 中文字体适配:方正宋刻本秀楷、方正苏新诗柳楷、霞鹜文楷
|
||||||
|
- 搭配 VS Code 或 Obsidian 使用
|
||||||
|
- 仓库:<https://github.com/favourhong/Awesome-Marp>
|
||||||
|
|
||||||
|
核心结构:themes/ 下 6 个 SCSS 文件,通过 CSS 变量控制主题色,class 指令切换布局。
|
||||||
|
|
||||||
|
## 2. cunhapaulo/marpstyle ⭐198
|
||||||
|
|
||||||
|
简洁美观的通用主题合集。
|
||||||
|
|
||||||
|
- 注重美感和简洁
|
||||||
|
- MIT 开源
|
||||||
|
- 仓库:<https://github.com/cunhapaulo/marpstyle>
|
||||||
|
|
||||||
|
升级版 MarpX(⭐62):<https://github.com/cunhapaulo/MarpX>
|
||||||
|
|
||||||
|
## 3. rnd195/marp-community-themes ⭐42
|
||||||
|
|
||||||
|
社区维护的主题画廊,有在线预览。
|
||||||
|
|
||||||
|
- 在线预览:<https://rnd195.github.io/marp-community-themes/>
|
||||||
|
- 10 个主题含明暗分类
|
||||||
|
- 包括:Academic、Beam、Border、Gradient、Graph Paper、Rosé Pine 系列(Dawn/Moon)、Gaia、Uncover
|
||||||
|
- 仓库:<https://github.com/rnd195/marp-community-themes>
|
||||||
|
|
||||||
|
## 4. zhaoluting/marp-themes ⭐79
|
||||||
|
|
||||||
|
机构定制主题示例。
|
||||||
|
|
||||||
|
- 公司浅蓝主题
|
||||||
|
- 浙大蓝学术主题
|
||||||
|
- 仓库:<https://github.com/zhaoluting/marp-themes>
|
||||||
|
|
||||||
|
## 5. marp-team/awesome-marp
|
||||||
|
|
||||||
|
官方 awesome list,汇总生态工具和主题。
|
||||||
|
|
||||||
|
- 仓库:<https://github.com/marp-team/awesome-marp>
|
||||||
372
raw/刚刚,Karpathy 开源个人 LLM Wiki.md
Normal file
372
raw/刚刚,Karpathy 开源个人 LLM Wiki.md
Normal file
@@ -0,0 +1,372 @@
|
|||||||
|
---
|
||||||
|
title: "刚刚,Karpathy 开源个人 LLM Wiki"
|
||||||
|
source: "https://mp.weixin.qq.com/s/vYVx8yf9eoTGXSWIrpOZ6Q"
|
||||||
|
author:
|
||||||
|
- "[[J0hn]]"
|
||||||
|
published:
|
||||||
|
created: 2026-04-07
|
||||||
|
description: "不是代码,是一份 75 行的「idea file」,丢给你的 Agent 就能跑。"
|
||||||
|
tags:
|
||||||
|
- "clippings"
|
||||||
|
rating: 4
|
||||||
|
---
|
||||||
|
|
||||||
|
原创 J0hn *2026年4月5日 09:01*
|
||||||
|
|
||||||
|
Karpathy 的一条帖子,3 天拿下 4.3 万点赞、1200 万浏览,直接炸了。
|
||||||
|
|
||||||
|
 
|
||||||
|
|
||||||
|
两天前,Karpathy 在 X 上发了一条长帖,标题是: **LLM Knowledge Bases** 。
|
||||||
|
|
||||||
|
他说自己最近花在 LLM 上的 token,越来越少用来写代码了,更多是在「操控知识」。
|
||||||
|
|
||||||
|
> “ 我最近发现了一个非常有用的东西:用 LLM 来为各种研究兴趣构建个人知识库。这样一来,我最近的 token 消耗中,有很大一部分不再是用来操控代码,而是用来操控知识(以 Markdown 和图片的形式存储)。
|
||||||
|
|
||||||
|
两天后,他把这套方法论写成了一份 gist 发到 GitHub 上,开源给所有人。
|
||||||
|
|
||||||
|
' fill='%23FFFFFF'%3E%3Crect x='249' y='126' width='1' height='1'%3E%3C/rect%3E%3C/g%3E%3C/g%3E%3C/svg%3E)
|
||||||
|
|
||||||
|
但这份开源,跟以往的不太一样。
|
||||||
|
|
||||||
|
01
|
||||||
|
|
||||||
|
## 不是代码,是想法
|
||||||
|
|
||||||
|
Karpathy 这次开源的不是一个 repo,不是一个框架,甚至不是一段脚本。
|
||||||
|
|
||||||
|
' fill='%23FFFFFF'%3E%3Crect x='249' y='126' width='1' height='1'%3E%3C/rect%3E%3C/g%3E%3C/g%3E%3C/svg%3E)
|
||||||
|
|
||||||
|
是一份……75 行的 Markdown 文件,他叫它 **idea file** 。
|
||||||
|
|
||||||
|
Karpathy 说:
|
||||||
|
|
||||||
|
> “ 在这个 LLM Agent 的时代,分享具体的代码或应用已经意义不大了。你只需要分享想法,然后对方的 Agent 会根据你的具体需求来定制和构建。
|
||||||
|
|
||||||
|
你可以把这份文件直接丢给 Claude Code、OpenAI Codex 或者任何你喜欢的 Agent,它就能帮你搭建出你自己的 LLM Wiki,并指导你怎么用。
|
||||||
|
|
||||||
|
' fill='%23FFFFFF'%3E%3Crect x='249' y='126' width='1' height='1'%3E%3C/rect%3E%3C/g%3E%3C/g%3E%3C/svg%3E)
|
||||||
|
|
||||||
|
换句话说: **开源的不再是代码,而是思路。**
|
||||||
|
|
||||||
|
造词大师 Karpathy 还顺便又造了个新词。
|
||||||
|
|
||||||
|
有人在评论区回复他,他提到 Peter Steinberger 跟他说,以后 PR 应该叫 **Prompt Request** ,而不是 Pull Request。因为 Agent 完全有能力自己实现大多数想法,没必要把你的想法用免费版 ChatGPT 写成一坨 vibe coding 的代码再提交。
|
||||||
|
|
||||||
|
02
|
||||||
|
|
||||||
|
## 所以到底是啥
|
||||||
|
|
||||||
|
简单来说,Karpathy 搞了一套系统:让 LLM 帮你把乱七八糟的资料「编译」成一个结构清晰、互相链接的 Markdown Wiki。
|
||||||
|
|
||||||
|
传统的 RAG 大家都知道:你上传一堆文件,LLM 每次提问时去检索相关片段,然后生成答案。NotebookLM、ChatGPT 文件上传,基本都是这个思路。
|
||||||
|
|
||||||
|
问题在哪呢? **每次提问,LLM 都在从头发现知识。没有积累。**
|
||||||
|
|
||||||
|
' fill='%23FFFFFF'%3E%3Crect x='249' y='126' width='1' height='1'%3E%3C/rect%3E%3C/g%3E%3C/g%3E%3C/svg%3E)
|
||||||
|
|
||||||
|
RAG 每次从头来 vs LLM Wiki 知识持续积累
|
||||||
|
|
||||||
|
Karpathy 的做法不同。
|
||||||
|
|
||||||
|
他让 LLM 读完原始资料后,不只是建索引等着被查询,而是主动把关键信息提取出来,整合到一个持续维护的 Wiki 里:更新实体页面、修订主题摘要、标注新旧数据之间的矛盾、不断强化已有的综合分析。
|
||||||
|
|
||||||
|
**知识被「编译」一次之后,就持续保鲜,而不是每次查询都重新推导。**
|
||||||
|
|
||||||
|
这就像把你的研究资料交给一位全职的图书管理员,他不会忘记更新交叉引用,不会厌烦琐碎的整理工作,一次操作就能同时修改 15 个文件。
|
||||||
|
|
||||||
|
03
|
||||||
|
|
||||||
|
## 三层架构
|
||||||
|
|
||||||
|
' fill='%23FFFFFF'%3E%3Crect x='249' y='126' width='1' height='1'%3E%3C/rect%3E%3C/g%3E%3C/g%3E%3C/svg%3E)
|
||||||
|
|
||||||
|
LLM Wiki 三层架构
|
||||||
|
|
||||||
|
LLM Wiki 三层架构
|
||||||
|
|
||||||
|
**原始资料层** ,也就是 `raw/` 目录。文章、论文、图片、数据集,统统往里扔。这一层是只读的,LLM 只看不改。
|
||||||
|
|
||||||
|
**Wiki 层** ,一堆 LLM 生成的 Markdown 文件。摘要、实体页、概念页、对比分析、综述。全部由 LLM 自动创建和维护,你只负责阅读。
|
||||||
|
|
||||||
|
**Schema 层** ,一个配置文件(比如 Claude Code 的 CLAUDE.md)。它告诉 LLM 这个 Wiki 怎么组织、遵循什么规范、遇到不同操作该走什么流程。 **这是把 LLM 从通用聊天机器人变成专业 Wiki 维护者的关键。**
|
||||||
|
|
||||||
|
04
|
||||||
|
|
||||||
|
## 怎么跑
|
||||||
|
|
||||||
|
日常使用主要是三个操作:
|
||||||
|
|
||||||
|
**灌入** 。把新资料丢进 raw/ 目录,告诉 LLM 去处理。LLM 读完之后会跟你讨论要点,写一页摘要,更新索引,然后跑去更新 Wiki 里所有相关的实体页和概念页。一份资料可能会触发 10 到 15 个页面的更新。
|
||||||
|
|
||||||
|
**提问** 。向 Wiki 提问。LLM 会搜索相关页面,读完之后综合出一个带引用的回答。回答可以是 Markdown、对比表格、Marp 幻灯片、matplotlib 图表,各种格式都行。关键的一步是: **好的回答可以被归档回 Wiki,变成新的页面。** 你的每一次探索,都在给知识库「添砖加瓦」。
|
||||||
|
|
||||||
|
**巡检** 。定期让 LLM 对 Wiki 做一次「体检」:找矛盾、补缺失、发现新的关联、标记需要深入研究的方向。LLM 还挺擅长给你出下一步的研究题目。
|
||||||
|
|
||||||
|
' fill='%23FFFFFF'%3E%3Crect x='249' y='126' width='1' height='1'%3E%3C/rect%3E%3C/g%3E%3C/g%3E%3C/svg%3E)
|
||||||
|
|
||||||
|
灌入、提问、巡检的知识循环
|
||||||
|
|
||||||
|
Karpathy 说自己平时就是一边开着 LLM Agent,一边开着 Obsidian。LLM 在对话中做编辑,他在 Obsidian 里实时看结果,点链接、翻图谱、读更新后的页面。
|
||||||
|
|
||||||
|
> “ Obsidian 是 IDE,LLM 是程序员,Wiki 是代码库。
|
||||||
|
|
||||||
|
他在一个研究方向上积累了大约 **100 篇文章、40 万字** 。本来以为得上花哨的 RAG 方案,结果……LLM 自己维护索引文件和文档摘要就够了,在这个规模下查什么都算顺畅。
|
||||||
|
|
||||||
|
05
|
||||||
|
|
||||||
|
## 评论区
|
||||||
|
|
||||||
|
这条帖子的评论区也是相当热闹和优质,Karpathy 自己就回了几十条。
|
||||||
|
|
||||||
|
有人问怎么用它来读书。Karpathy 的建议是:用 epub 格式而不是 PDF,一章一章地喂给 LLM,让它边读边整理。
|
||||||
|
|
||||||
|
> “ 别指望把一个 PDF 丢进去就让它总结,得「慢慢来」,一块一块地处理。当我分阶段做的时候,结果好得不得了,已经离不开了。
|
||||||
|
|
||||||
|
还有人问他底层用了什么技术栈。答案是:就是一个嵌套目录,里面是 `.md` 文件和 `.png` 图片,再加几个 `.csv` 和 `.py` ,Schema 写在 AGENTS.md 里。
|
||||||
|
|
||||||
|
没有数据库,没有框架。
|
||||||
|
|
||||||
|
Karpathy 还补了一个操作细节:他目前是手动添加每一份资料的,一份一份来,全程在线参与。等 LLM「学会」了这个 Wiki 的模式之后,后面再加新文档就轻松了,只需要说一句「把这份新文档归档到我们的 Wiki:(路径)」就行。
|
||||||
|
|
||||||
|
Obsidian 的创始人 Steph Ango 也在评论区出现了,提出了一个叫「Contamination Mitigation」的概念:建议把个人的笔记库和 Agent 的工作区分开,让 Agent 在一个「乱一点的」空间里折腾,整理好的成果再搬回你的主库。Karpathy 对此表示认同,他的 raw/ 目录就是起这个作用的。
|
||||||
|
|
||||||
|
有人问他会不会出个视频教程。Karpathy 说:
|
||||||
|
|
||||||
|
> “ 我刚好也在想这个。
|
||||||
|
|
||||||
|
06
|
||||||
|
|
||||||
|
## Farzapedia
|
||||||
|
|
||||||
|
Karpathy 帖子炸了之后两天,一个叫 Farza 的开发者就搞出了一个让人眼前一亮的实践。
|
||||||
|
|
||||||
|
' fill='%23FFFFFF'%3E%3Crect x='249' y='126' width='1' height='1'%3E%3C/rect%3E%3C/g%3E%3C/g%3E%3C/svg%3E)
|
||||||
|
|
||||||
|
Farza 的 Farzapedia 演示
|
||||||
|
|
||||||
|
Farza 让 LLM 从他的 2500 条日记、Apple Notes 和一些 iMessage 对话中,生成了一个 **关于他自己的个人维基百科** 。
|
||||||
|
|
||||||
|
' fill='%23FFFFFF'%3E%3Crect x='249' y='126' width='1' height='1'%3E%3C/rect%3E%3C/g%3E%3C/g%3E%3C/svg%3E)
|
||||||
|
|
||||||
|
这个 Wiki 包含 400 篇详细文章,涵盖了他的朋友、创业项目、研究方向,甚至他最喜欢的动漫以及这些动漫对他的影响,全部带有反向链接。
|
||||||
|
|
||||||
|
' fill='%23FFFFFF'%3E%3Crect x='249' y='126' width='1' height='1'%3E%3C/rect%3E%3C/g%3E%3C/g%3E%3C/svg%3E)
|
||||||
|
|
||||||
|
Farzapedia 个人知识百科的工作流程
|
||||||
|
|
||||||
|
注意,关键在于:
|
||||||
|
|
||||||
|
> “ 这个 Wiki 不是给我看的,是给我的 Agent 看的。
|
||||||
|
|
||||||
|
Wiki 的文件结构和反向链接对任何 Agent 来说都非常容易爬取。他可以在 Wiki 上启动 Claude Code,Agent 从 index.md 出发,就能精准定位到需要的页面。
|
||||||
|
|
||||||
|
举个例子:Farza 在设计新的落地页时,跟 Agent 说「看看最近启发我的图片和电影,给我一些文案和视觉风格的建议」。
|
||||||
|
|
||||||
|
Agent 就自己跑去翻他的 Wiki,拉出了吉卜力纪录片的笔记、YC 公司落地页的截图,甚至是他几年前保存的 1970 年代甲壳虫乐队周边的照片,然后给出了一个相当靠谱的回答。
|
||||||
|
|
||||||
|
Farza 说他一年前用 RAG 做过类似的系统,但效果一言难尽。而基于文件系统的知识库,Agent 天然就能理解,反而好用得多。
|
||||||
|
|
||||||
|
07
|
||||||
|
|
||||||
|
## Karpathy 点赞
|
||||||
|
|
||||||
|
Karpathy 看到 Farzapedia 之后专门发了一条帖子,列出了这种方式做 AI 个性化的四个优势:
|
||||||
|
|
||||||
|
' fill='%23FFFFFF'%3E%3Crect x='249' y='126' width='1' height='1'%3E%3C/rect%3E%3C/g%3E%3C/g%3E%3C/svg%3E)
|
||||||
|
|
||||||
|
**可见。** 记忆不是藏在模型里面的黑箱。它就是一个 Wiki,你能看到 AI 知道什么、不知道什么,能检查、能管理。
|
||||||
|
|
||||||
|
**你自己的。** 数据在你本地电脑上,不在某个 AI 公司的系统里。你对自己的信息有完全的控制权。
|
||||||
|
|
||||||
|
**文件优先。** 知识库就是一堆通用格式的文件:Markdown 和图片。这意味着数据可以互操作,你可以用 Unix 工具链、任何 CLI 来处理它们。想用 Obsidian 看就用 Obsidian,想自己写个界面也行。
|
||||||
|
|
||||||
|
**BYOAI(自带 AI)。** 你可以用 Claude、Codex、OpenCode 或任何你喜欢的 AI 来接入这些数据。甚至可以考虑用开源模型在你的 Wiki 上做微调,让 AI 把关于你的知识「编进」模型权重里。
|
||||||
|
|
||||||
|
' fill='%23FFFFFF'%3E%3Crect x='249' y='126' width='1' height='1'%3E%3C/rect%3E%3C/g%3E%3C/g%3E%3C/svg%3E)
|
||||||
|
|
||||||
|
Karpathy 还总结道:
|
||||||
|
|
||||||
|
> “ 这种个性化方式把控制权完全交到你手上。数据是你的,格式是通用的,内容是可检查的。用哪个 AI 随你,让 AI 公司们卷起来吧。
|
||||||
|
|
||||||
|
08
|
||||||
|
|
||||||
|
## 一个 80 年前的梦
|
||||||
|
|
||||||
|
Karpathy 在 gist 里提到了一段 81 年前的往事。
|
||||||
|
|
||||||
|
1945 年,Vannevar Bush 提出了 **Memex** 的概念:一个私人的、经过整理的知识库,文档之间有关联性的「踪迹」相互连接。Bush 的愿景其实比后来的万维网更接近 Karpathy 现在做的事情:私密的、主动整理的、文档之间的连接和文档本身同样重要。
|
||||||
|
|
||||||
|
**Bush 没能解决的问题是:谁来做维护?**
|
||||||
|
|
||||||
|
81 年后……答案来了:LLM。
|
||||||
|
|
||||||
|
它不会忘记更新交叉引用,不会觉得整理工作无聊,一次操作就能触及几十个文件。Wiki 能持续保持更新,因为维护的成本趋近于零。
|
||||||
|
|
||||||
|
09
|
||||||
|
|
||||||
|
## 从 vibe coding 到知识编译
|
||||||
|
|
||||||
|
回头看 Karpathy 这两年的轨迹,能看到一条清晰的演进线:
|
||||||
|
|
||||||
|
2025 年 2 月,他造了 **vibe coding** 这个词,意思是写代码的时候完全「跟着感觉走」,让 AI 写,自己不看。
|
||||||
|
|
||||||
|
2025 年底,他提出了 **Agentic Engineering** ,用 AI Agent 来写代码,但加上了人类的监督和审查。
|
||||||
|
|
||||||
|
2026 年 4 月,LLM Knowledge Bases。这回 LLM 操控的……不再是代码,而是知识本身了。
|
||||||
|
|
||||||
|
' fill='%23FFFFFF'%3E%3Crect x='249' y='126' width='1' height='1'%3E%3C/rect%3E%3C/g%3E%3C/g%3E%3C/svg%3E)
|
||||||
|
|
||||||
|
Karpathy 的思想进化路线
|
||||||
|
|
||||||
|
**Markdown 正在成为 AI 时代的编程语言。**
|
||||||
|
|
||||||
|
不管是指导 Agent 的 CLAUDE.md,驱动研究的 program.md,还是被编译成 Wiki 的 raw/ 目录,人和 AI 之间的接口,就是纯文本。
|
||||||
|
|
||||||
|
10
|
||||||
|
|
||||||
|
## 动手试试
|
||||||
|
|
||||||
|
如果你想试试,上手门槛其实不高。
|
||||||
|
|
||||||
|
把 Karpathy 的 gist 内容复制给你的 Agent,然后说:「帮我建一个关于 XX 的 LLM Wiki」。Agent 会帮你创建目录结构、写好配置文件、引导你完成第一次资料灌入。
|
||||||
|
|
||||||
|
Karpathy 推荐了几个工具:
|
||||||
|
|
||||||
|
- **Obsidian** 作为浏览和可视化 Wiki 的 IDE
|
||||||
|
- **Obsidian Web Clipper** 浏览器插件,一键把网页文章转成 Markdown
|
||||||
|
- **qmd** ,一个本地的 Markdown 搜索引擎,支持 BM25 和向量混合搜索,全部在本地运行
|
||||||
|
- **Marp** 插件,直接从 Wiki 内容生成幻灯片
|
||||||
|
- **Dataview** 插件,对页面元数据做查询,生成动态表格
|
||||||
|
|
||||||
|
整个 Wiki 说到底就是一个 Markdown 文件的 Git 仓库,版本历史、分支、协作,全都是现成的。
|
||||||
|
|
||||||
|
**Karpathy 自己也承认,目前这套系统还是「一堆拼凑的脚本」。**
|
||||||
|
|
||||||
|
但他觉得这里面有一个巨大的产品机会,应该有人来把它做成真正好用的产品。
|
||||||
|
|
||||||
|
Yuchen Jin 用 Claude Agent 画了一张架构图来总结这套模式,顺便问了 Karpathy 一个问题:你会开源你自己的个人 LLM Wiki 吗?想象一下,如果牛人们都发布自己的 living wiki,那会是什么样的世界。
|
||||||
|
|
||||||
|
' fill='%23FFFFFF'%3E%3Crect x='249' y='126' width='1' height='1'%3E%3C/rect%3E%3C/g%3E%3C/g%3E%3C/svg%3E)
|
||||||
|
|
||||||
|
Yuchen Jin 用 Claude Agent 生成的 LLM Wiki 架构图
|
||||||
|
|
||||||
|
**人负责选题、判断和思考。**
|
||||||
|
|
||||||
|
**LLM 负责剩下的一切。**
|
||||||
|
|
||||||
|
◇ ◆ ◇
|
||||||
|
|
||||||
|
相关链接:
|
||||||
|
|
||||||
|
<https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f>
|
||||||
|
|
||||||
|
<https://x.com/karpathy/status/2039805659525644595>
|
||||||
|
|
||||||
|
<https://x.com/karpathy/status/2040470801506541998>
|
||||||
|
|
||||||
|
<https://x.com/FarzaTV/status/2040563939797504467>
|
||||||
|
|
||||||
|
继续滑动看下一个
|
||||||
|
|
||||||
|
AGI Hunt
|
||||||
|
|
||||||
|
向上滑动看下一个
|
||||||
|
|
||||||
|
搜索范围
|
||||||
|
|
||||||
|
全网
|
||||||
|
|
||||||
|
文库
|
||||||
|
|
||||||
|
学术
|
||||||
|
|
||||||
|
所有文献
|
||||||
|
|
||||||
|
所有文献
|
||||||
|
|
||||||
|
中文库
|
||||||
|
|
||||||
|
英文库
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
PubMed
|
||||||
|
|
||||||
|
北大核心
|
||||||
|
|
||||||
|
中科院分区
|
||||||
|
|
||||||
|
全部
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
中科院1区
|
||||||
|
|
||||||
|
中科院1-2区
|
||||||
|
|
||||||
|
中科院1-3区
|
||||||
|
|
||||||
|
JCR
|
||||||
|
|
||||||
|
全部
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
JCR:Q1
|
||||||
|
|
||||||
|
JCR:Q1-Q2
|
||||||
|
|
||||||
|
JCR:Q1-Q3
|
||||||
|
|
||||||
|
SCIE
|
||||||
|
|
||||||
|
EI
|
||||||
|
|
||||||
|
图片
|
||||||
|
|
||||||
|
视频
|
||||||
|
|
||||||
|
播客
|
||||||
|
|
||||||
|
我的
|
||||||
|
|
||||||
|
全部
|
||||||
|
|
||||||
|
我的
|
||||||
|
|
||||||
|
通识-持续更新
|
||||||
|
|
||||||
|
知识库obsidian
|
||||||
|
|
||||||
|
秘塔AI入门精选和使用技巧
|
||||||
|
|
||||||
|
AIforEDU
|
||||||
|
|
||||||
|
AI全栈提示词助手prompt专家
|
||||||
|
|
||||||
|
Download | Tailscale
|
||||||
|
|
||||||
|
营养师
|
||||||
|
|
||||||
|
芯片·半导体 行业全景库(持续更新)
|
||||||
|
|
||||||
|
慢成长图书馆(持续更新)
|
||||||
|
|
||||||
|
心灵工具箱
|
||||||
|
|
||||||
|
强度
|
||||||
|
|
||||||
|
深入
|
||||||
|
|
||||||
|
简洁
|
||||||
|
|
||||||
|
深入
|
||||||
|
|
||||||
|
深度研究
|
||||||
|
|
||||||
|
先想后搜
|
||||||
|
|
||||||
|
先搜后扩
|
||||||
|
|
||||||
|
科技新闻
|
||||||
109
wiki/Andrej Karpathy.md
Normal file
109
wiki/Andrej Karpathy.md
Normal file
@@ -0,0 +1,109 @@
|
|||||||
|
---
|
||||||
|
categories:
|
||||||
|
- "[[LLM Wiki]]"
|
||||||
|
- "[[People]]"
|
||||||
|
tags:
|
||||||
|
- wiki
|
||||||
|
- people
|
||||||
|
- ai
|
||||||
|
- ai/coding
|
||||||
|
created: 2026-04-07
|
||||||
|
source:
|
||||||
|
- "[[llm-wiki]]"
|
||||||
|
- "[[刚刚,Karpathy 开源个人 LLM Wiki]]"
|
||||||
|
- "[[Karpathy知识库「LLM Wiki」火爆了,全网围观讨论]]"
|
||||||
|
type: entity
|
||||||
|
aliases:
|
||||||
|
- Karpathy
|
||||||
|
- Andrej
|
||||||
|
---
|
||||||
|
|
||||||
|
# Andrej Karpathy
|
||||||
|
|
||||||
|
AI 研究者、教育者,[[LLM Wiki]] 模式的提出者。
|
||||||
|
|
||||||
|
## 身份
|
||||||
|
|
||||||
|
| 属性 | 值 |
|
||||||
|
|------|-----|
|
||||||
|
| 领域 | 人工智能、深度学习 |
|
||||||
|
| 知名身份 | OpenAI 联合创始人、前特斯拉 AI 总监 |
|
||||||
|
| 在线 | [@karpathy](https://x.com/karpathy) |
|
||||||
|
| GitHub | [karpathy](https://github.com/karpathy) |
|
||||||
|
|
||||||
|
## 主要贡献
|
||||||
|
|
||||||
|
- **nanoGPT** — 最简化的 GPT 训练框架,用于教育
|
||||||
|
- **LLM Wiki** — 提出 LLM 增量构建持久知识库的模式
|
||||||
|
- **Vibe Coding** — 2025 年 2 月造词,意为完全"跟着感觉走"让 AI 写代码
|
||||||
|
- **Agentic Engineering** — 2025 年底提出,用 AI Agent 写代码但加上人类监督和审查
|
||||||
|
- **AI 教育** — YouTube 频道以清晰讲解复杂 AI 概念著称
|
||||||
|
- **特斯拉 Autopilot** — 领导自动驾驶 AI 团队
|
||||||
|
|
||||||
|
## 思想进化时间线
|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
graph LR
|
||||||
|
A["Vibe Coding<br/>2025.02"] --> B["Agentic Engineering<br/>2025 年底"]
|
||||||
|
B --> C["LLM Knowledge Bases<br/>2026.04"]
|
||||||
|
|
||||||
|
style A fill:#fbb,stroke:#333
|
||||||
|
style B fill:#bfb,stroke:#333
|
||||||
|
style C fill:#bbf,stroke:#333
|
||||||
|
```
|
||||||
|
|
||||||
|
| 阶段 | 时间 | 核心思想 | LLM 操控对象 |
|
||||||
|
|------|------|----------|-------------|
|
||||||
|
| **Vibe Coding** | 2025.02 | 跟着感觉走,AI 写代码人不看 | 代码 |
|
||||||
|
| **Agentic Engineering** | 2025 年底 | AI Agent 写代码,人类监督审查 | 代码(有监督) |
|
||||||
|
| **LLM Wiki** | 2026.04 | LLM 操控知识本身,而非代码 | 知识(Markdown + 图片) |
|
||||||
|
|
||||||
|
==Markdown 正在成为 AI 时代的编程语言。== 不管是 CLAUDE.md、program.md,还是被编译成 Wiki 的 raw/ 目录,人和 AI 之间的接口就是纯文本。
|
||||||
|
|
||||||
|
## LLM Wiki 帖子影响力
|
||||||
|
|
||||||
|
Karpathy 的 LLM Knowledge Bases 帖子发布数据:
|
||||||
|
|
||||||
|
| 指标 | 值 |
|
||||||
|
|------|-----|
|
||||||
|
| 点赞数 | 4.3 万(3 天内) |
|
||||||
|
| 浏览量 | 1200 万 |
|
||||||
|
| 发布后 2 天 | Gist 开源发布 |
|
||||||
|
| 发布后 2 天 | [[Farzapedia]] 诞生 |
|
||||||
|
|
||||||
|
### 社区广泛讨论
|
||||||
|
|
||||||
|
2026 年 4 月 5 日,[[机器之心]]等科技媒体对 LLM Wiki 爆火现象进行了报道,引发全网围观和讨论:
|
||||||
|
|
||||||
|
- Karpathy 自己也自夸:"哇,我这条推文真的火爆了!"
|
||||||
|
- 社区普遍认为这不只是一个 AI 工具,而是一种 **meta-framework(元框架)**
|
||||||
|
- Idea File 范式在 Agent 时代受到认可:只分享想法,不分享代码
|
||||||
|
- 被视为**自我增强的知识系统形态**和**具备产品潜力的雏形**
|
||||||
|
|
||||||
|
**关键转折**:2025 年 2 月的「Vibe Coding」→ 2025 年底的「Agentic Engineering」→ 2026 年初的「LLM Wiki」,Karpathy 的思想从"跟着感觉写代码"进化到"用 Agent 写代码但有人类监督",最终到"让 LLM 编译和维护知识"。
|
||||||
|
|
||||||
|
## 与本 Wiki 相关
|
||||||
|
|
||||||
|
- 提出了 [[LLM Wiki]] 的核心思想
|
||||||
|
- 原始来源:[LLM Wiki Gist](https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f)
|
||||||
|
- 他描述的工作方式:LLM Agent 在一侧,[[Obsidian]] 在另一侧,实时浏览更新结果
|
||||||
|
- 他目前的做法:手动一份一份添加资料,全程在线参与
|
||||||
|
|
||||||
|
## 核心观点
|
||||||
|
|
||||||
|
> "Obsidian is the IDE; the LLM is the programmer; the wiki is the codebase."
|
||||||
|
|
||||||
|
> "这种个性化方式把控制权完全交到你手上。数据是你的,格式是通用的,内容是可检查的。用哪个 AI 随你,让 AI 公司们卷起来吧。"
|
||||||
|
|
||||||
|
他主张人类负责策展来源、引导分析、提出好问题,LLM 负责总结、交叉引用、归档等所有"簿记"工作。
|
||||||
|
|
||||||
|
## 新造词
|
||||||
|
|
||||||
|
- **Vibe Coding** — 跟着感觉写代码(2025.02)
|
||||||
|
- **Prompt Request** — 未来的 PR 应该叫 Prompt Request,因为 Agent 能自己实现大多数想法(Peter Steinberger 提出,Karpathy 赞同)
|
||||||
|
|
||||||
|
## 来源
|
||||||
|
|
||||||
|
- [[llm-wiki]] — Karpathy Gist 原文
|
||||||
|
- [[刚刚,Karpathy 开源个人 LLM Wiki]] — J0hn 的中文解读文章
|
||||||
|
- [[Karpathy知识库「LLM Wiki」火爆了,全网围观讨论]] — 机器之心对爆火现象的报道
|
||||||
76
wiki/BYOAI.md
Normal file
76
wiki/BYOAI.md
Normal file
@@ -0,0 +1,76 @@
|
|||||||
|
---
|
||||||
|
categories:
|
||||||
|
- "[[LLM Wiki]]"
|
||||||
|
tags:
|
||||||
|
- wiki
|
||||||
|
- ai
|
||||||
|
- privacy
|
||||||
|
- file-first
|
||||||
|
- 知识管理/方法
|
||||||
|
created: 2026-04-07
|
||||||
|
source:
|
||||||
|
- "[[刚刚,Karpathy 开源个人 LLM Wiki]]"
|
||||||
|
type: concept
|
||||||
|
aliases:
|
||||||
|
- Bring Your Own AI
|
||||||
|
- 自带 AI
|
||||||
|
- LLM Wiki 四大优势
|
||||||
|
marp:
|
||||||
|
- "true"
|
||||||
|
---
|
||||||
|
|
||||||
|
# BYOAI
|
||||||
|
|
||||||
|
> **BYOAI**(Bring Your Own AI)——用哪个 AI 随你,让 AI 公司们卷起来。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 四大优势
|
||||||
|
|
||||||
|
[[Andrej Karpathy]] 在看到 [[Farzapedia]] 后,总结了基于文件系统的 LLM Wiki 做个性化的四个核心优势:
|
||||||
|
|
||||||
|
### 1. 可见(Visible)
|
||||||
|
|
||||||
|
记忆不是藏在模型里面的黑箱。它就是一个 Wiki,你能看到 AI 知道什么、不知道什么,能检查、能管理。
|
||||||
|
|
||||||
|
### 2. 你自己的(Your Own)
|
||||||
|
|
||||||
|
数据在你本地电脑上,不在某个 AI 公司的系统里。你对自己的信息有完全的控制权。
|
||||||
|
|
||||||
|
### 3. 文件优先(File-First)
|
||||||
|
|
||||||
|
知识库就是一堆通用格式的文件:Markdown 和图片。这意味着数据可以互操作,你可以用 Unix 工具链、任何 CLI 来处理。想用 Obsidian 看就用 Obsidian,想自己写个界面也行。
|
||||||
|
|
||||||
|
### 4. BYOAI(自带 AI)
|
||||||
|
|
||||||
|
你可以用 Claude、Codex、OpenCode 或任何你喜欢的 AI 来接入这些数据。甚至可以考虑用开源模型在你的 Wiki 上做微调,让 AI 把关于你的知识"编进"模型权重里。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 与其他方案的对比
|
||||||
|
|
||||||
|
| 维度 | 传统 AI 个性化 | LLM Wiki |
|
||||||
|
| ----- | --------- | ------------- |
|
||||||
|
| 记忆可见性 | ❌ 黑箱 | ✅ 完全可见 |
|
||||||
|
| 数据所有权 | ❌ 在 AI 公司 | ✅ 本地文件 |
|
||||||
|
| 数据格式 | ❌ 私有格式 | ✅ 通用 Markdown |
|
||||||
|
| AI 绑定 | ❌ 绑定单一平台 | ✅ 任意 AI 接入 |
|
||||||
|
| | | |
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Karpathy 的总结
|
||||||
|
|
||||||
|
> "这种个性化方式把控制权完全交到你手上。数据是你的,格式是通用的,内容是可检查的。用哪个 AI 随你,让 AI 公司们卷起来吧。"
|
||||||
|
|
||||||
|
## 相关概念
|
||||||
|
|
||||||
|
- [[LLM Wiki]] — 核心模式
|
||||||
|
- [[Farzapedia]] — 触发 Karpathy 总结四大优势的实践案例
|
||||||
|
- [[Contamination Mitigation]] — 数据隔离策略
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 来源
|
||||||
|
|
||||||
|
- [[刚刚,Karpathy 开源个人 LLM Wiki]] — Karpathy 在 X 上的总结帖
|
||||||
67
wiki/Contamination Mitigation.md
Normal file
67
wiki/Contamination Mitigation.md
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
---
|
||||||
|
categories:
|
||||||
|
- "[[LLM Wiki]]"
|
||||||
|
tags:
|
||||||
|
- wiki
|
||||||
|
- architecture
|
||||||
|
- contamination
|
||||||
|
- 知识管理/方法
|
||||||
|
created: 2026-04-07
|
||||||
|
source: "[[刚刚,Karpathy 开源个人 LLM Wiki]]"
|
||||||
|
type: concept
|
||||||
|
aliases:
|
||||||
|
- 污染隔离
|
||||||
|
- Agent 工作区隔离
|
||||||
|
---
|
||||||
|
|
||||||
|
# Contamination Mitigation
|
||||||
|
|
||||||
|
> **Contamination Mitigation**(污染隔离)是 [[Steph Ango]]([[Obsidian]] 创始人)提出的概念:将个人笔记库和 Agent 的工作区分开,让 Agent 在独立空间操作,整理好的成果再搬回主库。
|
||||||
|
|
||||||
|
## 核心思想
|
||||||
|
|
||||||
|
```
|
||||||
|
个人主库 ← 搬入整理好的成果 ← Agent 工作区(可以乱一点)
|
||||||
|
↑
|
||||||
|
raw/ 原始来源
|
||||||
|
```
|
||||||
|
|
||||||
|
把 AI 的工作空间和人类的主库分开:
|
||||||
|
|
||||||
|
- **Agent 工作区**:可以是"乱一点的",Agent 在这里折腾、草拟、实验
|
||||||
|
- **个人主库**:只接受经过筛选和整理的成果
|
||||||
|
- **raw/ 目录**:就是天然的分隔层——LLM 只读不写
|
||||||
|
|
||||||
|
## 在 LLM Wiki 中的体现
|
||||||
|
|
||||||
|
[[Andrej Karpathy]] 对这个想法表示认同。在他的架构中,`raw/` 目录正好起到这个作用:
|
||||||
|
|
||||||
|
| 区域 | 谁控制 | 可变性 |
|
||||||
|
|------|--------|--------|
|
||||||
|
| `raw/` | 人类放入,LLM 只读 | 不可变 |
|
||||||
|
| `wiki/` | LLM 全权维护 | LLM 管理 |
|
||||||
|
| 人类主库(Obsidian) | 人类浏览 | 人类决定是否采纳 |
|
||||||
|
|
||||||
|
这实际上是一个**三区隔离**模型:
|
||||||
|
|
||||||
|
1. **Raw** — 不可变的原始来源
|
||||||
|
2. **Wiki** — LLM 的"工作沙箱"
|
||||||
|
3. **主库** — 人类决定采纳哪些更新
|
||||||
|
|
||||||
|
## 与其他模式的关系
|
||||||
|
|
||||||
|
这个概念类似于软件开发中的:
|
||||||
|
|
||||||
|
- **Git 分支** — Agent 在 feature 分支工作,人类 review 后 merge
|
||||||
|
- **Staging 环境** — Agent 的产出先到 staging,验证后到 production
|
||||||
|
- **读写分离** — Raw 是只读的,Wiki 是 Agent 的写空间
|
||||||
|
|
||||||
|
## 相关概念
|
||||||
|
|
||||||
|
- [[LLM Wiki]] — 三层架构天然支持隔离
|
||||||
|
- [[Steph Ango]] — 概念提出者、Obsidian 创始人
|
||||||
|
- [[知识库维护自动化]] — Agent 在隔离区自动维护
|
||||||
|
|
||||||
|
## 来源
|
||||||
|
|
||||||
|
- [[刚刚,Karpathy 开源个人 LLM Wiki]] — Steph Ango 在 Karpathy 帖子评论区的讨论
|
||||||
80
wiki/Farzapedia.md
Normal file
80
wiki/Farzapedia.md
Normal file
@@ -0,0 +1,80 @@
|
|||||||
|
---
|
||||||
|
categories:
|
||||||
|
- "[[LLM Wiki]]"
|
||||||
|
tags:
|
||||||
|
- wiki
|
||||||
|
- case-study
|
||||||
|
- ai/agent
|
||||||
|
- personal-knowledge
|
||||||
|
created: 2026-04-07
|
||||||
|
source:
|
||||||
|
- "[[llm-wiki]]"
|
||||||
|
- "[[刚刚,Karpathy 开源个人 LLM Wiki]]"
|
||||||
|
type: concept
|
||||||
|
aliases:
|
||||||
|
- Farza's Wiki
|
||||||
|
- 个人维基百科
|
||||||
|
---
|
||||||
|
|
||||||
|
# Farzapedia
|
||||||
|
|
||||||
|
> **Farzapedia** 是开发者 Farza 基于 [[LLM Wiki]] 模式构建的个人维基百科——从 2500 条日记、Apple Notes 和 iMessage 对话中,LLM 生成了 400 篇互相链接的文章。
|
||||||
|
|
||||||
|
## 背景
|
||||||
|
|
||||||
|
[[Andrej Karpathy]] 的 LLM Wiki 帖子发布两天后,开发者 **Farza**([@FarzaTV](https://x.com/FarzaTV))就做出了一个令人印象深刻的实践。
|
||||||
|
|
||||||
|
Karpathy 本人在看到后专门发帖点赞,列出了 [[BYOAI|四大优势]]。
|
||||||
|
|
||||||
|
## 数据规模
|
||||||
|
|
||||||
|
| 指标 | 值 |
|
||||||
|
|------|-----|
|
||||||
|
| 原始来源 | 2500 条日记 + Apple Notes + iMessage 对话 |
|
||||||
|
| 生成文章 | 400 篇详细文章 |
|
||||||
|
| 内容覆盖 | 朋友、创业项目、研究方向、最喜欢的动漫及其影响 |
|
||||||
|
| 链接结构 | 全部带有反向链接(backlinks) |
|
||||||
|
|
||||||
|
## 核心洞察
|
||||||
|
|
||||||
|
> "这个 Wiki 不是给我看的,是给我的 Agent 看的。"
|
||||||
|
> — Farza
|
||||||
|
|
||||||
|
Wiki 的文件结构和反向链接对任何 Agent 来说都**天然易于爬取**。Agent 从 [[index]] 出发,就能精准定位到需要的页面。
|
||||||
|
|
||||||
|
## 实际应用案例
|
||||||
|
|
||||||
|
Farza 在设计新的落地页时,跟 Agent 说:
|
||||||
|
|
||||||
|
> "看看最近启发我的图片和电影,给我一些文案和视觉风格的建议。"
|
||||||
|
|
||||||
|
Agent 自主执行:
|
||||||
|
|
||||||
|
1. 翻阅 Wiki 中的吉卜力纪录片笔记
|
||||||
|
2. 拉出 YC 公司落地页截图
|
||||||
|
3. 甚至找到几年前保存的 1970 年代甲壳虫乐队周边照片
|
||||||
|
4. 给出了**相当靠谱的回答**
|
||||||
|
|
||||||
|
## 与 RAG 的对比
|
||||||
|
|
||||||
|
Farza 透露他一年前用 RAG 做过类似系统,但效果"一言难尽"。而基于文件系统的知识库,Agent 天然就能理解,反而好用得多。
|
||||||
|
|
||||||
|
这验证了 [[RAG vs 持久化知识库|文件优先]] 的核心优势。
|
||||||
|
|
||||||
|
## 与 [[LLM Wiki]] 的关系
|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
graph LR
|
||||||
|
Karpathy["Karpathy<br/>提出模式"] --> Farza["Farza<br/>快速实践"]
|
||||||
|
Farza --> Karpathy2["Karpathy<br/>点赞总结"]
|
||||||
|
Karpathy2 --> BYOAI["BYOAI<br/>四大优势"]
|
||||||
|
|
||||||
|
style Karpathy fill:#bbf,stroke:#333
|
||||||
|
style Farza fill:#bfb,stroke:#333
|
||||||
|
style BYOAI fill:#fbb,stroke:#333
|
||||||
|
```
|
||||||
|
|
||||||
|
## 来源
|
||||||
|
|
||||||
|
- [[刚刚,Karpathy 开源个人 LLM Wiki]] — 中文报道(AGI Hunt / J0hn)
|
||||||
|
- [Farza 的 X 帖子](https://x.com/FarzaTV/status/2040563939797504467)
|
||||||
209
wiki/LLM Wiki.md
Normal file
209
wiki/LLM Wiki.md
Normal file
@@ -0,0 +1,209 @@
|
|||||||
|
---
|
||||||
|
categories:
|
||||||
|
- "[[LLM Wiki]]"
|
||||||
|
tags:
|
||||||
|
- wiki
|
||||||
|
- llm
|
||||||
|
- knowledge-management
|
||||||
|
- 知识管理/方法
|
||||||
|
created: 2026-04-07
|
||||||
|
source: "[[llm-wiki]], [[刚刚,Karpathy 开源个人 LLM Wiki]], [[Karpathy知识库「LLM Wiki」火爆了,全网围观讨论]]"
|
||||||
|
type: concept
|
||||||
|
aliases:
|
||||||
|
- LLM Wiki 模式
|
||||||
|
- 持久化知识库
|
||||||
|
marp: "true"
|
||||||
|
---
|
||||||
|
|
||||||
|
# LLM Wiki
|
||||||
|
|
||||||
|
> **核心思想**:LLM 不是每次从原始文档中重新检索,而是**增量构建并维护一个持久的 wiki**——一个结构化的、互相链接的 Markdown 文件集合,位于你和原始来源之间。
|
||||||
|
|
||||||
|
## 定义
|
||||||
|
|
||||||
|
LLM Wiki 是一种由 [[Andrej Karpathy]] 提出的个人知识管理模式。与传统 [[RAG vs 持久化知识库|RAG 检索]]不同,LLM 不是在查询时重新发现知识,而是持续编译、维护和更新一个结构化的知识库。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 三层架构
|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
graph LR
|
||||||
|
A["📂 Raw Sources<br/>(不可变)"] --> B["📝 Wiki<br/>(LLM 维护)"]
|
||||||
|
B --> C["📋 Schema<br/>(约定规范)"]
|
||||||
|
C --> B
|
||||||
|
```
|
||||||
|
|
||||||
|
| 层级 | 位置 | 职责 | 谁维护 |
|
||||||
|
|------|------|------|--------|
|
||||||
|
| **Raw Sources** | `raw/` | 原始文档、文章、论文、数据文件 | 不可变,LLM 只读 |
|
||||||
|
| **Wiki** | `wiki/` | 摘要、实体页、概念页、比较、综合 | LLM 全权维护 |
|
||||||
|
| **Schema** | `AGENTS.md` | Wiki 结构约定、工作流规范 | 人与 LLM 共同演进 |
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 三种核心操作
|
||||||
|
|
||||||
|
### 1. Ingest(摄入)
|
||||||
|
|
||||||
|
将新来源加入 raw 集合,LLM 处理流程:
|
||||||
|
|
||||||
|
1. 读取来源 → 讨论关键要点
|
||||||
|
2. 写入摘要页 → 更新 [[index]]
|
||||||
|
3. 更新相关实体和概念页面 → 追加 [[log]] 条目
|
||||||
|
|
||||||
|
> 单个来源可能影响 10-15 个 wiki 页面。
|
||||||
|
|
||||||
|
### 2. Query(查询)
|
||||||
|
|
||||||
|
对 wiki 提问,LLM 搜索相关页面并综合回答。
|
||||||
|
|
||||||
|
> **关键洞察**:好的回答应归档回 wiki 成为新页面,让探索像摄入一样持续积累。
|
||||||
|
|
||||||
|
### 3. Lint(健康检查)
|
||||||
|
|
||||||
|
定期检查 wiki 健康状况:
|
||||||
|
|
||||||
|
- 页面间矛盾
|
||||||
|
- 过时声明
|
||||||
|
- 孤立页面(无入站链接)
|
||||||
|
- 缺失的概念页面
|
||||||
|
- 缺失的交叉引用
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 索引与日志
|
||||||
|
|
||||||
|
| 文件 | 用途 | 格式 |
|
||||||
|
|------|------|------|
|
||||||
|
| [[index]] | 内容目录,按类别组织 | LLM 每次摄入时更新 |
|
||||||
|
| [[log]] | 时间线日志,按时间记录 | 可用 `grep` 解析的格式 |
|
||||||
|
|
||||||
|
## 四大优势
|
||||||
|
|
||||||
|
[[Andrej Karpathy]] 在看到 [[Farzapedia]] 后,总结了基于文件系统的 LLM Wiki 做个性化的四个核心优势:
|
||||||
|
|
||||||
|
1. **可见(Visible)** — 记忆不是藏在模型里的黑箱。它就是一个 Wiki,你能看到 AI 知道什么、不知道什么,能检查、能管理。
|
||||||
|
2. **你自己的(Your Own)** — 数据在你本地电脑上,不在某个 AI 公司的系统里。你对自己的信息有完全的控制权。
|
||||||
|
3. **文件优先(File-First)** — 知识库就是一堆通用格式的文件(Markdown 和图片),可以用 Unix 工具链、任何 CLI 处理,想用什么界面都行。
|
||||||
|
4. **自带 AI([[BYOAI]])** — 可以用 Claude、Codex、OpenCode 或任何 AI 接入,甚至可以用开源模型在 Wiki 上做微调。
|
||||||
|
|
||||||
|
详见 [[BYOAI]]。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 实际规模验证
|
||||||
|
|
||||||
|
Karpathy 本人在一个研究方向上积累了约 **100 篇章、40 万字**。他本以为需要复杂的 RAG 方案,结果 LLM 自己维护索引文件和文档摘要就够了——在这个规模下查什么都顺畅。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Idea File 范式
|
||||||
|
|
||||||
|
LLM Wiki 的分享方式体现了 Agent 时代的新范式:
|
||||||
|
|
||||||
|
> **只分享想法(Idea File),不分享代码或应用**
|
||||||
|
|
||||||
|
在 Agent 时代,分享具体代码或应用的意义正在变弱。Karpathy 将他的 LLM Wiki 构建思路整理成 gist 形式分享——这是一个「想法文件」,不是完整实现。
|
||||||
|
|
||||||
|
**工作流程**:
|
||||||
|
1. 将想法整理成 gist 分发
|
||||||
|
2. 交给 Claude、Grok 等 Agent
|
||||||
|
3. Agent 根据你的需求自动搭建个人知识库
|
||||||
|
4. 提供使用指导和工作流建议
|
||||||
|
|
||||||
|
这种模式意味着我们已经不需要再分享具体代码或应用了,只需要把「想法」交给对方的 Agent,让它根据需求自动完成定制和实现。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Meta-Frame(元框架)
|
||||||
|
|
||||||
|
观点认为,LLM Wiki 不只是一个 AI 工具,而更像是一种**元框架(meta-framework)**:
|
||||||
|
|
||||||
|
- 不依赖某个具体模型或技术栈
|
||||||
|
- 试图定义一种人类与 AI 协作管理知识的方式
|
||||||
|
- 随着模型不断迭代、框架持续演进,让 LLM 帮助编译并维护 Wiki 的模式反而具备更长期的稳定性和适用性
|
||||||
|
|
||||||
|
从这个角度,LLM Wiki 已经逼近一种**自我增强的知识系统形态**,也可以被视为一个具备产品潜力的雏形。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 与传统 RAG 的对比
|
||||||
|
|
||||||
|
在中等规模下,LLM Wiki 并不依赖传统意义上的 RAG。只要 LLM 能够维护好索引和摘要,就已经可以支撑起有效的检索与推理。
|
||||||
|
|
||||||
|
| 特性 | 传统 RAG | LLM Wiki |
|
||||||
|
|------|---------|----------|
|
||||||
|
| 知识发现 | 每次查询时重新发现 | 一次编译,持续更新 |
|
||||||
|
| 积累性 | 每次从零开始 | 交叉引用已建立,矛盾已标注 |
|
||||||
|
| 复杂问题 | 需要重新检索并拼接多个片段 | 综合结论已反映所有内容 |
|
||||||
|
| 检索依赖 | 依赖向量检索和重排序 | 依赖 LLM 维护的索引和摘要 |
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 阅读技巧
|
||||||
|
|
||||||
|
Karpathy 关于用 LLM Wiki 读一本书的建议:
|
||||||
|
|
||||||
|
- 使用 **epub 格式**而不是 PDF
|
||||||
|
- **一章一章地喂**给 LLM,让它边读边整理
|
||||||
|
- 不要指望把一个 PDF 丢进去就让它总结,要"慢慢来"
|
||||||
|
|
||||||
|
> "别指望把一个 PDF 丢进去就让它总结,得「慢慢来」,一块一块地处理。当我分阶段做的时候,结果好得不得了,已经离不开了。"
|
||||||
|
|
||||||
|
## 适用场景
|
||||||
|
|
||||||
|
### 个人层面
|
||||||
|
|
||||||
|
- **个人成长**:追踪目标、健康、心理状态、自我提升过程
|
||||||
|
- **日记整理**:整理日记、文章、播客笔记,构建关于你自己的结构化认知
|
||||||
|
|
||||||
|
### 学习与研究
|
||||||
|
|
||||||
|
- **深度研究**:围绕某个主题深入数周甚至数月,阅读论文、文章、报告,构建不断演化的知识体系
|
||||||
|
- **阅读场景**:逐章记录,建立人物、主题、情节线索之间的关联。类似 Tolkien Gateway 这样的维基,但由个人构建
|
||||||
|
|
||||||
|
### 企业与团队
|
||||||
|
|
||||||
|
- **内部 wiki**:持续接入 Slack 对话、会议记录、项目文档、客户沟通,由 LLM 维护实时更新的知识库
|
||||||
|
- **团队协作**:减少人工维护负担,知识库随工作自动更新
|
||||||
|
|
||||||
|
### 专业场景
|
||||||
|
|
||||||
|
- **竞争分析**:收集竞争对手信息,构建对比分析体系
|
||||||
|
- **尽职调查**:系统化收集和整理投资或合作相关信息
|
||||||
|
- **旅行规划**:长期积累目的地信息,构建个性化旅行知识库
|
||||||
|
- **课程笔记**:系统性整理学习内容,建立概念间的关联
|
||||||
|
|
||||||
|
任何需要长期积累知识、并希望其被系统化组织而不是零散分布的场景,都可以采用这种模式。
|
||||||
|
|
||||||
|
## 核心工具
|
||||||
|
|
||||||
|
- [[Obsidian]] — Wiki 的可视化 IDE,Graph View 查看连接形状
|
||||||
|
- [[qmd]] — 本地 Markdown 搜索引擎,支持 BM25/向量混合搜索
|
||||||
|
- Obsidian Web Clipper — 浏览器扩展,快速抓取网页为 Markdown
|
||||||
|
|
||||||
|
## 实践案例
|
||||||
|
|
||||||
|
- [[Farzapedia]] — Farza 的个人维基百科:2500 条日记 → 400 篇文章
|
||||||
|
|
||||||
|
## 与相关概念的关系
|
||||||
|
|
||||||
|
- [[RAG vs 持久化知识库]] — 与传统 RAG 的对比
|
||||||
|
- [[知识库维护自动化]] — 为什么 LLM 解决了 wiki 维护的核心痛点
|
||||||
|
- [[Memex]] — Vannevar Bush 1945 年的愿景,LLM Wiki 的思想源头
|
||||||
|
- [[BYOAI]] — 四大优势的核心概念
|
||||||
|
- [[Contamination Mitigation]] — Steph Ango 的隔离思想
|
||||||
|
|
||||||
|
## 名言
|
||||||
|
|
||||||
|
> "Obsidian is the IDE; the LLM is the programmer; the wiki is the codebase."
|
||||||
|
> — [[Andrej Karpathy]]
|
||||||
|
|
||||||
|
> "这种个性化方式把控制权完全交到你手上。数据是你的,格式是通用的,内容是可检查的。用哪个 AI 随你,让 AI 公司们卷起来吧。"
|
||||||
|
> — [[Andrej Karpathy]]
|
||||||
|
|
||||||
|
## 来源
|
||||||
|
|
||||||
|
- [[llm-wiki]] — Karpathy Gist 原文
|
||||||
|
- [[刚刚,Karpathy 开源个人 LLM Wiki]] — J0hn 的中文解读文章
|
||||||
173
wiki/Marp 主题与样式.md
Normal file
173
wiki/Marp 主题与样式.md
Normal file
@@ -0,0 +1,173 @@
|
|||||||
|
---
|
||||||
|
categories:
|
||||||
|
- "[[Marp]]"
|
||||||
|
tags:
|
||||||
|
- marp
|
||||||
|
- theme
|
||||||
|
- css
|
||||||
|
- styling
|
||||||
|
created: 2026-04-07
|
||||||
|
source: "[[marp-guide]]"
|
||||||
|
type: reference
|
||||||
|
aliases:
|
||||||
|
- Marp 主题
|
||||||
|
- Marp 样式
|
||||||
|
---
|
||||||
|
|
||||||
|
# Marp 主题与样式
|
||||||
|
|
||||||
|
> Marp 的内容与样式完全分离——Markdown 管内容,CSS 主题管外观。
|
||||||
|
|
||||||
|
## 三个内置主题
|
||||||
|
|
||||||
|
| 主题 | 风格 | 适用场景 |
|
||||||
|
|------|------|----------|
|
||||||
|
| `default` | 经典白底、蓝灰色调、左对齐 | 通用、商务 |
|
||||||
|
| `uncover` | 极简、居中布局、现代感 | 技术分享、轻松场合 |
|
||||||
|
| `gaia` | 彩色、大胆、左对齐 | 创意、教育 |
|
||||||
|
|
||||||
|
使用方式:
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
---
|
||||||
|
marp: "true"
|
||||||
|
theme: uncover
|
||||||
|
---
|
||||||
|
```
|
||||||
|
|
||||||
|
> [!tip] 初学建议从 `uncover` 开始,它对 Markdown 的默认渲染效果最好。
|
||||||
|
|
||||||
|
## 用 style 指令微调
|
||||||
|
|
||||||
|
不想写独立 CSS 文件,可以用 `style` 全局指令内联修改:
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
---
|
||||||
|
theme: default
|
||||||
|
style: |
|
||||||
|
section {
|
||||||
|
background-color: #f0f0f0;
|
||||||
|
}
|
||||||
|
h1 {
|
||||||
|
color: #0066cc;
|
||||||
|
border-bottom: 2px solid #0066cc;
|
||||||
|
}
|
||||||
|
---
|
||||||
|
```
|
||||||
|
|
||||||
|
> [!note] `style` 指令比 `<style>` 标签更好——不会在其他 Markdown 编辑器里显示异常。
|
||||||
|
|
||||||
|
## 用 class 指令切换布局
|
||||||
|
|
||||||
|
在主题 CSS 中定义不同的 section 类:
|
||||||
|
|
||||||
|
```css
|
||||||
|
section.lead h1 {
|
||||||
|
text-align: center;
|
||||||
|
font-size: 2.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
section.dark {
|
||||||
|
background-color: #1a1a2e;
|
||||||
|
color: #e0e0e0;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
然后在 Markdown 中使用:
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
<!-- _class: lead -->
|
||||||
|
|
||||||
|
# 居中大标题
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
<!-- _class: dark -->
|
||||||
|
|
||||||
|
# 深色页面
|
||||||
|
```
|
||||||
|
|
||||||
|
## 自定义主题
|
||||||
|
|
||||||
|
### 在 Obsidian Marp 插件中
|
||||||
|
|
||||||
|
1. 在 `Templates/MarpTheme/` 目录中放入 CSS 文件
|
||||||
|
|
||||||
|
```
|
||||||
|
<vault>/
|
||||||
|
└── Templates/
|
||||||
|
└── MarpTheme/
|
||||||
|
├── beamer.css
|
||||||
|
└── gradient.css
|
||||||
|
```
|
||||||
|
|
||||||
|
> [!note] Obsidian Marp 插件设置中 Theme Folder Location 应配置为 `Templates/MarpTheme`。
|
||||||
|
|
||||||
|
3. 在 Markdown 中引用:
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
---
|
||||||
|
marp: "true"
|
||||||
|
theme: beamer
|
||||||
|
---
|
||||||
|
```
|
||||||
|
|
||||||
|
> [!warning] 添加新 CSS 后需要**重启 Obsidian**。
|
||||||
|
|
||||||
|
### CSS 主题基本结构
|
||||||
|
|
||||||
|
```css
|
||||||
|
/* @theme my-custom-theme */
|
||||||
|
@import 'default';
|
||||||
|
|
||||||
|
section {
|
||||||
|
font-family: 'Noto Sans SC', sans-serif;
|
||||||
|
background: #ffffff;
|
||||||
|
color: #333333;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
color: #2c3e50;
|
||||||
|
border-left: 4px solid #3498db;
|
||||||
|
padding-left: 0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
color: #34495e;
|
||||||
|
}
|
||||||
|
|
||||||
|
code {
|
||||||
|
background: #ecf0f1;
|
||||||
|
padding: 2px 6px;
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
> `@import 'default'` 继承内置主题,只覆盖需要改的部分。
|
||||||
|
|
||||||
|
## 背景技巧
|
||||||
|
|
||||||
|
### 纯色背景
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
<!-- _backgroundColor: #1a1a2e -->
|
||||||
|
<!-- _color: #e0e0e0 -->
|
||||||
|
```
|
||||||
|
|
||||||
|
### 渐变背景
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
<!-- backgroundImage: linear-gradient(to bottom, #667eea, #764ba2) -->
|
||||||
|
```
|
||||||
|
|
||||||
|
### 图片背景
|
||||||
|
|
||||||
|
```markdown
|
||||||
|

|
||||||
|
```
|
||||||
|
|
||||||
|
## 来源
|
||||||
|
|
||||||
|
- [[marp-guide]] — 原始资料
|
||||||
|
- [[Marp]] — Marp 概念页
|
||||||
|
- [[Marp 指令语法]] — 指令参考
|
||||||
103
wiki/Marp 主题推荐.md
Normal file
103
wiki/Marp 主题推荐.md
Normal file
@@ -0,0 +1,103 @@
|
|||||||
|
---
|
||||||
|
categories:
|
||||||
|
- "[[Marp]]"
|
||||||
|
tags:
|
||||||
|
- marp
|
||||||
|
- themes
|
||||||
|
- css
|
||||||
|
- recommendation
|
||||||
|
created: 2026-04-07
|
||||||
|
source: "[[marp-themes]]"
|
||||||
|
type: reference
|
||||||
|
aliases:
|
||||||
|
- Marp 主题合集
|
||||||
|
- Marp 主题推荐
|
||||||
|
---
|
||||||
|
|
||||||
|
# Marp 主题推荐
|
||||||
|
|
||||||
|
> GitHub 社区产出了不少优质 Marp CSS 主题,按推荐度排序如下。
|
||||||
|
|
||||||
|
## 🏆 强烈推荐
|
||||||
|
|
||||||
|
### [favourhong/Awesome-Marp](https://github.com/favourhong/Awesome-Marp) ⭐953
|
||||||
|
|
||||||
|
**中文友好的学术级主题,直接对标 LaTeX Beamer。**
|
||||||
|
|
||||||
|
- **6 种主题色**:深色、绿色、蓝色、红色、紫色、棕色
|
||||||
|
- **38 种自定义样式**:页面分栏(8种)、列表分栏(6种)、封面页(5种)、目录页(3种)、Callout 引用盒(5种)、导航进度栏
|
||||||
|
- **中文字体适配**:方正宋刻本秀楷、方正苏新诗柳楷、霞鹜文楷
|
||||||
|
- 切换主题只需改一行 `theme: am_blue`
|
||||||
|
- 搭配 VS Code 或 Obsidian 使用
|
||||||
|
|
||||||
|
> [!tip] 学术演示、论文答辩首选。效果最接近 LaTeX Beamer,但用 Markdown 写。
|
||||||
|
|
||||||
|
### [cunhapaulo/marpstyle](https://github.com/cunhapaulo/marpstyle) ⭐198
|
||||||
|
|
||||||
|
**简洁美观的通用主题合集。**
|
||||||
|
|
||||||
|
- 多种风格,注重美感和简洁
|
||||||
|
- MIT 开源
|
||||||
|
- 升级版 [MarpX](https://github.com/cunhapaulo/MarpX)(⭐62)是 Marpstyle 2.0
|
||||||
|
|
||||||
|
### [rnd195/marp-community-themes](https://github.com/rnd195/marp-community-themes) ⭐42
|
||||||
|
|
||||||
|
**社区维护的主题画廊,有在线预览。**
|
||||||
|
|
||||||
|
- [在线预览站](https://rnd195.github.io/marp-community-themes/),直接看效果
|
||||||
|
- 10 个主题,含明暗分类
|
||||||
|
- 包括:Academic、Beam、Border、Gradient、Graph Paper、Rosé Pine 系列(Dawn/Moon)、Gaia、Uncover
|
||||||
|
|
||||||
|
## 🎯 其他值得关注
|
||||||
|
|
||||||
|
| 项目 | ⭐ | 特点 |
|
||||||
|
|------|-----|------|
|
||||||
|
| [zhaoluting/marp-themes](https://github.com/zhaoluting/marp-themes) | 79 | 公司蓝、浙大蓝等机构定制色 |
|
||||||
|
| [marp-team/awesome-marp](https://github.com/marp-team/awesome-marp) | — | 官方 awesome list,汇总全部生态资源 |
|
||||||
|
| [codebytes/marp-slides-template](https://github.com/codebytes/marp-slides-template) | 30 | 快速开始模板 |
|
||||||
|
|
||||||
|
## 场景推荐
|
||||||
|
|
||||||
|
| 场景 | 推荐主题 | 理由 |
|
||||||
|
|------|----------|------|
|
||||||
|
| **学术报告 / 论文答辩** | Awesome-Marp | 最像 Beamer,有定理框、目录页 |
|
||||||
|
| **技术分享** | marpstyle / MarpX | 简洁现代,适合代码展示 |
|
||||||
|
| **日常汇报** | Community Themes 的 Beam/Border | 轻量、干净 |
|
||||||
|
| **暗色主题** | Community Themes 的 Rosé Pine Moon | 暗色系,护眼 |
|
||||||
|
| **学校 / 公司定制** | zhaoluting/marp-themes | 机构色模板参考 |
|
||||||
|
| **快速开始** | 内置 `uncover` | 零配置 |
|
||||||
|
|
||||||
|
## 如何安装第三方主题
|
||||||
|
|
||||||
|
### Obsidian Marp 插件
|
||||||
|
|
||||||
|
1. 下载主题 CSS 文件
|
||||||
|
2. 放入 vault 中的 `Templates/MarpTheme/` 目录
|
||||||
|
3. 在幻灯片 front-matter 中引用:`theme: theme-name`
|
||||||
|
4. **重启 Obsidian**
|
||||||
|
|
||||||
|
### Marp CLI
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# 指定主题目录
|
||||||
|
marp presentation.md --theme themes/
|
||||||
|
|
||||||
|
# 指定单个主题文件
|
||||||
|
marp presentation.md --theme my-theme.css
|
||||||
|
```
|
||||||
|
|
||||||
|
### VS Code
|
||||||
|
|
||||||
|
在 `.vscode/settings.json` 中配置:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"markdown.marp.themes": ["./themes/my-theme.css"]
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
## 来源
|
||||||
|
|
||||||
|
- [[marp-themes]] — 原始资料汇编
|
||||||
|
- [[Marp]] — Marp 概念页
|
||||||
|
- [[Marp 主题与样式]] — 内置主题和自定义 CSS 方法
|
||||||
98
wiki/Marp 导出.md
Normal file
98
wiki/Marp 导出.md
Normal file
@@ -0,0 +1,98 @@
|
|||||||
|
---
|
||||||
|
categories:
|
||||||
|
- "[[Marp]]"
|
||||||
|
tags:
|
||||||
|
- marp
|
||||||
|
- export
|
||||||
|
- cli
|
||||||
|
created: 2026-04-07
|
||||||
|
source: "[[marp-guide]]"
|
||||||
|
type: reference
|
||||||
|
aliases:
|
||||||
|
- Marp 导出
|
||||||
|
- Marp CLI
|
||||||
|
---
|
||||||
|
|
||||||
|
# Marp 导出
|
||||||
|
|
||||||
|
> Marp 支持将 Markdown 幻灯片导出为 HTML、PDF、PPTX 和图片。
|
||||||
|
|
||||||
|
## 导出方式对比
|
||||||
|
|
||||||
|
| 方式 | 平台 | 需要安装 | 适合场景 |
|
||||||
|
|------|------|----------|----------|
|
||||||
|
| **Obsidian Marp 插件** | Obsidian | Node.js | 快速导出到 Downloads |
|
||||||
|
| **Marp CLI** | 终端 | Node.js / brew / scoop | 自动化、批处理 |
|
||||||
|
| **VS Code 扩展** | VS Code | 扩展商店 | 编辑+导出一体 |
|
||||||
|
|
||||||
|
## Marp CLI 安装
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# npm(推荐,无需全局安装)
|
||||||
|
npx @marp-team/marp-cli@latest
|
||||||
|
|
||||||
|
# macOS
|
||||||
|
brew install marp-cli
|
||||||
|
|
||||||
|
# Windows (Scoop)
|
||||||
|
scoop install marp
|
||||||
|
```
|
||||||
|
|
||||||
|
## 常用命令
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# 导出 HTML(默认)
|
||||||
|
marp presentation.md
|
||||||
|
|
||||||
|
# 导出 PDF
|
||||||
|
marp presentation.md --pdf
|
||||||
|
|
||||||
|
# 导出 PPTX
|
||||||
|
marp presentation.md --pptx
|
||||||
|
|
||||||
|
# 导出图片(每页一张 PNG)
|
||||||
|
marp presentation.md --images
|
||||||
|
|
||||||
|
# 指定输出文件
|
||||||
|
marp presentation.md -o slides.html
|
||||||
|
|
||||||
|
# 使用特定主题
|
||||||
|
marp --theme uncover --pdf presentation.md
|
||||||
|
|
||||||
|
# 导出后立即打开
|
||||||
|
marp presentation.md --pdf --open
|
||||||
|
|
||||||
|
# 允许加载本地图片
|
||||||
|
marp presentation.md --pdf --allow-local-files
|
||||||
|
```
|
||||||
|
|
||||||
|
> [!warning] PDF 和 PPTX 导出需要系统安装 **Chrome 或 Edge**(使用 Chromium 渲染引擎)。
|
||||||
|
|
||||||
|
## HTML 导出特点
|
||||||
|
|
||||||
|
- 完整样式和主题支持
|
||||||
|
- 交互式导航(方向键、空格键)
|
||||||
|
- 自定义过渡效果和动画
|
||||||
|
- 响应式设计,适应不同屏幕
|
||||||
|
- 适合通过链接分享
|
||||||
|
|
||||||
|
## PDF 导出特点
|
||||||
|
|
||||||
|
- 跨设备通用
|
||||||
|
- 适合打印
|
||||||
|
- 排版一致
|
||||||
|
- 离线可用
|
||||||
|
|
||||||
|
## Obsidian Marp 插件导出
|
||||||
|
|
||||||
|
1. 打开 Marp 预览(侧边栏按钮或命令面板 `Marp: Open Preview`)
|
||||||
|
2. 在预览窗口点击导出按钮
|
||||||
|
3. 选择格式(PDF / PPTX / HTML)
|
||||||
|
4. 文件自动保存到 `Downloads` 目录
|
||||||
|
|
||||||
|
> [!note] 导出的文件中图片自动转为 Base64 嵌入,方便分享。
|
||||||
|
|
||||||
|
## 来源
|
||||||
|
|
||||||
|
- [[marp-guide]] — 原始资料
|
||||||
|
- [[Marp]] — Marp 概念页
|
||||||
134
wiki/Marp 指令语法.md
Normal file
134
wiki/Marp 指令语法.md
Normal file
@@ -0,0 +1,134 @@
|
|||||||
|
---
|
||||||
|
categories:
|
||||||
|
- "[[Marp]]"
|
||||||
|
tags:
|
||||||
|
- marp
|
||||||
|
- syntax
|
||||||
|
- directives
|
||||||
|
created: 2026-04-07
|
||||||
|
source: "[[marp-guide]]"
|
||||||
|
type: reference
|
||||||
|
aliases:
|
||||||
|
- Marp 指令
|
||||||
|
- Marpit 指令
|
||||||
|
---
|
||||||
|
|
||||||
|
# Marp 指令语法
|
||||||
|
|
||||||
|
> Marp 通过**指令(Directives)**扩展 Markdown,控制幻灯片的主题、分页、页眉页脚、背景等。
|
||||||
|
|
||||||
|
## 写法
|
||||||
|
|
||||||
|
两种写法,效果相同:
|
||||||
|
|
||||||
|
**Front-matter**(推荐,放在文件最开头):
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
---
|
||||||
|
marp: "true"
|
||||||
|
theme: uncover
|
||||||
|
paginate: "true"
|
||||||
|
---
|
||||||
|
```
|
||||||
|
|
||||||
|
**HTML 注释**(可放在任意位置):
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
<!--
|
||||||
|
theme: uncover
|
||||||
|
paginate: "true"
|
||||||
|
-->
|
||||||
|
```
|
||||||
|
|
||||||
|
> [!tip] 推荐用 front-matter 写全局指令,HTML 注释写局部指令。注意 front-matter 中的布尔值需用引号包裹(如 `"true"`),避免 Obsidian 将其识别为 checkbox 属性。
|
||||||
|
|
||||||
|
## 全局指令
|
||||||
|
|
||||||
|
作用于整个演示文稿。重复书写只认最后一个。
|
||||||
|
|
||||||
|
| 指令 | 说明 | 示例 |
|
||||||
|
|------|------|------|
|
||||||
|
| `theme` | 主题名称 | `theme: uncover` |
|
||||||
|
| `style` | 自定义 CSS | `style: \|` 后跟 CSS 块 |
|
||||||
|
| `headingDivider` | 标题自动分页 | `headingDivider: 2` |
|
||||||
|
| `lang` | HTML lang 属性 | `lang: zh-CN` |
|
||||||
|
|
||||||
|
## 局部指令
|
||||||
|
|
||||||
|
作用于**当前页及之后所有页**。
|
||||||
|
|
||||||
|
| 指令 | 说明 | 示例 |
|
||||||
|
|------|------|------|
|
||||||
|
| `paginate` | 页码 | `paginate: "true"` |
|
||||||
|
| `header` | 页眉 | `header: '演示标题'` |
|
||||||
|
| `footer` | 页脚 | `footer: '作者名'` |
|
||||||
|
| `class` | CSS 类名 | `class: lead` |
|
||||||
|
| `backgroundColor` | 背景色 | `backgroundColor: #1a1a2e` |
|
||||||
|
| `backgroundImage` | 背景图 | `backgroundImage: url(…)` |
|
||||||
|
| `backgroundPosition` | 背景位置 | `backgroundPosition: center` |
|
||||||
|
| `backgroundRepeat` | 背景重复 | `backgroundRepeat: no-repeat` |
|
||||||
|
| `backgroundSize` | 背景大小 | `backgroundSize: cover` |
|
||||||
|
| `color` | 文字颜色 | `color: white` |
|
||||||
|
|
||||||
|
## Spot 指令(仅当前页)
|
||||||
|
|
||||||
|
在局部指令名前加 `_` 前缀,效果**仅限当前页**:
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
<!-- _backgroundColor: black -->
|
||||||
|
<!-- _color: white -->
|
||||||
|
```
|
||||||
|
|
||||||
|
这一页黑底白字,下一页恢复原样。
|
||||||
|
|
||||||
|
## paginate 的四种模式
|
||||||
|
|
||||||
|
| 值 | 显示页码 | 递增计数 | 场景 |
|
||||||
|
|----|----------|----------|------|
|
||||||
|
| `true` | ✅ | ✅ | 正常显示 |
|
||||||
|
| `false` | ❌ | ✅ | 隐藏但计数 |
|
||||||
|
| `hold` | ✅ | ❌ | 显示但不递增 |
|
||||||
|
| `skip` | ❌ | ❌ | 完全跳过 |
|
||||||
|
|
||||||
|
> [!tip] 跳过标题页的页码:把 `paginate: "true"` 放在第二页而不是第一页。
|
||||||
|
|
||||||
|
## 标题自动分页(headingDivider)
|
||||||
|
|
||||||
|
让标题自动触发分页,不需要手动写 `---`:
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
---
|
||||||
|
headingDivider: 2
|
||||||
|
---
|
||||||
|
|
||||||
|
# 第一页
|
||||||
|
内容
|
||||||
|
|
||||||
|
## 第二页(h2 自动分页)
|
||||||
|
内容
|
||||||
|
|
||||||
|
# 第三页(h1 也分页,因为 1 < 2)
|
||||||
|
内容
|
||||||
|
```
|
||||||
|
|
||||||
|
- 数值 `2`:h1 和 h2 都会分页("大于等于该级别")
|
||||||
|
- 数组 `[2, 4]`:只有 h2 和 h4 会分页
|
||||||
|
|
||||||
|
> [!warning] `headingDivider` 设置后,`---` 分页线仍然可用,两者共存。
|
||||||
|
|
||||||
|
## 页眉页脚
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
---
|
||||||
|
header: '**我的演示**'
|
||||||
|
footer: '作者名 · 2026'
|
||||||
|
paginate: "true"
|
||||||
|
---
|
||||||
|
```
|
||||||
|
|
||||||
|
页眉页脚支持 Markdown 格式(加粗、斜体、图片),但不支持 `![bg]()` 语法。
|
||||||
|
|
||||||
|
## 来源
|
||||||
|
|
||||||
|
- [[marp-guide]] — 原始资料
|
||||||
|
- [[Marp]] — Marp 概念页
|
||||||
88
wiki/Marp.md
Normal file
88
wiki/Marp.md
Normal file
@@ -0,0 +1,88 @@
|
|||||||
|
---
|
||||||
|
categories:
|
||||||
|
- "[[Marp]]"
|
||||||
|
tags:
|
||||||
|
- marp
|
||||||
|
- presentation
|
||||||
|
- markdown
|
||||||
|
- 工具
|
||||||
|
created: 2026-04-07
|
||||||
|
source: "[[marp-guide]]"
|
||||||
|
type: concept
|
||||||
|
aliases:
|
||||||
|
- Marp
|
||||||
|
- Marp 生态系统
|
||||||
|
---
|
||||||
|
|
||||||
|
# Marp
|
||||||
|
|
||||||
|
> **一句话**:用纯 Markdown 写演示文稿的开源生态系统。
|
||||||
|
|
||||||
|
## 是什么
|
||||||
|
|
||||||
|
Marp 让你用 Markdown 编写幻灯片,然后导出为 HTML、PDF、PPTX 或图片。不需要 PowerPoint,不需要 Keynote,只需要一个 `.md` 文件。
|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
graph LR
|
||||||
|
A["📝 Markdown<br/>源文件"] --> B["⚙️ Marp Core<br/>渲染引擎"]
|
||||||
|
B --> C["📄 HTML"]
|
||||||
|
B --> D["📋 PDF"]
|
||||||
|
B --> E["📊 PPTX"]
|
||||||
|
B --> F["🖼️ 图片"]
|
||||||
|
```
|
||||||
|
|
||||||
|
## 核心组件
|
||||||
|
|
||||||
|
| 组件 | 说明 | 仓库 |
|
||||||
|
|------|------|------|
|
||||||
|
| **Marpit** | 瘦框架,Markdown → 幻灯片 | [marp-team/marpit](https://github.com/marp-team/marpit) |
|
||||||
|
| **Marp Core** | 核心引擎,含内置主题 | [marp-team/marp-core](https://github.com/marp-team/marp-core) |
|
||||||
|
| **Marp CLI** | 命令行导出工具 | [marp-team/marp-cli](https://github.com/marp-team/marp-cli) |
|
||||||
|
| **Marp for VS Code** | VS Code 实时预览 | [marp-team/marp-vscode](https://github.com/marp-team/marp-vscode) |
|
||||||
|
| **Obsidian Marp Plugin** | Obsidian 集成 | [JichouP/obsidian-marp-plugin](https://github.com/JichouP/obsidian-marp-plugin) |
|
||||||
|
|
||||||
|
## 核心设计理念
|
||||||
|
|
||||||
|
1. **纯文本优先** — 幻灯片就是 Markdown 文件,用 Git 管理、用任何编辑器打开
|
||||||
|
2. **关注点分离** — 内容(Markdown)与样式(CSS 主题)分离
|
||||||
|
3. **指令系统** — 通过 HTML 注释或 front-matter 控制幻灯片行为
|
||||||
|
4. **模块化** — Marpit(框架)→ Marp Core(引擎)→ CLI/插件(应用层)
|
||||||
|
|
||||||
|
## 最小示例
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
---
|
||||||
|
marp: "true"
|
||||||
|
theme: uncover
|
||||||
|
paginate: "true"
|
||||||
|
---
|
||||||
|
|
||||||
|
# 标题页
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 第二页
|
||||||
|
|
||||||
|
- 就这么简单
|
||||||
|
- 真的
|
||||||
|
```
|
||||||
|
|
||||||
|
`---` 分页,`marp: true` 启用,`theme:` 选主题。完了。
|
||||||
|
|
||||||
|
## 关键概念
|
||||||
|
|
||||||
|
- [[Marp 指令语法]] — 控制幻灯片行为的指令系统
|
||||||
|
- [[Marp 主题与样式]] — 内置主题和自定义 CSS
|
||||||
|
- [[Marp 主题推荐]] — GitHub 社区优质主题合集与场景推荐
|
||||||
|
- [[Marp 导出]] — HTML/PDF/PPTX 导出选项
|
||||||
|
- [[Obsidian Marp 插件]] — 在 Obsidian 中使用 Marp
|
||||||
|
- [[示例-学校定制Marp演示]] — 学校定制主题的完整演示示例
|
||||||
|
|
||||||
|
## 相关工具
|
||||||
|
|
||||||
|
- [[Obsidian]] — 可作为 Marp 的编辑/预览环境
|
||||||
|
- [[LLM Wiki]] — Marp 可用于从 wiki 内容生成幻灯片
|
||||||
|
|
||||||
|
## 来源
|
||||||
|
|
||||||
|
- [[marp-guide]] — 原始资料汇编
|
||||||
63
wiki/Memex.md
Normal file
63
wiki/Memex.md
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
---
|
||||||
|
categories:
|
||||||
|
- "[[LLM Wiki]]"
|
||||||
|
tags:
|
||||||
|
- wiki
|
||||||
|
- memex
|
||||||
|
- history
|
||||||
|
- knowledge-management
|
||||||
|
created: 2026-04-07
|
||||||
|
source: "[[llm-wiki]]"
|
||||||
|
type: concept
|
||||||
|
aliases:
|
||||||
|
- Memory Index
|
||||||
|
- 存储扩展器
|
||||||
|
---
|
||||||
|
|
||||||
|
# Memex
|
||||||
|
|
||||||
|
> **Memex**(Memory Index)是 [[Vannevar Bush]] 在 1945 年提出的个人知识存储系统构想,被视为 [[LLM Wiki]] 的思想源头。
|
||||||
|
|
||||||
|
## 概念
|
||||||
|
|
||||||
|
Memex 是一种设想中的设备,个人可以存储所有书籍、记录和通信,并且以极高的速度和灵活性进行检索。关键特征:
|
||||||
|
|
||||||
|
- **个人化** — 私有的、主动策划的知识存储
|
||||||
|
- **关联性** — 文档间的**关联线索**(associative trails)与文档本身同样有价值
|
||||||
|
- **可扩展** — 超越人类记忆容量的知识存储
|
||||||
|
|
||||||
|
## 与现代系统的对比
|
||||||
|
|
||||||
|
| 维度 | Memex (1945) | 万维网 | LLM Wiki |
|
||||||
|
|------|-------------|--------|----------|
|
||||||
|
| **所有权** | 个人私有 | 公开分散 | 个人私有 |
|
||||||
|
| **策划方式** | 主动策划 | 被动浏览 | 主动策划 + LLM 自动化 |
|
||||||
|
| **关联** | 手动建立关联线索 | 超链接 | 自动交叉引用 + wikilinks |
|
||||||
|
| **维护** | ❌ 未解决 | 社区维护 | ✅ LLM 自动维护 |
|
||||||
|
| **积累性** | ✅ 持续积累 | ❌ 信息过载 | ✅ 持续复合增长 |
|
||||||
|
|
||||||
|
## 核心洞察
|
||||||
|
|
||||||
|
Bush 的愿景比万维网更接近 [[LLM Wiki]] 的模式:
|
||||||
|
|
||||||
|
1. ==私有、主动策划== — 不是被动浏览公开信息
|
||||||
|
2. ==关联与文档同等重要== — 不仅是存储,更是连接
|
||||||
|
3. ==个人化的知识路径== — 每个人构建自己的认知地图
|
||||||
|
|
||||||
|
Bush 未能解决的问题是**谁来做维护**。[[知识库维护自动化|LLM 提供了答案]]。
|
||||||
|
|
||||||
|
## 原文引用
|
||||||
|
|
||||||
|
> "The human mind … operates by association. With one item in its grasp, it snaps instantly to the next that is suggested by the association of thoughts, in accordance with some intricate web of trails carried by the cells of the brain."
|
||||||
|
> — [[Vannevar Bush]], "As We May Think" (1945)
|
||||||
|
|
||||||
|
## 相关概念
|
||||||
|
|
||||||
|
- [[LLM Wiki]] — Memex 思想的现代实现
|
||||||
|
- [[知识库维护自动化]] — 解决了 Memex 的维护问题
|
||||||
|
- [[Obsidian]] — 当代最接近 Memex 理念的工具
|
||||||
|
|
||||||
|
## 来源
|
||||||
|
|
||||||
|
- [[llm-wiki]] — Karpathy 引用
|
||||||
|
- "As We May Think", Atlantic Monthly, 1945
|
||||||
112
wiki/Obsidian Marp 插件.md
Normal file
112
wiki/Obsidian Marp 插件.md
Normal file
@@ -0,0 +1,112 @@
|
|||||||
|
---
|
||||||
|
categories:
|
||||||
|
- "[[Marp]]"
|
||||||
|
tags:
|
||||||
|
- marp
|
||||||
|
- obsidian
|
||||||
|
- plugin
|
||||||
|
created: 2026-04-07
|
||||||
|
source: "[[marp-guide]]"
|
||||||
|
type: reference
|
||||||
|
aliases:
|
||||||
|
- Obsidian Marp
|
||||||
|
- Marp Obsidian
|
||||||
|
---
|
||||||
|
|
||||||
|
# Obsidian Marp 插件
|
||||||
|
|
||||||
|
> 在 Obsidian 中实时预览和导出 Marp 幻灯片。
|
||||||
|
|
||||||
|
## 基本信息
|
||||||
|
|
||||||
|
- **仓库**:[JichouP/obsidian-marp-plugin](https://github.com/JichouP/obsidian-marp-plugin)
|
||||||
|
- **功能**:预览 + 导出(PDF/PPTX/HTML)
|
||||||
|
- **前置要求**:Node.js(导出功能需要)
|
||||||
|
|
||||||
|
## 核心功能
|
||||||
|
|
||||||
|
### 1. 实时预览
|
||||||
|
|
||||||
|
- 点击侧边栏的 Marp 图标,或
|
||||||
|
- 命令面板运行 `Marp: Open Preview`
|
||||||
|
- 支持分栏预览(一边编辑一边看效果)
|
||||||
|
- 保存文件后自动刷新
|
||||||
|
|
||||||
|
### 2. 导出
|
||||||
|
|
||||||
|
- 支持格式:PDF、PPTX、HTML
|
||||||
|
- 输出目录:固定为 `Downloads`
|
||||||
|
- 图片自动转 Base64 嵌入
|
||||||
|
- HTML 格式支持页面过渡动画
|
||||||
|
|
||||||
|
### 3. 图片支持
|
||||||
|
|
||||||
|
两种格式都支持:
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
<!-- Wikilink 格式 -->
|
||||||
|
![[path/to/image.png]]
|
||||||
|
|
||||||
|
<!-- CommonMark 格式 -->
|
||||||
|

|
||||||
|
```
|
||||||
|
|
||||||
|
路径支持绝对路径和相对路径(相对于 vault 根目录)。
|
||||||
|
|
||||||
|
## 设置项
|
||||||
|
|
||||||
|
| 设置 | 类型 | 默认值 | 说明 |
|
||||||
|
|------|------|--------|------|
|
||||||
|
| Enable Auto Reload | toggle | on | 保存时自动刷新预览 |
|
||||||
|
| Open Preview in Split Tab | toggle | on | 分栏打开预览 |
|
||||||
|
| Theme Folder Location | text | `MarpTheme` | 自定义主题 CSS 目录路径(建议设为 `Templates/MarpTheme`) |
|
||||||
|
|
||||||
|
## 自定义主题
|
||||||
|
|
||||||
|
在 vault 中创建主题目录(插件设置中 Theme Folder Location 默认为 `MarpTheme`):
|
||||||
|
|
||||||
|
```
|
||||||
|
<vault>/
|
||||||
|
└── Templates/
|
||||||
|
└── MarpTheme/
|
||||||
|
├── beamer.css
|
||||||
|
└── gradient.css
|
||||||
|
```
|
||||||
|
|
||||||
|
> [!tip] 插件设置中的 Theme Folder Location 应配置为 `Templates/MarpTheme`。
|
||||||
|
|
||||||
|
然后在幻灯片中使用:
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
---
|
||||||
|
marp: "true"
|
||||||
|
theme: beamer
|
||||||
|
---
|
||||||
|
```
|
||||||
|
|
||||||
|
> [!warning] 添加新 CSS 文件后需要**重启 Obsidian** 才能识别。
|
||||||
|
|
||||||
|
## 工作流程
|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
graph LR
|
||||||
|
A["📝 编辑 .md"] --> B["👁️ Marp 预览"]
|
||||||
|
B --> C["满意?"]
|
||||||
|
C -->|是| D["📤 导出"]
|
||||||
|
C -->|否| A
|
||||||
|
D --> E["📄 PDF/PPTX/HTML"]
|
||||||
|
```
|
||||||
|
|
||||||
|
## 使用前检查清单
|
||||||
|
|
||||||
|
- [ ] 安装 Obsidian Marp 插件(社区插件市场搜索 "Marp")
|
||||||
|
- [ ] 安装 Node.js(导出功能需要)
|
||||||
|
- [ ] 在 Markdown 文件 front-matter 中加 `marp: "true"`
|
||||||
|
- [ ] 用 `---` 分页
|
||||||
|
|
||||||
|
## 相关页面
|
||||||
|
|
||||||
|
- [[Marp]] — Marp 概念总览
|
||||||
|
- [[Marp 指令语法]] — 完整指令参考
|
||||||
|
- [[Marp 主题与样式]] — 主题和 CSS 自定义
|
||||||
|
- [[Marp 导出]] — 所有导出方式对比
|
||||||
79
wiki/RAG vs 持久化知识库.md
Normal file
79
wiki/RAG vs 持久化知识库.md
Normal file
@@ -0,0 +1,79 @@
|
|||||||
|
---
|
||||||
|
categories:
|
||||||
|
- "[[LLM Wiki]]"
|
||||||
|
tags:
|
||||||
|
- wiki
|
||||||
|
- rag
|
||||||
|
- comparison
|
||||||
|
- 知识管理/方法
|
||||||
|
created: 2026-04-07
|
||||||
|
source: "[[llm-wiki]]"
|
||||||
|
type: concept
|
||||||
|
aliases:
|
||||||
|
- RAG 对比
|
||||||
|
- 检索 vs 持久化
|
||||||
|
---
|
||||||
|
|
||||||
|
# RAG vs 持久化知识库
|
||||||
|
|
||||||
|
> **核心差异**:RAG 每次查询都从原始文档重新发现知识;LLM Wiki 将知识编译一次并持续维护。
|
||||||
|
|
||||||
|
## 对比表
|
||||||
|
|
||||||
|
| 维度 | RAG | LLM Wiki |
|
||||||
|
|------|-----|----------|
|
||||||
|
| **知识存储** | 原始文档分块 | 结构化 Markdown 页面 |
|
||||||
|
| **查询方式** | 向量检索 + 生成 | 读取已编译的页面 |
|
||||||
|
| **知识积累** | ❌ 无积累 | ✅ 持续复合 |
|
||||||
|
| **交叉引用** | ❌ 每次重新发现 | ✅ 已建立并维护 |
|
||||||
|
| **矛盾检测** | ❌ 每次需重新比对 | ✅ 已标记并追踪 |
|
||||||
|
| **综合分析** | 每次从零拼接 | 已反映所有已读内容 |
|
||||||
|
| **规模限制** | 嵌入维度限制 | ~100 来源 / 数百页面可行 |
|
||||||
|
| **维护成本** | 低(无需维护) | 需 LLM 持续维护 |
|
||||||
|
|
||||||
|
## RAG 的局限
|
||||||
|
|
||||||
|
大多数人的 LLM 文档体验是 RAG:
|
||||||
|
|
||||||
|
1. 上传文件集合
|
||||||
|
2. 查询时检索相关分块
|
||||||
|
3. 生成回答
|
||||||
|
|
||||||
|
**问题**:
|
||||||
|
- 提一个需要综合五篇文档的微妙问题,LLM 每次都要重新找到并拼凑相关片段
|
||||||
|
- ==没有积累==,知识从不复合
|
||||||
|
- NotebookLM、ChatGPT 文件上传、多数 RAG 系统都是这种模式
|
||||||
|
|
||||||
|
## LLM Wiki 的优势
|
||||||
|
|
||||||
|
```
|
||||||
|
传统 RAG: Query → Retrieve → Generate → 丢弃
|
||||||
|
LLM Wiki: Ingest → Compile → Maintain → Query → 复用
|
||||||
|
```
|
||||||
|
|
||||||
|
关键区别在于 **wiki 是一个持久的、复合的制品**:
|
||||||
|
|
||||||
|
- 交叉引用已经存在
|
||||||
|
- 矛盾已经被标记
|
||||||
|
- 综合分析已经反映了所有已读内容
|
||||||
|
- 每添加一个来源,wiki 都变得更丰富
|
||||||
|
|
||||||
|
## 何时用 RAG vs Wiki
|
||||||
|
|
||||||
|
| 场景 | 推荐 | 原因 |
|
||||||
|
|------|------|------|
|
||||||
|
| 一次性查询文档 | RAG | 无需积累 |
|
||||||
|
| 持续研究某主题 | Wiki | 知识需要复合增长 |
|
||||||
|
| 快速问答 | RAG | 简单快速 |
|
||||||
|
| 需要综合分析 | Wiki | 已有交叉引用 |
|
||||||
|
| 大量文档一次性搜索 | RAG | Wiki 规模受限 |
|
||||||
|
| 长期知识管理 | Wiki | 持续积累价值 |
|
||||||
|
|
||||||
|
## 来源
|
||||||
|
|
||||||
|
- [[llm-wiki]] — Karpathy Gist 原文
|
||||||
|
- [[LLM Wiki]] — 核心概念页
|
||||||
|
|
||||||
|
## 实践佐证
|
||||||
|
|
||||||
|
[[Farzapedia|Farza]] 在构建个人 Wiki 前曾用 RAG 做过类似系统,但效果"一言难尽"。转为基于文件系统的知识库后,Agent 天然就能理解文件结构和反向链接,反而好用得多。
|
||||||
67
wiki/Vannevar Bush.md
Normal file
67
wiki/Vannevar Bush.md
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
---
|
||||||
|
categories:
|
||||||
|
- "[[LLM Wiki]]"
|
||||||
|
- "[[People]]"
|
||||||
|
tags:
|
||||||
|
- wiki
|
||||||
|
- people
|
||||||
|
- history
|
||||||
|
- knowledge-management
|
||||||
|
created: 2026-04-07
|
||||||
|
source: "[[llm-wiki]]"
|
||||||
|
type: entity
|
||||||
|
aliases:
|
||||||
|
- Bush
|
||||||
|
- Vannevar
|
||||||
|
---
|
||||||
|
|
||||||
|
# Vannevar Bush
|
||||||
|
|
||||||
|
美国工程师、发明家、科学管理者,[[Memex]] 概念的提出者。
|
||||||
|
|
||||||
|
## 身份
|
||||||
|
|
||||||
|
| 属性 | 值 |
|
||||||
|
|------|-----|
|
||||||
|
| 生卒 | 1890 – 1974 |
|
||||||
|
| 领域 | 工程学、信息科学 |
|
||||||
|
| 知名身份 | 美国科学研究与发展局局长 |
|
||||||
|
| 代表作 | "As We May Think" (1945) |
|
||||||
|
|
||||||
|
## 核心贡献
|
||||||
|
|
||||||
|
### Memex(1945)
|
||||||
|
|
||||||
|
在 *The Atlantic Monthly* 发表的 "As We May Think" 一文中,Bush 提出了 **Memex** 的构想:
|
||||||
|
|
||||||
|
- 个人化的知识存储设备
|
||||||
|
- 以关联(association)而非索引(indexing)为核心组织方式
|
||||||
|
- 文档间的"关联线索"(associative trails)与文档本身同样重要
|
||||||
|
|
||||||
|
这个构想被视为超文本和个人知识管理的思想源头。
|
||||||
|
|
||||||
|
## 与本 Wiki 的关联
|
||||||
|
|
||||||
|
[[Andrej Karpathy]] 在提出 [[LLM Wiki]] 时,明确将其与 Bush 的 Memex 进行对比:
|
||||||
|
|
||||||
|
> "The idea is related in spirit to Vannevar Bush's Memex (1945) — a personal, curated knowledge store with associative trails between documents."
|
||||||
|
|
||||||
|
Bush 解决了 ==what==(个人知识管理的愿景),但没有解决 ==who==(谁来做维护)。[[知识库维护自动化|LLM 回答了这个问题]]。
|
||||||
|
|
||||||
|
## 思想谱系
|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
graph LR
|
||||||
|
Bush["Vannevar Bush<br/>Memex (1945)"] --> Engelbart["Douglas Engelbart<br/>NLS (1968)"]
|
||||||
|
Bush --> Nelson["Ted Nelson<br/>超文本 (1963)"]
|
||||||
|
Nelson --> Web["万维网 (1989)"]
|
||||||
|
Bush -.->|精神传承| Wiki["LLM Wiki (2026)"]
|
||||||
|
|
||||||
|
style Bush fill:#fbb,stroke:#333
|
||||||
|
style Wiki fill:#bbf,stroke:#333
|
||||||
|
```
|
||||||
|
|
||||||
|
## 来源
|
||||||
|
|
||||||
|
- [[llm-wiki]] — Karpathy 引用
|
||||||
|
- "As We May Think", *The Atlantic Monthly*, July 1945
|
||||||
105
wiki/index.md
Normal file
105
wiki/index.md
Normal file
@@ -0,0 +1,105 @@
|
|||||||
|
---
|
||||||
|
categories:
|
||||||
|
- "[[LLM Wiki]]"
|
||||||
|
tags:
|
||||||
|
- wiki
|
||||||
|
- index
|
||||||
|
created: 2026-04-07
|
||||||
|
type: index
|
||||||
|
---
|
||||||
|
|
||||||
|
# LLM Wiki 索引
|
||||||
|
|
||||||
|
> 基于 [[LLM Wiki]] 模式构建的个人知识库,由 LLM 增量维护。
|
||||||
|
|
||||||
|
## 概览
|
||||||
|
|
||||||
|
| 指标 | 值 |
|
||||||
|
|------|-----|
|
||||||
|
| 来源数 | 5 |
|
||||||
|
| Wiki 页面数 | 17 |
|
||||||
|
| 实体页面 | 2 |
|
||||||
|
| 概念页面 | 7 |
|
||||||
|
| 工具页面 | 7 |
|
||||||
|
| 最后更新 | 2026-04-07 |
|
||||||
|
|
||||||
|
## 核心概念
|
||||||
|
|
||||||
|
| 页面 | 简介 | 来源 |
|
||||||
|
|------|------|------|
|
||||||
|
| [[LLM Wiki]] | LLM 增量构建持久化知识库的核心模式 | [[llm-wiki]], [[刚刚,Karpathy 开源个人 LLM Wiki]], [[Karpathy知识库「LLM Wiki」火爆了,全网围观讨论]] |
|
||||||
|
| [[RAG vs 持久化知识库]] | RAG 检索模式与 Wiki 持久化模式的对比分析 | [[llm-wiki]], [[刚刚,Karpathy 开源个人 LLM Wiki]] |
|
||||||
|
| [[知识库维护自动化]] | LLM 如何解决知识库维护负担的核心问题 | [[llm-wiki]] |
|
||||||
|
| [[Memex]] | Vannevar Bush 的个人知识存储愿景(1945) | [[llm-wiki]], [[刚刚,Karpathy 开源个人 LLM Wiki]] |
|
||||||
|
| [[Farzapedia]] | Farza 的个人维基百科实践案例(2500 日记 → 400 文章) | [[刚刚,Karpathy 开源个人 LLM Wiki]] |
|
||||||
|
| [[BYOAI]] | Karpathy 总结的 LLM Wiki 四大优势 | [[刚刚,Karpathy 开源个人 LLM Wiki]] |
|
||||||
|
| [[Contamination Mitigation]] | Steph Ango 的 Agent 工作区隔离概念 | [[刚刚,Karpathy 开源个人 LLM Wiki]] |
|
||||||
|
|
||||||
|
## 人物
|
||||||
|
|
||||||
|
| 页面 | 身份 | 来源 |
|
||||||
|
|------|------|------|
|
||||||
|
| [[Andrej Karpathy]] | AI 研究者、LLM Wiki 模式提出者 | [[llm-wiki]], [[刚刚,Karpathy 开源个人 LLM Wiki]], [[Karpathy知识库「LLM Wiki」火爆了,全网围观讨论]] |
|
||||||
|
| [[Vannevar Bush]] | Memex 概念提出者、信息科学先驱 | [[llm-wiki]] |
|
||||||
|
|
||||||
|
## 工具
|
||||||
|
|
||||||
|
| 页面 | 用途 | 来源 |
|
||||||
|
|------|------|------|
|
||||||
|
| [[qmd]] | 本地 Markdown 搜索引擎 | [[llm-wiki]] |
|
||||||
|
|
||||||
|
## Marp(演示文稿工具)
|
||||||
|
|
||||||
|
| 页面 | 简介 | 来源 |
|
||||||
|
|------|------|------|
|
||||||
|
| [[Marp]] | 用 Markdown 写演示文稿的开源生态系统 | [[marp-guide]] |
|
||||||
|
| [[Marp 指令语法]] | Marp 指令系统完整参考(全局/局部/Spot) | [[marp-guide]] |
|
||||||
|
| [[Marp 主题与样式]] | 内置主题、CSS 自定义、背景技巧 | [[marp-guide]] |
|
||||||
|
| [[Marp 导出]] | HTML/PDF/PPTX 导出方式和 CLI 用法 | [[marp-guide]] |
|
||||||
|
| [[Obsidian Marp 插件]] | 在 Obsidian 中预览和导出 Marp 幻灯片 | [[marp-guide]] |
|
||||||
|
| [[Marp 主题推荐]] | GitHub 社区优质 CSS 主题合集与场景推荐 | [[marp-themes]] |
|
||||||
|
| [[示例-学校定制Marp演示]] | 学校定制蓝主题的完整演示文稿示例 | [[marp-themes]] |
|
||||||
|
|
||||||
|
## 架构
|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
graph TD
|
||||||
|
Raw[raw/ 原始来源] -->|Ingest| Wiki[wiki/ 知识页面]
|
||||||
|
Wiki -->|Query| Answers[回答与分析]
|
||||||
|
Answers -->|归档| Wiki
|
||||||
|
Wiki -->|Lint| Wiki
|
||||||
|
|
||||||
|
Wiki --> Index[index.md 索引]
|
||||||
|
Wiki --> Log[log.md 日志]
|
||||||
|
|
||||||
|
style Raw fill:#f9f,stroke:#333
|
||||||
|
style Wiki fill:#bbf,stroke:#333
|
||||||
|
style Index fill:#bfb,stroke:#333
|
||||||
|
style Log fill:#bfb,stroke:#333
|
||||||
|
```
|
||||||
|
|
||||||
|
## 三层架构
|
||||||
|
|
||||||
|
1. **Raw Sources** (`raw/`) — 不可变的原始文档
|
||||||
|
2. **Wiki** (`wiki/`) — LLM 生成和维护的结构化页面
|
||||||
|
3. **Schema** (`AGENTS.md`) — LLM 维护 Wiki 的规范和约定
|
||||||
|
|
||||||
|
## 相关内容
|
||||||
|
|
||||||
|
- [[Obsidian]] — Wiki 的可视化 IDE
|
||||||
|
- [[知识管理]] — 知识管理方法标签
|
||||||
|
- [[llm-wiki]] — 原始来源文件(Karpathy Gist)
|
||||||
|
- [[刚刚,Karpathy 开源个人 LLM Wiki]] — 第二来源(J0hn 中文解读)
|
||||||
|
- [[Karpathy知识库「LLM Wiki」火爆了,全网围观讨论]] — 第三来源(机器之心报道)
|
||||||
|
|
||||||
|
## Marp(演示文稿工具)
|
||||||
|
|
||||||
|
- [[Marp]] — 概念总览
|
||||||
|
- [[Marp 指令语法]] — 指令参考
|
||||||
|
- [[Marp 主题与样式]] — 主题和 CSS
|
||||||
|
- [[Marp 导出]] — 导出方式
|
||||||
|
- [[Obsidian Marp 插件]] — Obsidian 集成
|
||||||
|
- [[Marp 主题推荐]] — GitHub 社区主题合集
|
||||||
|
- [[示例-学校定制Marp演示]] — 学校定制演示示例
|
||||||
|
- [[marp-guide]] — 原始来源文件
|
||||||
|
- [[marp-themes]] — 主题来源文件
|
||||||
120
wiki/log.md
Normal file
120
wiki/log.md
Normal file
@@ -0,0 +1,120 @@
|
|||||||
|
---
|
||||||
|
categories:
|
||||||
|
- "[[LLM Wiki]]"
|
||||||
|
tags:
|
||||||
|
- wiki
|
||||||
|
- log
|
||||||
|
created: 2026-04-07
|
||||||
|
type: log
|
||||||
|
---
|
||||||
|
|
||||||
|
# LLM Wiki 日志
|
||||||
|
|
||||||
|
## [2026-04-07] ingest | LLM Wiki (Karpathy Gist)
|
||||||
|
|
||||||
|
**来源**: <https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f>
|
||||||
|
|
||||||
|
**操作**:
|
||||||
|
- 读取原始来源 `raw/llm-wiki.md`
|
||||||
|
- 创建核心概念页面:[[LLM Wiki]]、[[RAG vs 持久化知识库]]、[[知识库维护自动化]]、[[Memex]]
|
||||||
|
- 创建实体页面:[[Andrej Karpathy]]、[[Vannevar Bush]]
|
||||||
|
- 创建工具页面:[[qmd]]
|
||||||
|
- 创建索引文件:[[index]]
|
||||||
|
- 创建日志文件:[[log]](本文件)
|
||||||
|
- 创建分类页面:[[LLM Wiki]]
|
||||||
|
- 更新标签页面:[[主题-知识管理]]
|
||||||
|
|
||||||
|
**涉及页面**: 10 个新页面,1 个更新页面
|
||||||
|
|
||||||
|
**关键要点**:
|
||||||
|
- LLM Wiki 的核心思想是**持久化**而非**检索**
|
||||||
|
- 三层架构:Raw → Wiki → Schema
|
||||||
|
- 三种操作:Ingest、Query、Lint
|
||||||
|
- 与 Vannevar Bush 的 Memex 理念一脉相承
|
||||||
|
|
||||||
|
## [2026-04-07] ingest | 刚刚,Karpathy 开源个人 LLM Wiki(J0hn / AGI Hunt)
|
||||||
|
|
||||||
|
**来源**: <https://mp.weixin.qq.com/s/vYVx8yf9eoTGXSWIrpOZ6Q>
|
||||||
|
|
||||||
|
**操作**:
|
||||||
|
- 读取原始来源 `raw/刚刚,Karpathy 开源个人 LLM Wiki.md`
|
||||||
|
- 创建概念页面:[[Farzapedia]]、[[BYOAI]]、[[Contamination Mitigation]]
|
||||||
|
- 更新 [[LLM Wiki]]:添加四大优势、规模验证、阅读技巧、实践案例
|
||||||
|
- 更新 [[Andrej Karpathy]]:添加思想进化时间线、帖子数据、新造词
|
||||||
|
- 更新 [[RAG vs 持久化知识库]]:添加 Farza 的 RAG 实践佐证
|
||||||
|
- 更新 [[index]]:新增 3 个页面,来源数 1→2
|
||||||
|
- 更新 [[log]]:追加本条目
|
||||||
|
|
||||||
|
**涉及页面**: 3 个新页面,4 个更新页面
|
||||||
|
|
||||||
|
**关键要点**:
|
||||||
|
- Karpathy 帖子 3 天 4.3 万赞、1200 万浏览
|
||||||
|
- Farzapedia 是首个公开的 LLM Wiki 实践:2500 条日记 → 400 篇文章
|
||||||
|
- 四大优势:可见、你自己的、文件优先、BYOAI
|
||||||
|
- Steph Ango 提出 Contamination Mitigation 概念,Karpathy 认同
|
||||||
|
- Karpathy 思想进化:vibe coding → Agentic Engineering → 知识编译
|
||||||
|
- 开源的是**思路**而非代码——"idea file" 范式
|
||||||
|
- "Prompt Request" 的新含义
|
||||||
|
|
||||||
|
## [2026-04-07] ingest | Marp 学习资料汇编
|
||||||
|
|
||||||
|
**来源**: Marp 生态系统官方文档、Marpit 框架文档、Marp CLI 文档、Obsidian Marp 插件 README
|
||||||
|
|
||||||
|
**操作**:
|
||||||
|
- 收集并整合 5 个来源到 `raw/marp-guide.md`
|
||||||
|
- 创建概念页面:[[Marp]]
|
||||||
|
- 创建参考页面:[[Marp 指令语法]]、[[Marp 主题与样式]]、[[Marp 导出]]、[[Obsidian Marp 插件]]
|
||||||
|
- 更新 [[index]]:新增 Marp 板块(5 个页面),来源数 2→3
|
||||||
|
- 更新 [[log]]:追加本条目
|
||||||
|
|
||||||
|
**涉及页面**: 5 个新页面,2 个更新页面
|
||||||
|
|
||||||
|
**关键要点**:
|
||||||
|
- Marp = Markdown 写幻灯片,导出 HTML/PDF/PPTX
|
||||||
|
- 核心组件:Marpit(框架)→ Marp Core(引擎)→ CLI/插件(应用层)
|
||||||
|
- 指令系统:全局指令(theme/style)、局部指令(paginate/header/footer)、Spot 指令(`_` 前缀)
|
||||||
|
- 三个内置主题:default、uncover、gaia
|
||||||
|
- Obsidian 插件:预览 + 导出,需要 Node.js
|
||||||
|
- 自定义主题放在 `MarpTheme/` 目录,添加后需重启 Obsidian
|
||||||
|
|
||||||
|
## [2026-04-07] ingest | Marp CSS 主题推荐
|
||||||
|
|
||||||
|
**来源**: GitHub 社区主题仓库(Awesome-Marp、marpstyle、marp-community-themes、zhaoluting/marp-themes)
|
||||||
|
|
||||||
|
**操作**:
|
||||||
|
- 收集主题资料到 `raw/marp-themes.md`
|
||||||
|
- 创建参考页面:[[Marp 主题推荐]]
|
||||||
|
- 创建自定义主题 CSS:`Templates/MarpTheme/university-blue.css`(学校定制蓝主题)
|
||||||
|
- 创建演示文稿示例:[[示例-学校定制Marp演示]]
|
||||||
|
- 更新 [[index]]:新增主题推荐页面,来源数 3→4
|
||||||
|
- 更新 [[log]]:追加本条目
|
||||||
|
|
||||||
|
**涉及页面**: 2 个新 wiki 页面,1 个 CSS 主题,1 个示例文稿,2 个更新页面
|
||||||
|
|
||||||
|
**关键要点**:
|
||||||
|
- Awesome-Marp(⭐953)是最全面的中文友好学术主题,38 种自定义样式
|
||||||
|
- marp-community-themes 有在线预览站,10 个社区主题
|
||||||
|
- 自定义主题核心:CSS 变量控制颜色,class 指令切换页面布局(cover/trans/dark/cols-2/ending)
|
||||||
|
- 制作了 `university-blue` 主题作为学校定制示例:学术蓝基调、封面页/过渡页/深色页/两栏/结束页
|
||||||
|
- 演示文稿展示了论文答辩场景的完整用法
|
||||||
|
|
||||||
|
## [2026-04-07] ingest | Karpathy知识库「LLM Wiki」火爆了,全网围观讨论(机器之心)
|
||||||
|
|
||||||
|
**来源**: <https://mp.weixin.qq.com/s/-2H3xFx_R4KIIZ_vDpEYQw>
|
||||||
|
|
||||||
|
**操作**:
|
||||||
|
- 收集机器之心对 LLM Wiki 爆火现象的报道到 `raw/Karpathy知识库「LLM Wiki」火爆了,全网围观讨论.md`
|
||||||
|
- 更新 [[LLM Wiki]]:添加 Idea File 范式、Meta-Frame 概念、与 RAG 对比、扩展应用场景
|
||||||
|
- 更新 [[Andrej Karpathy]]:添加社区广泛讨论章节、更新思想进化时间线
|
||||||
|
- 更新 [[index]]:来源数 4→5,更新相关内容列表
|
||||||
|
- 更新 [[log]]:追加本条目
|
||||||
|
|
||||||
|
**涉及页面**: 2 个更新页面
|
||||||
|
|
||||||
|
**关键要点**:
|
||||||
|
- LLM Wiki 帖子爆火,Karpathy 自己也惊讶:"哇,我这条推文真的火爆了!"
|
||||||
|
- **Idea File 范式**:在 Agent 时代,只分享想法(gist),不分享代码或应用。Agent 可以自动实现和定制
|
||||||
|
- **Meta-Frame(元框架)**:不依赖具体模型或技术栈,而是定义人类与 AI 协作管理知识的方式
|
||||||
|
- 被视为**自我增强的知识系统形态**和**具备产品潜力的雏形**
|
||||||
|
- 中等规模下不依赖传统 RAG:LLM 维护索引和摘要就够了
|
||||||
|
- 扩展应用场景:企业/团队内部 wiki、竞品分析、尽职调查、旅行规划、课程笔记
|
||||||
51
wiki/qmd.md
Normal file
51
wiki/qmd.md
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
---
|
||||||
|
categories:
|
||||||
|
- "[[LLM Wiki]]"
|
||||||
|
tags:
|
||||||
|
- wiki
|
||||||
|
- tool
|
||||||
|
- search
|
||||||
|
- 知识管理/工具
|
||||||
|
created: 2026-04-07
|
||||||
|
source: "[[llm-wiki]]"
|
||||||
|
type: tool
|
||||||
|
aliases:
|
||||||
|
- qmd search
|
||||||
|
---
|
||||||
|
|
||||||
|
# qmd
|
||||||
|
|
||||||
|
> **qmd** 是一个本地 Markdown 文件搜索引擎,支持混合 BM25/向量搜索和 LLM 重排序,适用于 [[LLM Wiki]] 规模增长后的搜索需求。
|
||||||
|
|
||||||
|
## 基本信息
|
||||||
|
|
||||||
|
| 属性 | 值 |
|
||||||
|
|------|-----|
|
||||||
|
| 仓库 | [github.com/tobi/qmd](https://github.com/tobi/qmd) |
|
||||||
|
| 类型 | 本地搜索引擎 |
|
||||||
|
| 支持格式 | Markdown |
|
||||||
|
| 搜索方式 | BM25 + 向量搜索混合 |
|
||||||
|
| 排序 | LLM 重排序 |
|
||||||
|
| 运行方式 | 全设备端(on-device) |
|
||||||
|
|
||||||
|
## 接口
|
||||||
|
|
||||||
|
| 接口 | 用途 |
|
||||||
|
|------|------|
|
||||||
|
| **CLI** | LLM 可以通过 shell 调用 |
|
||||||
|
| **MCP Server** | LLM 作为原生工具使用 |
|
||||||
|
|
||||||
|
## 在 LLM Wiki 中的角色
|
||||||
|
|
||||||
|
- 小规模时:[[index]] 文件足够导航
|
||||||
|
- 增长后:qmd 提供正式搜索能力
|
||||||
|
- 作为 MCP Server 可被 LLM Agent 直接调用,无需手动搜索
|
||||||
|
|
||||||
|
## 替代方案
|
||||||
|
|
||||||
|
如果不想引入外部工具,可以让 LLM 帮忙写一个简单的搜索脚本。
|
||||||
|
|
||||||
|
## 来源
|
||||||
|
|
||||||
|
- [[llm-wiki]] — Karpathy 推荐
|
||||||
|
- [[LLM Wiki]] — 核心概念页
|
||||||
79
wiki/知识库维护自动化.md
Normal file
79
wiki/知识库维护自动化.md
Normal file
@@ -0,0 +1,79 @@
|
|||||||
|
---
|
||||||
|
categories:
|
||||||
|
- "[[LLM Wiki]]"
|
||||||
|
tags:
|
||||||
|
- wiki
|
||||||
|
- automation
|
||||||
|
- knowledge-management
|
||||||
|
- 知识管理/方法
|
||||||
|
created: 2026-04-07
|
||||||
|
source: "[[llm-wiki]]"
|
||||||
|
type: concept
|
||||||
|
aliases:
|
||||||
|
- Wiki 维护
|
||||||
|
- 知识库维护
|
||||||
|
---
|
||||||
|
|
||||||
|
# 知识库维护自动化
|
||||||
|
|
||||||
|
> **核心论点**:人类放弃 wiki 的原因不是阅读或思考的困难,而是**维护负担增长快于价值增长**。LLM 使维护成本趋近于零。
|
||||||
|
|
||||||
|
## 问题
|
||||||
|
|
||||||
|
维护知识库的枯燥部分不是阅读或思考,而是:
|
||||||
|
|
||||||
|
- 更新交叉引用
|
||||||
|
- 保持摘要最新
|
||||||
|
- 标注新旧数据的矛盾
|
||||||
|
- 维护数十个页面间的一致性
|
||||||
|
- 发现孤立页面和缺失概念
|
||||||
|
- 保持索引和日志的更新
|
||||||
|
|
||||||
|
==人类放弃 wiki 的原因:维护负担增长快于价值。==
|
||||||
|
|
||||||
|
## LLM 的优势
|
||||||
|
|
||||||
|
| LLM 能做什么 | 人类难以做到 |
|
||||||
|
|-------------|-------------|
|
||||||
|
| 不感到无聊 | 长期重复维护令人疲惫 |
|
||||||
|
| 不会忘记更新交叉引用 | 遗漏是常态 |
|
||||||
|
| 一次处理 15 个文件 | 逐个手动修改极慢 |
|
||||||
|
| 保持一致性 | 多页面间易不一致 |
|
||||||
|
| 主动发现矛盾 | 需要刻意检查 |
|
||||||
|
|
||||||
|
## 维护工作流
|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
graph TD
|
||||||
|
A[新来源到达] --> B[LLM 读取并提取关键信息]
|
||||||
|
B --> C[创建/更新摘要页]
|
||||||
|
C --> D[更新实体页面]
|
||||||
|
D --> E[更新概念页面]
|
||||||
|
E --> F[检查并标记矛盾]
|
||||||
|
F --> G[更新交叉引用]
|
||||||
|
G --> H[更新 index.md]
|
||||||
|
H --> I[追加 log.md 条目]
|
||||||
|
|
||||||
|
style A fill:#f9f,stroke:#333
|
||||||
|
style F fill:#ff9,stroke:#333
|
||||||
|
```
|
||||||
|
|
||||||
|
## 人类的角色
|
||||||
|
|
||||||
|
人类的工作是:
|
||||||
|
|
||||||
|
1. **筛选来源** — 选择有价值的文档
|
||||||
|
2. **引导分析** — 决定强调什么
|
||||||
|
3. **提出好问题** — 探索有价值的方向
|
||||||
|
4. **思考意义** — 做出判断和决策
|
||||||
|
|
||||||
|
LLM 的工作是**其他一切**:总结、交叉引用、归档、簿记。
|
||||||
|
|
||||||
|
## 与 [[Memex]] 的联系
|
||||||
|
|
||||||
|
Vannevar Bush 在 1945 年提出 Memex 时,设想了一个个人化的、精心策划的知识存储系统,文档间的关联与文档本身同样有价值。他没能解决的问题是:**谁来做维护**。LLM 回答了这个问题。
|
||||||
|
|
||||||
|
## 来源
|
||||||
|
|
||||||
|
- [[llm-wiki]] — Karpathy Gist 原文
|
||||||
|
- [[LLM Wiki]] — 核心概念页
|
||||||
140
wiki/示例-学校定制Marp演示.md
Normal file
140
wiki/示例-学校定制Marp演示.md
Normal file
@@ -0,0 +1,140 @@
|
|||||||
|
---
|
||||||
|
marp: "true"
|
||||||
|
theme: uncover
|
||||||
|
paginate: "true"
|
||||||
|
footer: XX大学 · 计算机科学学院
|
||||||
|
---
|
||||||
|
|
||||||
|
<!-- _class: cover -->
|
||||||
|
<!-- _paginate: false -->
|
||||||
|
|
||||||
|
# 基于深度学习的图像分类研究
|
||||||
|
|
||||||
|
### 张三 · 导师:李四 教授
|
||||||
|
|
||||||
|
计算机科学与技术专业 · 2026 届硕士毕业答辩
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 目录
|
||||||
|
|
||||||
|
1. 研究背景与意义
|
||||||
|
2. 相关工作
|
||||||
|
3. 方法设计
|
||||||
|
4. 实验结果
|
||||||
|
5. 总结与展望
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
<!-- _class: trans -->
|
||||||
|
|
||||||
|
## 一、研究背景与意义
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### 研究背景
|
||||||
|
|
||||||
|
- 图像分类是计算机视觉的**基础任务**
|
||||||
|
- 深度学习在 ImageNet 上取得突破性进展
|
||||||
|
- AlexNet (2012) → VGG (2014) → ResNet (2015) → ViT (2020)
|
||||||
|
- 现有方法在**细粒度分类**上仍有提升空间
|
||||||
|
|
||||||
|
### 研究意义
|
||||||
|
|
||||||
|
> 提出一种基于注意力机制的多尺度特征融合方法,提升细粒度图像分类的准确率。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
<!-- _class: cols-2 -->
|
||||||
|
|
||||||
|
## 相关工作
|
||||||
|
|
||||||
|
<div class="ldiv">
|
||||||
|
|
||||||
|
### 传统方法
|
||||||
|
|
||||||
|
- SIFT + SVM
|
||||||
|
- HOG 特征
|
||||||
|
- 词袋模型 (BoW)
|
||||||
|
- 精度有限,泛化性差
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="rdiv">
|
||||||
|
|
||||||
|
### 深度学习方法
|
||||||
|
|
||||||
|
- CNN 系列:ResNet, DenseNet
|
||||||
|
- 注意力机制:SE-Net, CBAM
|
||||||
|
- Transformer:ViT, Swin
|
||||||
|
- **本研究的切入点**
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 方法设计
|
||||||
|
|
||||||
|
### 整体框架
|
||||||
|
|
||||||
|
```python
|
||||||
|
class MultiScaleModel(nn.Module):
|
||||||
|
def __init__(self, backbone, num_classes):
|
||||||
|
super().__init__()
|
||||||
|
self.backbone = backbone
|
||||||
|
self.attention = CBAM(channels=512)
|
||||||
|
self.classifier = nn.Linear(512, num_classes)
|
||||||
|
|
||||||
|
def forward(self, x):
|
||||||
|
features = self.backbone(x)
|
||||||
|
attended = self.attention(features)
|
||||||
|
return self.classifier(attended)
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 实验结果
|
||||||
|
|
||||||
|
| 方法 | CUB-200 | Stanford Cars | FGVC-Aircraft |
|
||||||
|
| --------- | --------- | ------------- | ------------- |
|
||||||
|
| ResNet-50 | 84.2% | 91.3% | 89.7% |
|
||||||
|
| SE-ResNet | 86.1% | 92.8% | 91.2% |
|
||||||
|
| ViT-B/16 | 87.5% | 93.1% | 91.8% |
|
||||||
|
| **Ours** | **89.3%** | **94.6%** | **93.1%** |
|
||||||
|
|
||||||
|
> [!note] 本方法在三个细粒度数据集上均取得了最优结果。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
<!-- _class: dark -->
|
||||||
|
|
||||||
|
### 关键发现
|
||||||
|
|
||||||
|
1. **多尺度融合**有效捕获不同粒度的视觉特征
|
||||||
|
2. 注意力机制使模型聚焦于**判别性区域**
|
||||||
|
3. 相比 ViT,训练数据量减少 **40%** 仍保持竞争力
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 总结与展望
|
||||||
|
|
||||||
|
### 主要贡献
|
||||||
|
|
||||||
|
- ✅ 提出多尺度注意力融合框架
|
||||||
|
- ✅ 在 3 个细粒度数据集上达到 SOTA
|
||||||
|
- ✅ 减少了对训练数据规模的依赖
|
||||||
|
|
||||||
|
### 未来工作
|
||||||
|
|
||||||
|
- 🔜 扩展到**目标检测**任务
|
||||||
|
- 🔜 探索**自监督预训练**的集成
|
||||||
|
- 🔜 在医学影像领域的应用验证
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
<!-- _class: ending -->
|
||||||
|
<!-- _paginate: false -->
|
||||||
|
|
||||||
|
# 谢谢!
|
||||||
|
|
||||||
|
### 欢迎提问与讨论
|
||||||
Reference in New Issue
Block a user