Andrej Karpathy Unveils a New LLM-Powered Framework for Personal Knowledge Management
On April 3, 2024, renowned AI researcher Andrej Karpathy announced a new approach to personal knowledge management centered around Large Language Models (LLMs) on social media. Two days later, he shared the complete concept on GitHub Gist in the form of an “idea file.” This move has sparked widespread interest in the tech community. Its core idea is to transform LLMs from one-off Q&A tools into automated partners that continuously maintain a personal knowledge system.
Karpathy noted that his current focus is shifting from “manipulating code” to “manipulating knowledge,” a change that heralds a new paradigm of collaboration between knowledge workers and AI.
The Three-Layer Architecture: An LLM-Powered Knowledge Compilation System
Karpathy’s proposed system framework consists of three layers, designed to automate the processing and presentation of knowledge:
Raw Data Layer: This layer is a read-only raw/ directory used to collect all raw information, including web articles, academic papers, code repositories, datasets, and images. Karpathy uses tools like the Obsidian Web Clipper to save entire web pages and their associated images locally, ensuring the LLM can directly access the unmodified source material.
Compiled Wiki Layer: This is the heart of the system. The LLM reads the content in the raw/ directory and automatically generates a structured Wiki composed of Markdown files. This Wiki is organized by concepts and includes summaries of each piece of raw data, backlinks, and cross-document conceptual syntheses. The entire creation and maintenance of the Wiki are handled by the LLM, with the user rarely editing it directly, ensuring the automation and consistency of the knowledge base.
Viewer Layer: Karpathy uses the knowledge management software Obsidian as the front-end viewer. Obsidian is responsible for displaying the raw data, the LLM-compiled Wiki, and derived content such as presentations generated by plugins like Marp. This layered structure clearly separates data, processing logic, and the user interface.

Rethinking RAG: Prioritizing a Structured Index
Regarding why he doesn’t directly use the mainstream technique of Retrieval-Augmented Generation (RAG), Karpathy provided an explanation based on practical experience. RAG is typically used to address the problem of handling large-scale knowledge bases that exceed the context window limit. It works by using vector search to find relevant document chunks and then feeding them to an LLM to generate an answer.
Karpathy stated that with the current scale of his knowledge base (about 100 articles, 400,000 words), the LLM can effectively maintain its own index files and document summaries. When querying, the LLM directly reads these structured indices and summaries, and the results are already satisfactory. The LLM-maintained Wiki is itself a highly compressed and structured representation of knowledge. Compared to vectorizing raw documents for retrieval, this method is logically superior. This does not negate the value of RAG, but suggests that in the context of personal knowledge management, prioritizing the construction of a well-structured, LLM-maintained Wiki may be a more pragmatic path than immediately implementing a complex RAG system.
Four Core Workflows
In his Gist file, Karpathy breaks down the entire workflow into four key operations:
- Ingest: When new material is added, the LLM incrementally processes it, updating relevant Wiki pages and maintaining internal links without needing to rebuild the entire knowledge base.
- Query: As the most common operation, users can ask complex questions. The LLM searches the Wiki and synthesizes content from multiple articles to generate an answer. Valuable query results can be “archived” back into the Wiki, enabling self-enhancement and continuous accumulation of the knowledge base.
- Lint: The LLM periodically performs a “health check” on the entire Wiki, looking for information conflicts, outdated content, orphaned pages, or potential knowledge connections that could be made but haven’t been. Its function is similar to a code linter, aiming to ensure the consistency and integrity of the knowledge base.
- Extra Tools: Karpathy also built a small search engine that can be used via a web interface or as a command-line tool for the LLM to call when handling larger-scale queries.
The “Idea File”: Advocating for Conceptual Sharing Over Code
Karpathy’s choice to publish an “idea file” on GitHub Gist rather than open-sourcing a specific tool sends an important signal. He believes that in an era of increasingly powerful AI Agents, sharing clear architectural ideas, workflow logic, and design decisions is more valuable than sharing specific code implementations. This is because a powerful AI Agent can generate customized implementation code for each user based on this “idea file.”
This philosophy received a rapid response from the community. After his Gist was published, the comments section quickly filled with various community-driven implementations, including integrations for specific models, extensions with semantic search layers, and Git-based version tracking implementations, validating the model of “clear ideas driving rapid implementation.”
Karpathy concluded that while his current implementation is a “rough collection of scripts,” it holds immense potential for creating a disruptive new product. This shift from “manipulating code” to “manipulating knowledge” offers a reference for all knowledge workers: positioning LLMs as long-term collaborative knowledge partners, rather than simple query tools, will be the mainstream form of knowledge work in the future.