Skip to content

Instantly share code, notes, and snippets.

View heyfletch's full-sized avatar
🏠
Working from home

Joe Fletcher heyfletch

🏠
Working from home
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.

javascript:!function(){function e(e){return[{tag:"span",textContent:"People also ask"}].some(t=>{let{tag:r,textContent:o}=t,l=e.querySelector(`${r}:not([hidden])`);return l&&l.textContent.trim()===o})}let t=document.getElementById("rso"),r=document.querySelectorAll("em"),o={};r.forEach(t=>{let r=t.closest("#rso > div");if(r&&e(r))return;let l=t.textContent.trim().toLowerCase();if(l){let n=l.split(",").map(e=>e.trim());n.forEach(e=>{e&&(o[e]=(o[e]||0)+1)})}});let l=[["Bolded Terms","Count"]];for(let[n,i]of Object.entries(o))l.push([n,i]);let a=[["URL","Position","Title","Description","Terms","Count"]];if(t){let s=Array.from(t.children),c=0;s.forEach(t=>{var r;if(e(t)||!(r=t).querySelector("a[href]")&&!r.querySelector("h3"))return;c++;let o=t.querySelector("a[href]");if(!o)return;let l=o.href,n=t.querySelector("h3")?.textContent.trim()||"",i=t.querySelector(".kb0PBd > .VwiC3b > span:not(.LEwnzc)")?.textContent.trim()||"",s=t.querySelectorAll("em"),u={};s.forEach(e=>{let t=e.textContent.trim().toLowerCase();if(t
//
// Package Name: DAT
// Package URI: https://www.dat.com
// Subpackage: Stylesheet
// Author: Exemplifi
// Author URI: https://www.dat.com
// Description: Elementor fixes
// Version: 1.0
// License: Creative Commons 3.0 Attribution
// License URI: https://creativecommons.org/licenses/by/3.0/us/
<?php
/**
* @package elementor-extend.php
* @subpackage datdev
* @author Exemplifi
* @created 29/10/20 - 6:30 PM
* @license Creative Commons 3.0 Attribution
* @licenseurl https://creativecommons.org/licenses/by/3.0/us/
* @desc Enter description
* @link http://www.dat.com
:root {
--body-font-family: Sequel Sans, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
--heading-font-family: Sequel Sans, Times New Roman, Times, Times CY;
--heading-font-weight: 500;
--scale-factor-xs: 0.5;
--scale-factor-sm: 0.75;
--scale-factor-md: 0.8;
--scale-factor-lg: 1;
--scale-factor-xl: 1;
--vertical-margin-xs: 0.5rem;
@nntrn
nntrn / espn-api-list.md
Last active April 26, 2026 12:21
List of nfl endpoints for ESPN's API

List of NFL API Endpoints

This page has been updated a lot in the past 3 years. Older revisions you might like more than this one:

/*
*
* Start of disabling Search Functionality, in case the request blocker is not active
*
* see also: https://instance-factory.com/?p=1706#disableSearch
*/
function ifb_filter_query($query)
{
if (is_search()) {
@deckerweb
deckerweb / astra-remove-metaboxes-for-nonadmins.php
Last active June 10, 2021 06:07
Remove Meta Boxes on Post & Page Edit Screens from "Astra" Theme and "Astra Pro" Plugin for users who are not Administrators, so Editors and below. Inspired by user question: https://www.facebook.com/groups/wpastra/permalink/367143130421624/ -- below Code Snippet should go into "Code Snippets" plugin at best (please avoid functions.php)!
<?php
/** Do NOT include the opening php tag */
add_action( 'do_meta_boxes', 'ddw_remove_astra_metaboxes_for_non_admins' );
/**
* Remove Astra settings meta box for users that are not administrators
* Inspired by: https://www.facebook.com/groups/wpastra/permalink/367143130421624/?comment_id=367167440419193&comment_tracking=%7B%22tn%22%3A%22R1%22%7D
*
* @author David Decker - DECKERWEB
@Lwdthe1
Lwdthe1 / usaCities.json
Last active April 24, 2025 04:51
JSON of 5797+ USA Cities and Their States - Presented by https://www.ManyStories.com
[
{ "city": "Abbeville", "state": "Louisiana" },
{ "city": "Aberdeen", "state": "Maryland" },
{ "city": "Aberdeen", "state": "Mississippi" },
{ "city": "Aberdeen", "state": "South Dakota" },
{ "city": "Aberdeen", "state": "Washington" },
{ "city": "Abilene", "state": "Texas" },
{ "city": "Abilene", "state": "Kansas" },
{ "city": "Abingdon", "state": "Virginia" },
{ "city": "Abington", "state": "Massachusetts" },
@lukecav
lukecav / functions.php
Created January 10, 2018 03:22
Disable Elementor overview dashboard widget in WordPress
function disable_elementor_dashboard_overview_widget() {
remove_meta_box( 'e-dashboard-overview', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'disable_elementor_dashboard_overview_widget', 40);