Skip to content

Instantly share code, notes, and snippets.

@ostaadt
ostaadt / llm-wiki.md
Created May 27, 2026 07:35 — forked from karpathy/llm-wiki.md
llm-wiki

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.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ostaadt
ostaadt / cloudSettings
Created January 28, 2019 14:18
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-01-28T14:18:35.621Z","extensionVersion":"v3.2.4"}
@ostaadt
ostaadt / cloudSettings
Created January 28, 2019 14:15
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-01-28T14:15:23.549Z","extensionVersion":"v3.2.4"}
@ostaadt
ostaadt / cloudSettings
Created January 28, 2019 14:14
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-01-28T14:14:37.344Z","extensionVersion":"v3.2.4"}
Steps to publish:
Make changes in the source branch
Build and test the site locally
Commit changes to source branch
git publish-website which consists of the following steps
git branch -D master
git checkout -b master
git filter-branch --subdirectory-filter _site/ -f
git checkout source