Skip to content

Instantly share code, notes, and snippets.

View rimivan's full-sized avatar
🎯
Focusing

rimivan rimivan

🎯
Focusing
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.

@cmendible
cmendible / kubectl_ubuntu_wsl.sh
Created November 16, 2019 22:02
Install kubectl on ubuntu (WSL) and use kubectl config from Windows
#!/bin/bash
# Receives your Windows username as only parameter.
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.16.0/bin/linux/amd64/kubectl
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl
windowsUser=$1
@VidyasagarMSC
VidyasagarMSC / istioctl_windows10.md
Last active June 26, 2024 19:18
Setup Istio/istioctl on Windows 10

Download Istio

Set the environment variable

  • Copy the absolute path to the bin folder under the downloaded istio-<VERSION_NUMBER> folder e.g., C:/Users/Administrator/istio-1.0.5-win/istio-1.0.5/bin
  • In the Search on the taskbar, look and open "Edit environment variables for my account".
  • Under User variables, edit path environment variable and add a new entry pointing to the bin folder as copied above. Save the entries.
@aksuited
aksuited / optimize_jpegs.pl
Last active October 25, 2019 10:02
Perl Script to Optimize Jpegs Using JPEGTRAN or (if linked) MOZJPEG
#!/usr/bin/perl
#
# Lossless optimization for all JPEG files in a directory
# First Install & Link MOZJPEG
#Tested on Ubuntu 16.04 using pre-compiled binaries as per below:
#For 64bit:
#wget https://mozjpeg.codelove.de/bin/mozjpeg_3.2_amd64.deb
#dpkg -i mozjpeg_3.2_amd64.deb
#ln -s /opt/mozjpeg/bin/jpegtran /usr/bin/jpegtran
@addyosmani
addyosmani / workbox.md
Last active January 20, 2024 16:14
Workbox recipes

Workbox runtime caching recipes

Your Service Worker script will need to import in Workbox and initialize it before calling any of the routes documented in this write-up, similar to the below:

importScripts('workbox-sw.prod.v1.3.0.js');
const workbox = new WorkboxSW();

// Placeholder array populated automatically by workboxBuild.injectManifest()