Skip to content

Instantly share code, notes, and snippets.

View conoro's full-sized avatar

Conor O'Neill conoro

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.

@sudoingX
sudoingX / qwen3.5_9b_thermodynamic_reasoning.md
Created March 11, 2026 16:39
Qwen 3.5 9B reasoning about thermodynamic computing on RTX 3060 12GB at 50 tok/s. Full thinking chain + output. Q4_K_M quant, 128K context.

Qwen 3.5 9B -- Thermodynamic Computing Reasoning Test

9 billion parameters reasoning about bleeding-edge physics on a $200 GPU. Full thinking chain visible. Nothing cherry-picked.

Hardware

Field Value
GPU RTX 3060 12GB
Model Qwen 3.5 9B Q4_K_M (5.3GB)
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@uubzu
uubzu / gist:8e33e9e792a4cc9b6e0f6777f4db0bf3
Last active December 30, 2025 10:17
Unchecking all checkboxes on twitter interest list
// For use on https://twitter.com/settings/your_twitter_data/twitter_interests
function uncheckAll() {
let inputs = document.querySelectorAll('input[type="checkbox"]');
let delay = 0
for (let i = 0; i < inputs.length; i++) {
if (inputs[i].checked) {
setTimeout(() => { inputs[i].click( new Event('change') ) ; console.log(i) }, delay);
delay += 1000;
} else {
console.log("Skipped " + i)
@jart
jart / rename-pictures.sh
Created December 12, 2023 15:24
Shell script for renaming all images in a folder
#!/bin/sh
# rename-pictures.sh
# Author: Justine Tunney <jtunney@gmail.com>
# License: Apache 2.0
#
# This shell script can be used to ensure all the images in a folder
# have good descriptive filenames that are written in English. It's
# based on the Mistral 7b and LLaVA v1.5 models.
#
# For example, the following command:
@adrienbrault
adrienbrault / llama2-mac-gpu.sh
Last active April 8, 2025 13:49
Run Llama-2-13B-chat locally on your M1/M2 Mac with GPU inference. Uses 10GB RAM. UPDATE: see https://twitter.com/simonw/status/1691495807319674880?s=20
# Clone llama.cpp
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
# Build it
make clean
LLAMA_METAL=1 make
# Download model
export MODEL=llama-2-13b-chat.ggmlv3.q4_0.bin
import network
import socket
import time
import struct
from machine import Pin
NTP_DELTA = 2208988800
host = "pool.ntp.org"
@sandyjmacdonald
sandyjmacdonald / WIFI_CONFIG.py
Last active July 3, 2022 10:40
An example of simple API to set the colour of the Pimoroni Inventor 2040's LEDs
SSID = ""
PSK = ""
@ritchieking
ritchieking / sqlcsv.sh
Created June 21, 2022 18:06
Wrapper for using SQLite on CSV files
sqlcsv() {
if [ $# -lt 2 ]
then
echo "USAGE: sqlcsv [filename.csv] [SQL]"
echo "In the SQL, refer to the data sourse as [filename]"
else
filename="$1"
dataname=${filename%????}
sqlite3 :memory: -cmd '.mode csv' -cmd ".import $filename $dataname" -cmd '.mode markdown' $2
fi