Skip to content

Instantly share code, notes, and snippets.

@roktas
roktas / llm-wiki.md
Created June 12, 2026 17:00 — 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.

" ----------------------------------------------------------------------------------------------------------------------
" Settings
" ----------------------------------------------------------------------------------------------------------------------
set confirm=permdelete
set history=500
set hlsearch
set ignorecase
set incsearch
set nofollowlinks
local wezterm = require("wezterm")
------------------------------------------------------------------------------------------------------------------------
-- Constants and helpers
------------------------------------------------------------------------------------------------------------------------
local FONT_FAMILY = wezterm.font("Spleen 32x64")
local FONT_SIZE = 16
local CHAR_SOLID_LEFT = wezterm.nerdfonts.pl_right_hard_divider
local COLOR_BACKGROUND = "#2e3440"
# frozen_string_literal: true
require "sevgi/sundries/printer"
module Sevgi
module Graphics
module Mixtures
module Print
EXT = ".svg"
#!/usr/bin/env bash
declare -gr ROOT=~/Dropbox/src/strokes
alef() {
local P
echo >&2 "alef"
for P in g i; do
@roktas
roktas / base.sevgi
Last active February 14, 2026 15:13
Old Strokes base
# frozen_string_literal: true
module Base
module Header
def call(page)
n = 3
width = page.grid.width / n.to_f
rect id: "Header-Cell-Left", x: 0, y: 0, width:, height: 9, class: %w[ header ]
rect id: "Header-Cell-Center", x: width, y: 0, width:, height: 9, class: %w[ header ]

Sözdizimi

  • Sorular bir soru bir dosya olabileceği gibi, bir dosyada birden fazla soru olabilir

  • Dosyada sorular === ile ayrılır

  • Grup sorularında alt sorular --- ile ayrılır

  • Şıklar A) şeklinde

@roktas
roktas / bisac.csv
Created August 25, 2025 07:58 — forked from pgaskin/bisac.csv
Code Description Comment
Complete BISAC Subject Headings List, 2021 Edition Generated on 2022-02-03T17:00:35.308Z from https://bisg.org/page/BISACEdition
ANT000000 Antiques & Collectibles / General
ANT056000 Antiques & Collectibles / Advertising
ANT001000 Antiques & Collectibles / Americana
ANT002000 Antiques & Collectibles / Art
ANT003000 Antiques & Collectibles / Autographs
ANT005000 Antiques & Collectibles / Books
ANT006000 Antiques & Collectibles / Bottles
ANT007000 Antiques & Collectibles / Buttons & Pins
#!/usr/bin/env -S ruby -S sevgi
SVG :inkscape, Sevgi::Graphics::Canvas.new(width: 150, height: 30) do
rect x: 0, y: 0, width: 150, height: 30, stroke: "none", fill: "maroon"
text "TEXT", x: "50%", y: "50%", "dominant-baseline": "middle", "text-anchor": "middle", fill: "white"
end.Out