Skip to content

Instantly share code, notes, and snippets.

View hackerceo's full-sized avatar
💭
Always B Coding...

Nick Benik hackerceo

💭
Always B Coding...
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.

@beufordy3k
beufordy3k / Add_Hash_to_context_menu.reg
Last active May 24, 2024 21:58
How to Add "Hash" Windows 10 Context Menu Option for any file... using pwsh.exe
Windows Registry Editor Version 5.00
; Created by: Shawn Brink
; Created on: March 5th 2017
; Updated by: Rufus Harvey
; Updated on: December 9, 2020
; Tutorial: https://www.tenforums.com/tutorials/78681-add-file-hash-context-menu-windows-8-10-a.html
; Adding gist link in case you got this from somewhere else :) : https://gist.github.com/beufordy3k/e6f39335cbed950d41be17ea1f17f5af
# Email SQLite Backup Hack
# 2015
# Lewis Cowles
# Nasty Python 2.7 Compatible E-Mail Backup (Once done)
import imaplib, email, sqlite3
from email.utils import *
from datetime import datetime
# Setup DB
@indeyets
indeyets / merge.php
Created May 20, 2014 08:20
EasyRDF graph-merge example
<?php
require '../vendor/autoload.php';
$graph1 = new EasyRdf_Graph();
$graph1->addResource('http://example.org/1', 'dc:title', 'Hello, world!');
$graph1->addResource('http://example.org/2', 'dc:description', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.');
$graph2 = new EasyRdf_Graph();
$graph2->addResource('http://example.org/1', 'dc:description', 'Some boring description');
$graph2->addResource('http://example.org/2', 'dc:title', 'Hello, second world!');