Skip to content

Instantly share code, notes, and snippets.

View joshdevins's full-sized avatar

Josh Devins joshdevins

View GitHub Profile

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.

[alias]
co = "checkout"
ci = "commit"
unmerge = "reset --hard ORIG_HEAD"
track = "branch --track"
unstage = reset HEAD
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
@mrflip
mrflip / maximum_battery_life.md
Created March 19, 2012 08:32
maximum battery life checklist -- use before a long plane flight

Max Battery Life Checklist

Here is a checklist to follow if you want maximum battery life -- for instance if you're about to get on a long plane flight.

10 hour battery life on a non-SSD Macbook Pro 17"

Low power use checklist

With power connected:

@tsxn26
tsxn26 / native_script_example.txt
Created June 23, 2011 22:12
Using Native Scripts in Elastic Search
1) Extend AbstractFloatSearchScript:
package com.example.elastic;
import org.elasticsearch.script.AbstractFloatSearchScript;
import static java.lang.Math.*;
public class MySearchScript extends AbstractFloatSearchScript {
@Override