Skip to content

Instantly share code, notes, and snippets.

@ErRoen
ErRoen / llm-wiki.md
Created April 10, 2026 19:10 — 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.

@ErRoen
ErRoen / OhMyPosh.omp.json
Last active October 1, 2024 15:00
OhMyPosh
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"foreground": "#FFEE58",
"style": "plain",
"template": "  ",
oh-my-posh init pwsh --config 'C:\Users\erick.roen\AppData\Local\Programs\oh-my-posh\themes\powerline.omp.json' | Invoke-Expression
Import-Module -Name Terminal-Icons
Import-Module z
function vs
{
Get-ChildItem *.sln | Invoke-Item
}
@ErRoen
ErRoen / DotNetCoreAngularSite.ps1
Last active September 25, 2024 14:31
.Net Core Angular Create Script
dotnet new sln
dotnet new angular -n SOLUTION_NAME.Website -o SOLUTION_NAME.Website
dotnet new mstest -n SOLUTION_NAME.Tests -o SOLUTION_NAME.Tests
dotnet sln add SOLUTION_NAME.Website\SOLUTION_NAME.Website.csproj
dotnet sln add SOLUTION_NAME.Tests\SOLUTION_NAME.Tests.csproj
cd SOLUTION_NAME.Tests
dotnet add reference ..\SOLUTION_NAME.Website\SOLUTION_NAME.Website.csproj
cd ..
dotnet restore
@ErRoen
ErRoen / BoxStarter.ps1
Last active September 25, 2024 14:47
BoxStarter script
# Usage from a Powershell prompt: *Note... the raw ID must be changed to match current version
# START http://boxstarter.org/package/nr/url?https://gist.githubusercontent.com/ErRoen/c7c9fe581b3a710b6dc3ff570aa0b6cb/raw/824934dc23ccdc1fb9f84350f19161681739cbf2/BoxStarter
#Disable-UAC
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableExpandToOpenFolder -EnableShowFullPathInTitleBar
Enable-RemoteDesktop
Disable-InternetExplorerESC
Set-BoxstarterTaskbarOptions -Size Small -Dock Bottom -Combine Always
# Runtimes and other bits