Skip to content

Instantly share code, notes, and snippets.

View luisdelarosa's full-sized avatar

Louie de la Rosa luisdelarosa

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.

sudo apt update
sudo apt install build-essential
asdf plugin-add rust https://github.com/asdf-community/asdf-rust.git
asdf install rust
@luisdelarosa
luisdelarosa / K Factor Test PETG.gcode
Created March 10, 2019 05:26
Linear advance K Factor Test for use with PETG filament
;K Line Test created by Sebastianv650
; from https://mattshub.com/2017/10/02/linear-advance/
; updated for PETG temperatures by luisdelarosa (@louielouie)
; hotend 240C
; bed 85C
M107
M83 ; extruder relative mode
M104 S240 ; set extruder temp
M140 S85 ; set bed temp
@luisdelarosa
luisdelarosa / gist:4d893d851793a7d13112cc3288cca07d
Created January 29, 2017 22:38
Testing Ansible communication
ansible all -m ping
ansible all -a "/bin/echo hello"
$ sudo apt-get install software-properties-common
$ sudo apt-add-repository ppa:ansible/ansible
$ sudo apt-get update
$ sudo apt-get install ansible
@luisdelarosa
luisdelarosa / ansible-bootstrap-ubuntu-16.04.yml
Last active January 29, 2017 22:30 — forked from gwillem/ansible-bootstrap-ubuntu-16.04.yml
Get Ansible to work on bare Ubuntu 16.04 without python 2.7
# Add this snippet to the top of your playbook. We'll refer to this as "your-playbook.yml"
# It will install python2 if missing (but checks first so no expensive repeated apt updates)
# gwillem@gmail.com
# Assumes that you are not running as root
# Run via: "ansible-playbook --ask-become-pass your-playbook.yml"
# v1.1 by luis@luisdelarosa.com / @louielouie
- hosts: all
gather_facts: False
package Reddit;
import java.util.LinkedList;
import java.util.List;
import com.google.gson.Gson;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
@luisdelarosa
luisdelarosa / count_cocoapods_subspecs.sh
Created April 5, 2014 12:32
Count the subspecs for all CocoaPods. Execute this in a local clone of https://github.com/CocoaPods/Specs
grep -R subspec * | cut -d' ' -f1 | uniq -c | sort
package com.example.frequencytest;
import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.media.AudioFormat;
import android.media.AudioRecord;
import android.media.MediaRecorder;
pod 'RestKit', :podspec => 'local/path/to/RestKit.podspec'