BeFreed
    Categories>AI>Karpathy 的 AI 知识编译法:从 RAG 到 LLM Wiki 的进化

    Karpathy 的 AI 知识编译法:从 RAG 到 LLM Wiki 的进化

    18 min
    |
    |
    May 27, 2026
    AITechnologyProductivity

    面对 AI 助手总是“转头就忘”的短期记忆困境,Blythe 和 Miles 深度解析了 Karpathy 提出的 LLM Wiki 模式。通过将零散资料编译成可进化的个人百科,让你的 AI 从临时工变成拥有“知识复利”的全职管家。

    Karpathy 的 AI 知识编译法:从 RAG 到 LLM Wiki 的进化

    Best quote from Karpathy 的 AI 知识编译法:从 RAG 到 LLM Wiki 的进化

    “

    AI 的工作不是把它存进硬盘就消失了,而是立刻通读一遍,然后把它拆解、整合进你现有的 Wiki 体系里,让知识库从一个被动的仓库变成一个有生命力的有机体。

    ”

    This audio lesson was created by a BeFreed community member

    Input question

    Andrej Karpathy 的 LLM Wiki 知識管理方法

    Host voices
    Blytheplay
    Milesplay
    Learning style
    Deep
    Knowledge sources
    llm-wiki · GitHub
    link
    https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f?permalink_comment_id=6079555
    Beyond RAG: How Andrej Karpathy’s LLM Wiki Pattern Builds Knowledge That Actually Compounds | by Plaban Nayak | Apr, 2026 | Level Up Coding
    link
    https://nayakpplaban.medium.com/beyond-rag-how-andrej-karpathys-llm-wiki-pattern-builds-knowledge-that-actually-compounds-31a08528665e
    Your AI Assistant Has Amnesia. Andrej Karpathy Just Found the Cure (LLM-Wiki). | by Darshandagaa | Apr, 2026 | Towards AI
    link
    https://pub.towardsai.net/your-ai-assistant-has-amnesia-andrej-karpathy-just-found-the-cure-llm-wiki-f4ff5efdbe7a
    Llm wiki
    link
    https://gist.githubusercontent.com/karpathy/442a6bf555914893e9891c11519de94f/raw/ac46de1ad27f92b28ac95459c782c07f6b8c964a/llm-wiki.md
    What Is Andrej Karpathy's LLM Wiki? Set It Up With No Code | Recall
    link
    https://www.recall.it/post/andrej-karpathy-llm-wiki-no-code-no-maintenance

    Frequently Asked Questions

    LLM Wiki 是由 OpenAI 创始成员 Andrej Karpathy 提出的一种新型知识管理模式。传统的 RAG(检索增强生成)通常是“即用即弃”的,AI 每次回答问题都需要重新翻阅原始文档,像个临时工。而 LLM Wiki 模式将 AI 视为“全职档案员”,它会将新输入的信息主动“编译”并整合进一个动态生长的个人百科全书中。这种模式的核心区别在于积累感,AI 不再只是简单的查资料,而是通过建立知识间的逻辑关联,让知识产生复利。

    该系统分为底层、中间层和顶层。底层是“原始素材层”,存放不可篡改的 PDF、网页等原始文件,作为追溯底稿。中间层是“Wiki 表现层”,由 AI 绝对控制,存放 Markdown 格式的知识摘要、实体和交叉链接。顶层是“Schema 规范层”,这是用户定义的“馆规”,决定了 Wiki 的风格、关注领域以及处理冲突信息的规则。通过这种结构,用户只需负责输入和设定规则,繁琐的整理工作全部交给 AI。

    编译过程分为五个精密步骤。首先是解析源文件为纯文本;接着进行“路由选择”,根据规范确定新信息与哪些已有页面相关;随后进入核心的“合成”阶段,AI 将新旧内容融合,遵循“只增不减”的原则重写页面;最后是更新索引目录并记录操作日志。这种增量更新的方式避免了重写整个数据库的高昂成本,同时确保了知识的连续性和可追溯性。

    Lint 借用了编程中的代码审查概念,是指对 Wiki 进行定期的“体检”。AI 会主动发现知识库中的矛盾点(例如新旧资料观点冲突)、孤儿页面(无引用的冷宫文件)以及知识缺口。它不仅能提醒用户哪些领域的认知存在偏差,甚至能根据现有知识图谱的空洞,主动建议用户去搜索特定方向的素材,从而实现知识库的自我进化。

    主要的挑战包括模式设计的复杂性、API 调用成本以及对模型的依赖。如果 Schema 定义不当,会导致 AI 无法准确归纳知识或产生高昂的费用。此外,Wiki 的质量上限取决于所用 LLM 的理解能力,一旦模型在合成阶段产生误导性信息,可能会污染后续的查询结果。因此,这套系统目前更适合愿意投入“认知耐心”进行微调和纠错的精耕细作型学习者。

    Discover more

    我非常想学习ai,用ai的知识提高效率

    我非常想学习ai,用ai的知识提高效率

    LEARNING PLAN

    我非常想学习ai,用ai的知识提高效率

    在AI驱动的时代,掌握人工智能已成为提升个人竞争力的核心。本方案专为希望从零开始系统掌握AI技术、并将其应用于自动化办公与模型开发的职场人士和开发者设计。

    3 h 21 m•4 Sections
    想学习ai基础

    想学习ai基础

    LEARNING PLAN

    想学习ai基础

    在人工智能重塑各行各业的今天,掌握AI基础已成为职场竞争力的核心。本计划专为希望从零开始构建AI知识体系的学习者设计,通过理论与实践的结合,帮助你快速跨越技术门槛。

    2 h 50 m•4 Sections
    我想了解ai

    我想了解ai

    LEARNING PLAN

    我想了解ai

    随着人工智能重塑各行各业,理解其底层逻辑已成为当代学习者的必备技能。本方案适合希望从零开始系统构建AI认知,并关注技术伦理与未来趋势的职场人士或学生。

    1 h 53 m•4 Sections
    我想学习人工智能

    我想学习人工智能

    LEARNING PLAN

    我想学习人工智能

    随着人工智能重塑各行各业,掌握其底层逻辑已成为核心竞争力。本路径专为希望从零构建AI知识体系的初学者设计,通过技术实践与伦理思考的结合,培养具备前瞻性的智能时代人才。

    2 h 30 m•4 Sections
    AI Myths: LLMs vs. True Sentience

    AI Myths: LLMs vs. True Sentience

    LEARNING PLAN

    AI Myths: LLMs vs. True Sentience

    This learning plan is essential for anyone looking to look past the headlines and understand the actual capabilities of modern AI. It is particularly valuable for tech enthusiasts, students, and professionals who want to ground their understanding of machine intelligence in both science and philosophy.

    3 h 4 m•4 Sections
    Learning about Ai

    Learning about Ai

    LEARNING PLAN

    Learning about Ai

    As artificial intelligence becomes a cornerstone of modern industry, understanding its technical and ethical foundations is essential for staying competitive. This plan is ideal for professionals and enthusiasts looking to transition from basic awareness to building and managing intelligent systems.

    2 h 40 m•4 Sections
    Learn to set up custom AI task agents

    Learn to set up custom AI task agents

    LEARNING PLAN

    Learn to set up custom AI task agents

    This learning plan is essential for developers and tech innovators looking to move beyond simple LLM prompts into autonomous system design. It provides a complete roadmap from foundational Python coding to deploying scalable, production-ready AI agent architectures.

    3 h 12 m•4 Sections
    AI basics

    AI basics

    LEARNING PLAN

    AI basics

    As AI rapidly transforms the global economy, technical literacy has become a vital asset for professionals across all industries. This plan is designed for aspiring developers and curious thinkers who want to move beyond the hype to build and understand actual intelligent systems.

    2 h 57 m•4 Sections

    From Columbia University alumni built in San Francisco

    BeFreed Brings Together A Global Community Of 1,000,000 Curious Minds
    See more on how BeFreed is discussed across the web

    "Instead of endless scrolling, I just hit play on BeFreed. It saves me so much time."

    @Moemenn
    platform
    star
    star
    star
    star
    star

    "I never knew where to start with nonfiction—BeFreed’s book lists turned into podcasts gave me a clear path."

    @Chloe, Solo founder, LA
    platform
    comments
    12
    likes
    117

    "Perfect balance between learning and entertainment. Finished ‘Thinking, Fast and Slow’ on my commute this week."

    @Raaaaaachelw
    platform
    star
    star
    star
    star
    star

    "Crazy how much I learned while walking the dog. BeFreed = small habits → big gains."

    @Matt, YC alum
    platform
    comments
    12
    likes
    108

    "Reading used to feel like a chore. Now it’s just part of my lifestyle."

    @Erin, Investment Banking Associate , NYC
    platform
    comments
    254
    likes
    17

    "Feels effortless compared to reading. I’ve finished 6 books this month already."

    @djmikemoore
    platform
    star
    star
    star
    star
    star

    "BeFreed turned my guilty doomscrolling into something that feels productive and inspiring."

    @Pitiful
    platform
    comments
    96
    likes
    4.5K

    "BeFreed turned my commute into learning time. 20-min podcasts are perfect for finishing books I never had time for."

    @SofiaP
    platform
    star
    star
    star
    star
    star

    "BeFreed replaced my podcast queue. Imagine Spotify for books — that’s it. 🙌"

    @Jaded_Falcon
    platform
    comments
    201
    thumbsUp
    16

    "It is great for me to learn something from the book without reading it."

    @OojasSalunke
    platform
    star
    star
    star
    star
    star

    "The themed book list podcasts help me connect ideas across authors—like a guided audio journey."

    @Leo, Law Student, UPenn
    platform
    comments
    37
    likes
    483

    "Makes me feel smarter every time before going to work"

    @Cashflowbubu
    platform
    star
    star
    star
    star
    star

    From Columbia University alumni built in San Francisco

    BeFreed Brings Together A Global Community Of 1,000,000 Curious Minds
    See more on how BeFreed is discussed across the web

    "Instead of endless scrolling, I just hit play on BeFreed. It saves me so much time."

    @Moemenn
    platform
    star
    star
    star
    star
    star

    "I never knew where to start with nonfiction—BeFreed’s book lists turned into podcasts gave me a clear path."

    @Chloe, Solo founder, LA
    platform
    comments
    12
    likes
    117

    "Perfect balance between learning and entertainment. Finished ‘Thinking, Fast and Slow’ on my commute this week."

    @Raaaaaachelw
    platform
    star
    star
    star
    star
    star

    "Crazy how much I learned while walking the dog. BeFreed = small habits → big gains."

    @Matt, YC alum
    platform
    comments
    12
    likes
    108

    "Reading used to feel like a chore. Now it’s just part of my lifestyle."

    @Erin, Investment Banking Associate , NYC
    platform
    comments
    254
    likes
    17

    "Feels effortless compared to reading. I’ve finished 6 books this month already."

    @djmikemoore
    platform
    star
    star
    star
    star
    star

    "BeFreed turned my guilty doomscrolling into something that feels productive and inspiring."

    @Pitiful
    platform
    comments
    96
    likes
    4.5K

    "BeFreed turned my commute into learning time. 20-min podcasts are perfect for finishing books I never had time for."

    @SofiaP
    platform
    star
    star
    star
    star
    star

    "BeFreed replaced my podcast queue. Imagine Spotify for books — that’s it. 🙌"

    @Jaded_Falcon
    platform
    comments
    201
    thumbsUp
    16

    "It is great for me to learn something from the book without reading it."

    @OojasSalunke
    platform
    star
    star
    star
    star
    star

    "The themed book list podcasts help me connect ideas across authors—like a guided audio journey."

    @Leo, Law Student, UPenn
    platform
    comments
    37
    likes
    483

    "Makes me feel smarter every time before going to work"

    @Cashflowbubu
    platform
    star
    star
    star
    star
    star

    "Instead of endless scrolling, I just hit play on BeFreed. It saves me so much time."

    @Moemenn
    platform
    star
    star
    star
    star
    star

    "I never knew where to start with nonfiction—BeFreed’s book lists turned into podcasts gave me a clear path."

    @Chloe, Solo founder, LA
    platform
    comments
    12
    likes
    117

    "Perfect balance between learning and entertainment. Finished ‘Thinking, Fast and Slow’ on my commute this week."

    @Raaaaaachelw
    platform
    star
    star
    star
    star
    star

    "Crazy how much I learned while walking the dog. BeFreed = small habits → big gains."

    @Matt, YC alum
    platform
    comments
    12
    likes
    108

    "Reading used to feel like a chore. Now it’s just part of my lifestyle."

    @Erin, Investment Banking Associate , NYC
    platform
    comments
    254
    likes
    17

    "Feels effortless compared to reading. I’ve finished 6 books this month already."

    @djmikemoore
    platform
    star
    star
    star
    star
    star

    "BeFreed turned my guilty doomscrolling into something that feels productive and inspiring."

    @Pitiful
    platform
    comments
    96
    likes
    4.5K

    "BeFreed turned my commute into learning time. 20-min podcasts are perfect for finishing books I never had time for."

    @SofiaP
    platform
    star
    star
    star
    star
    star

    "BeFreed replaced my podcast queue. Imagine Spotify for books — that’s it. 🙌"

    @Jaded_Falcon
    platform
    comments
    201
    thumbsUp
    16

    "It is great for me to learn something from the book without reading it."

    @OojasSalunke
    platform
    star
    star
    star
    star
    star

    "The themed book list podcasts help me connect ideas across authors—like a guided audio journey."

    @Leo, Law Student, UPenn
    platform
    comments
    37
    likes
    483

    "Makes me feel smarter every time before going to work"

    @Cashflowbubu
    platform
    star
    star
    star
    star
    star

    "Instead of endless scrolling, I just hit play on BeFreed. It saves me so much time."

    @Moemenn
    platform
    star
    star
    star
    star
    star

    "I never knew where to start with nonfiction—BeFreed’s book lists turned into podcasts gave me a clear path."

    @Chloe, Solo founder, LA
    platform
    comments
    12
    likes
    117

    "Perfect balance between learning and entertainment. Finished ‘Thinking, Fast and Slow’ on my commute this week."

    @Raaaaaachelw
    platform
    star
    star
    star
    star
    star

    "Crazy how much I learned while walking the dog. BeFreed = small habits → big gains."

    @Matt, YC alum
    platform
    comments
    12
    likes
    108

    "Reading used to feel like a chore. Now it’s just part of my lifestyle."

    @Erin, Investment Banking Associate , NYC
    platform
    comments
    254
    likes
    17

    "Feels effortless compared to reading. I’ve finished 6 books this month already."

    @djmikemoore
    platform
    star
    star
    star
    star
    star

    "BeFreed turned my guilty doomscrolling into something that feels productive and inspiring."

    @Pitiful
    platform
    comments
    96
    likes
    4.5K

    "BeFreed turned my commute into learning time. 20-min podcasts are perfect for finishing books I never had time for."

    @SofiaP
    platform
    star
    star
    star
    star
    star

    "BeFreed replaced my podcast queue. Imagine Spotify for books — that’s it. 🙌"

    @Jaded_Falcon
    platform
    comments
    201
    thumbsUp
    16

    "It is great for me to learn something from the book without reading it."

    @OojasSalunke
    platform
    star
    star
    star
    star
    star

    "The themed book list podcasts help me connect ideas across authors—like a guided audio journey."

    @Leo, Law Student, UPenn
    platform
    comments
    37
    likes
    483

    "Makes me feel smarter every time before going to work"

    @Cashflowbubu
    platform
    star
    star
    star
    star
    star
    1.5K Ratings4.7
    Start your learning journey, now
    BeFreed App
    BeFreed

    Learn Anything, Personalized

    DiscordLinkedIn
    Featured book summaries
    Crucial ConversationsThe Perfect MarriageInto the WildNever Split the DifferenceAttachedGood to GreatSay Nothing
    Trending categories
    Self HelpCommunication SkillRelationshipMindfulnessPhilosophyInspirationProductivity
    Celebrities' reading list
    Elon MuskCharlie KirkBill GatesSteve JobsAndrew HubermanJoe RoganJordan Peterson
    Award winning collection
    Pulitzer PrizeNational Book AwardGoodreads Choice AwardsNobel Prize in LiteratureNew York TimesCaldecott MedalNebula Award
    Featured Topics
    ManagementAmerican HistoryWarTradingStoicismAnxietySex
    Best books by Year
    2025 Best Non Fiction Books2024 Best Non Fiction Books2023 Best Non Fiction Books
    Featured authors
    Chimamanda Ngozi AdichieGeorge OrwellO. J. SimpsonBarbara O'NeillWinston ChurchillCharlie Kirk
    BeFreed vs other apps
    BeFreed vs. Other Book Summary AppsBeFreed vs. ElevenReaderBeFreed vs. ReadwiseBeFreed vs. Anki
    Learning tools
    Knowledge VisualizerAI Podcast Generator
    Information
    About Usarrow
    Pricingarrow
    FAQarrow
    Blogarrow
    Careerarrow
    Partnershipsarrow
    Ambassador Programarrow
    Directoryarrow
    BeFreed
    Try now
    © 2026 BeFreed
    Term of UsePrivacy Policy
    BeFreed

    Learn Anything, Personalized

    DiscordLinkedIn
    Featured book summaries
    Crucial ConversationsThe Perfect MarriageInto the WildNever Split the DifferenceAttachedGood to GreatSay Nothing
    Trending categories
    Self HelpCommunication SkillRelationshipMindfulnessPhilosophyInspirationProductivity
    Celebrities' reading list
    Elon MuskCharlie KirkBill GatesSteve JobsAndrew HubermanJoe RoganJordan Peterson
    Award winning collection
    Pulitzer PrizeNational Book AwardGoodreads Choice AwardsNobel Prize in LiteratureNew York TimesCaldecott MedalNebula Award
    Featured Topics
    ManagementAmerican HistoryWarTradingStoicismAnxietySex
    Best books by Year
    2025 Best Non Fiction Books2024 Best Non Fiction Books2023 Best Non Fiction Books
    Learning tools
    Knowledge VisualizerAI Podcast Generator
    Featured authors
    Chimamanda Ngozi AdichieGeorge OrwellO. J. SimpsonBarbara O'NeillWinston ChurchillCharlie Kirk
    BeFreed vs other apps
    BeFreed vs. Other Book Summary AppsBeFreed vs. ElevenReaderBeFreed vs. ReadwiseBeFreed vs. Anki
    Information
    About Usarrow
    Pricingarrow
    FAQarrow
    Blogarrow
    Careerarrow
    Partnershipsarrow
    Ambassador Programarrow
    Directoryarrow
    BeFreed
    Try now
    © 2026 BeFreed
    Term of UsePrivacy Policy

    Key Takeaways

    1

    为什么你的 AI 总是“记不住事”?

    2

    编译模式:从“搜一下”到“存起来”

    2:23
    2:54
    3:37
    3:59
    4:16
    3

    三层架构:给 AI 盖一座“知识图书馆”

    4:33
    4:44
    5:09
    5:17
    5:49
    5:59
    6:44
    4

    知识入库:像编译器一样精准运作

    6:52
    7:31
    8:03
    8:18
    8:42
    5

    深度查询:让答案在 Wiki 森林里“长”出来

    9:18
    9:34
    9:47
    10:14
    10:56
    6

    知识“自愈”:给你的第二大脑做体检

    11:36
    12:08
    12:34
    12:55
    13:12
    13:34
    7

    落地挑战:通往“知识复利”的那些坑

    13:48
    14:57
    15:30
    15:50
    8

    开启你的 LLM Wiki 之路

    16:10
    16:21
    16:46
    18:21

    More like this

    AI Memory Systems for Your Local Knowledge Base book cover
    AI Agent Memory Architectures: From Context Windows to Persistent Knowledge | Zylos ResearchGive Your AI Agent Persistent Memory in 2026Building Nova: The Architecture of a Household AI Agent – codeXgalacticV3.3 Architecture — SuperLocalMemory
    5 sources
    AI Memory Systems for Your Local Knowledge Base
    Stop starting every AI session from scratch. Learn how to use markdown-based memory to help your agents retain data and find hidden connections.
    26 min
    AI Agent:从对话框走向行动派 book cover
    [url_1c5a5d5e:c0000] cloud.baidu.com/article/5745893 p1-1[url_0b4717b8:c0000] developer.aliyun.com/article/1707471 p1-1[url_72bb16a7:c0000] cloud.tencent.com/developer/article/2640566 p1-1[url_926289f2:c0000] devpress.csdn.net/v1/article/detail/151155242 p1-1
    9 sources
    AI Agent:从对话框走向行动派
    当大模型不再止于聊天,如何通过感知、大脑与行动模块构建能解决复杂问题的智能体?Lena 和 Eli 将带你拆解规划器、记忆协同与工具库核心架构,助你完成从 LLM 基础到商业化落地的深度进阶。
    11 min
    AI 学习:是外挂还是陷阱? book cover
    What Is ChatGPT Doing ... and Why Does It Work?Rewire Your BrainHow learning worksUncommon Sense Teaching
    26 sources
    AI 学习:是外挂还是陷阱?
    面对 AI 六周抵两年的学习神效,我们正陷入认知外包的陷阱。Lena 和 Eli 将深度拆解 ChatGPT 如何通过苏格拉底式引导重塑个性化教育,并探讨在算法喂养下,我们该如何守住深度思考的底线,避免大脑退化。
    15 min
    AI 编程的防删库指南 book cover
    A Philosophy of Software Design, 2nd EditionRefactoringSoftware Architecture in PracticeSystem Design Interview
    8 sources
    AI 编程的防删库指南
    当 Claude Code 拥有本地操作权限,手动写规则拦截指令往往防不胜防。本期 Lena 和 Eli 将拆解形式化验证与经验主义的博弈,帮你用数学逻辑构建真正安全的 AI 开发护栏。
    13 min
    AI 进化论:从模拟人脑到智能体 book cover
    A Brief History of Artificial IntelligenceThe Singularity is NearerAge of A. I.AI 2041
    29 sources
    AI 进化论:从模拟人脑到智能体
    面对 AI 爆发带来的认知焦虑,Lena 和 Miles 深入拆解了神经网络与深度学习的底层逻辑。听完这期,你将理解机器如何从机械计算演变为自我进化的智能体,并掌握在 AI 时代高效工作的提示词秘籍。
    28 min
    人工智能:正在读懂你的心 book cover
    A Brief History of Artificial IntelligenceHands-on Machine Learning With Scikit-learn And TensorflowHow to Speak MachineMake your own neural network
    19 sources
    人工智能:正在读懂你的心
    面对 AI 无处不在的“读心术”,Lena 和 Miles 将带你拆解算力与数据的底层逻辑。通过深度分析技术进化与行业应用,帮你在这场重塑全球经济的浪潮中找准定位并规避风险。
    25 min
    Skill Code book cover
    Skill Code
    Matt Beane
    Insightful guide on preserving human skills in the AI era, revealing the hidden code behind expert-novice relationships.
    10 min
    Artificial Intelligence and Generative AI for Beginners book cover
    Artificial Intelligence and Generative AI for Beginners
    David M. Patel
    Comprehensive guide to AI and generative AI for all skill levels.
    9 min