Skip to content

Instantly share code, notes, and snippets.

View bkildow's full-sized avatar

Brian Kildow bkildow

View GitHub Profile
@bkildow
bkildow / llm-wiki.md
Created July 30, 2026 14:41 — 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.

@bkildow
bkildow / pdf.ipynb
Created April 4, 2023 14:01
A11y enhancements with PikePDF (Python)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
### Keybase proof
I hereby claim:
* I am bkildow on github.
* I am bkildow (https://keybase.io/bkildow) on keybase.
* I have a public key ASChRwjMuIjc5lkuWfWi0TgW6465oVMwSI6GYaV8xnMy2wo
To claim this, I am signing this object:
@bkildow
bkildow / graduation_form.rb
Last active January 15, 2017 16:01
Reform 1.2.6 nested form (with support for cocoon gem)
# app/forms/graduation_form.rb
require 'concerns/nested_form'
class GraduationForm < Reform::Form
# Needed for correct behavior of virtual attributes, see https://github.com/apotonick/reform/issues/75
reform_2_0!
model :response
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')