Skip to content

Instantly share code, notes, and snippets.

View pchemguy's full-sized avatar

PChemGuy pchemguy

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.

@mattmc3
mattmc3 / modern_sql_style_guide.md
Last active May 2, 2026 00:40
Modern SQL Style Guide
layout default
author mattmc3
title Modern SQL Style Guide
revision 2019-01-17
version 1.0.1
description A guide to writing clean, clear, and consistent SQL.

Modern SQL Style Guide

@mlocati
mlocati / win10colors.cmd
Last active May 24, 2026 07:43
ANSI Colors in standard Windows 10 shell
@echo off
setlocal
call :setESC
cls
echo %ESC%[101;93m STYLES %ESC%[0m
echo ^<ESC^>[0m %ESC%[0mReset%ESC%[0m
echo ^<ESC^>[1m %ESC%[1mBold%ESC%[0m
echo ^<ESC^>[4m %ESC%[4mUnderline%ESC%[0m