Skip to content

Instantly share code, notes, and snippets.

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.

function LoadAssembly {
[CmdletBinding()]
param (
[Parameter(Mandatory=$true, ValueFromPipeline=$true)]
[string[]]$asmNames,
[string]$baseDir = $PSScriptRoot
)
begin {
$domain = [System.AppDomain]::CurrentDomain
[Reflection.Assembly[]]$asms = $domain.GetAssemblies()
@geeksville
geeksville / gist:d8ec1fc86507277e123ebf507f034fe9
Created March 20, 2025 11:26
Using Ollama on an Asus Flow Z13 (128GB RAM) and Linux

Using Ollama on an Asus Flow Z13 (128GB RAM) and Linux

Environment setup

I used Bazzite Linux because it seems to have the best 395+ CPU support right now. It also installs and uses podman by default. But the following instructions should work on any linux if:

  • You have (very) recent AMD kernel drivers installed
  • Podman or Docker installed (I think the instructions before should also work with docker if you just change the tool name)
  • Go into the BIOS and bump up the amount of RAM given over to the GPU side by default (I used 64GB but you do you)
name explain-diff-html
description Use when the user asks for a rich explanation of a code change, diff, branch, or PR. Produces HTML output.

Explain Diff

Please make me a rich, interactive explanation of the specified code change.

It should have these sections:

@KarrieCarder
KarrieCarder / ONE PIECE Bounty Rush Hack and Cheats
Created March 14, 2019 16:07
ONE PIECE Bounty Rush Hack and Cheats
ONE PIECE Bounty Rush Hack will let you to buy all items for free. Below you will see all the cheats needed to hack ONE PIECE Bounty Rush These Cheats for ONE PIECE Bounty Rush work on all iOS and Android devices. You will also not need a jailbreak or rooted phone. Using our website you no longer need to download a hack tool, so it is safer. If you don’t know how to use the hack for ONE PIECE Bounty Rush you will see instructions below.
Anti-Ban Protection : Yes
Undetectable Script : Yes
Tested and works perfectly.
ONE PIECE Bounty Rush Online Hack Features:
Add Unlimited Diamonds.
@laixintao
laixintao / Git常用命令.sh
Last active August 7, 2026 03:28
一些常用的git命令 速查表
------------------------------commit------------------------------
$ git status # 检查文件当前的状态
$ git add [文件名] # 追踪新的文件
$ git diff --cached # 若要看已经暂存起来的文件和上次提交时的快照之间的差异
$ git commit -m "Story 182: Fix benchmark" # 用一行命令提交更新
$ git commit -a -m 'added new benchmarks' # 跳过add命令直接提交
$ git rm --cached log.log # 从git仓库中删除不小心追踪的文件(用于gitignore之前追踪的文件)
$ git mv file_from file_to # 移动文件/重命名文件
------------------------------branch------------------------------
@FindHao
FindHao / backup.sh
Last active August 7, 2026 03:12
vps backup
#!/usr/bin/env bash
# This script is based on Copyright (C) 2013 - 2020 Teddysun <i@teddysun.com>
# Modified by FindHao <find@findhao.net>
# https://findhao.net/easycoding/2605.html
# You must modify the config before run it!!!
# [[ $EUID -ne 0 ]] && echo "Error: This script must be run as root!" && exit 1
@Kartones
Kartones / postgres-cheatsheet.md
Last active August 7, 2026 02:58
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)