Skip to content

Instantly share code, notes, and snippets.

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.

@evandcoleman
evandcoleman / LoadingButton.swift
Created December 26, 2022 20:37
A button with a progress indicator for SwiftUI
//
// LoadingButton.swift
// App
//
// Created by Evan Coleman on 12/26/22.
//
import SwiftUI
struct LoadingButton<DefaultLabel: View, LoadingLabel: View>: View {
@rohitg00
rohitg00 / llm-wiki.md
Last active April 17, 2026 23:43 — forked from karpathy/llm-wiki.md
LLM Wiki v2 — extending Karpathy's LLM Wiki pattern with lessons from building agentmemory

LLM Wiki v2

A pattern for building personal knowledge bases using LLMs. Extended with lessons from building agentmemory, a persistent memory engine for AI coding agents.

This builds on Andrej Karpathy's original LLM Wiki idea file. Everything in the original still applies. This document adds what we learned running the pattern in production: what breaks at scale, what's missing, and what separates a wiki that stays useful from one that rots.

What the original gets right

The core insight is correct: stop re-deriving, start compiling. RAG retrieves and forgets. A wiki accumulates and compounds. The three-layer architecture (raw sources, wiki, schema) works. The operations (ingest, query, lint) cover the basics. If you haven't read the original, start there.

@jbjefersonboni-hue
jbjefersonboni-hue / lista1ptvfevereiro2026.m3u
Created February 23, 2026 22:35
Lista iptv fevereiro/2026
#EXTM3U
#EXTINF:-1 tvg-id="AELatinAmerica.us@Brazil" tvg-name="A&E FHD" tvg-logo="https://raphmx00.com/ae.png" group-title="Canais | Variedades",A&E FHD
http://laele1.fun:80/9nRa25/X3bGEF/139100
#EXTINF:-1 tvg-id="AELatinAmerica.us@Brazil" tvg-name="A&E FHD [Alt]" tvg-logo="https://raphmx00.com/ae.png" group-title="Canais | Variedades",A&E FHD [Alt]
http://laele1.fun:80/9nRa25/X3bGEF/147431
#EXTINF:-1 tvg-id="AELatinAmerica.us@Brazil" tvg-name="A&E FHD [H265]" tvg-logo="https://raphmx00.com/ae.png" group-title="Canais | 4K - H265",A&E FHD [H265]
http://laele1.fun:80/9nRa25/X3bGEF/83335
#EXTINF:-1 tvg-id="AELatinAmerica.us@Brazil" tvg-name="A&E HD" tvg-logo="https://raphmx00.com/ae.png" group-title="Canais | Variedades",A&E HD
http://laele1.fun:80/9nRa25/X3bGEF/83185
#EXTINF:-1 tvg-id="AELatinAmerica.us@Brazil" tvg-name="A&E HD [Alt]" tvg-logo="https://raphmx00.com/ae.png" group-title="Canais | Variedades",A&E HD [Alt]
@ossa-ma
ossa-ma / tropes.md
Last active April 17, 2026 23:34
AI Writing Tropes to Avoid — tropes.fyi by ossama.is

AI Writing Tropes to Avoid

Add this file to your AI assistant's system prompt or context to help it avoid common AI writing patterns. Source: tropes.fyi by ossama.is


Word Choice

"Quietly" and Other Magic Adverbs

@GlitchWitch
GlitchWitch / dante-setup.md
Last active April 17, 2026 23:33
Setup a simple proxy server with dante

Install the server

sudo apt install dante-server

Update the config file

sudo rm /etc/danted.conf
sudo nano /etc/danted.conf
@mjkstra
mjkstra / arch_linux_installation_guide.md
Last active April 17, 2026 23:31
A modern, updated installation guide for Arch Linux with BTRFS on an UEFI system