Skip to content

Instantly share code, notes, and snippets.

@nanha
nanha / llm-wiki.md
Created April 6, 2026 00:22 — 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.

{
"keys": [
{
"p": "_fCqaxfQs4t13CNHhzxlC1oEKZ21V42P_7lajnobmAxi5GvcJwA5D4PctXCfv0CHgsjoPcGcYVFRuNzGG4zbHWeyYiPHMmAYS_xkX0CiohKY3cLpmvABCL-bkHinvOnyXBKWGj6x0PHHn7dEC8sBZVI7yL-Tw6_JFmZz8SZB3F8",
"kty": "RSA",
"q": "xvQbQl5ty0JJDh5-50eAmi7tJYjx5OuTsmPncAj4MJH93xeSQeFJW2hjxPyuUjsuavPlSGgVYI4NQKoVEuEOXgKM_ZfxkcNweiMV03Gy9aWL0N-sqmJahEIuBBUPAu8blbmL53vUITuRPwGYd_1-Y5beNxfCztTQiifUOCt9Duc",
"d": "L4JxeygJy4xeIkeWi9l_CGNQvpjAddYnowd-9XOTACV2vpQALIu6-bGPU1GboIUdVpul1prfrm4_ayYFWZ6kJyXxdfGfd7UK-0KuuayeVXlpzmSautGS5fvAsvE_taaEMtlFl9hykgLiNNhvA1VoOwapesMjgv_7Sjts82OEBenLaysT-lt2WyIx76rlYMgdwkLF_HScw9ivj5ILld64gB0vZrfn5ev8arHWySNrzTeLc9QWnEDfm4STH9Aj_INkKjkfRsZF_OqSl5iP5XwhiusMCMWXokQg3Vpg6_6052oLCq8zcozh08njeitjC7mXhef7pAz7p_dGwUcM7loM9Q",
"e": "AQAB",
"use": "sig",
"kid": "nanhapark",
<!DOCTYPE html>
<html lang="en" class="android"><head><meta name="viewport" content="width=device-width,initial-scale=1,minimal-ui,maximum-scale=1,user-scalable=no" /><meta name="description" content="오사라마켓" /><meta name="author" content="SKP" /><meta property="og:image" content="https://m.osara.co.kr/static/images/img-default.png" /><meta property="og:title" content="오사라마켓" /><meta property="og:url" content="https://m.osara.co.kr" /><meta property="og:description" content="쏠쏠한 생활쇼핑" /><meta property="og:type" content="website" /><link rel="shortcut icon" href="https://m.osara.co.kr/static/images/favicon_osara.ico" type="image/x-icon" /><link rel="icon" href="https://m.osara.co.kr/static/images/favicon_osara.ico" type="image/x-icon" /><title>오사라마켓</title><link href="/static/css/vendors.e6c854c6b5cf372851d2.css" rel="stylesheet" /><link href="/static/css/app.b08de422fafecbe8ab64.css" rel="stylesheet" /><link rel="stylesheet" type="text/css" href="/static/css/cart~category~claim~claimRequest~main~my~myAccount~m
@nanha
nanha / App.tsx
Created November 20, 2020 09:42 — forked from kotarella1110/App.tsx
Counter app example - TypeScript + React + Redux + redux-saga
import * as React from 'react';
import { Store, createStore, combineReducers, applyMiddleware } from 'redux';
import createSagaMiddleware from 'redux-saga';
import * as ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { reducer as counter, rootSaga } from './counter';
import Counter from './Counter';
const sagaMiddleware = createSagaMiddleware();
// 설정을 이 파일에 넣어서 기본 설정을 덮어씁니다.
{
"editor.tabSize": 2,
"explorer.confirmDelete": false,
"workbench.startupEditor": "newUntitledFile",
"editor.wordWrap": "on",
"editor.fontFamily": "Hack, Monaco, 'Courier New', monospace",
"workbench.settings.openDefaultKeybindings": true,
"vim.easymotion": true,
"vim.sneak": true,
@nanha
nanha / Recopick.html
Created May 13, 2019 07:23
Recopick 개인화 랜딩페이지 AB Test// source https://jsbin.com/tanorog
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Recopick 개인화 랜딩페이지 AB Test</title>
<script src="https://ajax-plab.skplanet.com/v1/project/nanhapark_project/datafile.js"></script>
<script src="https://api-plab.skplanet.com/dist/plab-web-sdk.min.js"></script>
<script>
plab.init({
# you have ctags but it does not work...
$ ctags -R --exclude=.git --exclude=log *
ctags: illegal option -- R
usage: ctags [-BFadtuwvx] [-f tagsfile] file ...
#you need to get new ctags, i recommend homebrew but anything will work
$ brew install ctags
#alias ctags if you used homebrew
$ alias ctags="`brew --prefix`/bin/ctags"
#!/bin/sh
# Credentials for a MySQL user with PROCESS, SUPER permissions
USERNAME=
PASSWORD=
# MySQL Server location
HOST=127.0.0.1
PORT=3306
@nanha
nanha / bosh.md
Created September 29, 2013 00:58
bosh command

intro

nise_bosh 에서 필요한건 create command 만

create

create release [<manifest_file>] [--force] [--final] [--with-tarball]
               [--dry-run]
 Create release (assumes current directory to be a release repository)
@nanha
nanha / wiki.css
Created May 22, 2013 00:56
wiki css
#rw_wrapper h1.rw_page_title {
text-shadow: #CCC 1px 1px 1px !important;
letter-spacing: -2px !important;
padding-bottom: 10px !important;
border-bottom: 1px dotted #919699!important;
margin: 10px 0 !important;
color: rgb(204, 51, 63) !important;
font-size: 30px !important;
}