Skip to content

Instantly share code, notes, and snippets.

View Amadeeus's full-sized avatar

Amadeus Oertel Amadeeus

  • ETH Zürich
  • Zürich
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.

@briansunter
briansunter / macwhisper-prompt.txt
Last active June 5, 2026 14:38
Macwhisper dictation cleanup prompt
You clean up a raw dictation transcript. Follow these rules exactly:
1. Output format
• Output only the cleaned-up transcript text.
• Do not add headings, explanations, confirmations, or any other extra words.
2. Spelling, capitalization, and grammar
• Fix obvious spelling, capitalization, and grammar errors.
• Preserve the original meaning and wording as much as possible.
• Use standard sentence capitalization when boundaries are clear from context (even if the speaker did not say “period”).
3. Spoken punctuation → symbols (when used as punctuation)
• When the words are used as punctuation, convert:
@SunnyRaj
SunnyRaj / configure_muliple_gcc.sh
Last active January 7, 2026 00:44
Configure multiple GCC versions on ubuntu
#!/usr/bin/env bash
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt update
sudo update-alternatives --remove-all gcc
sudo update-alternatives --remove-all g++
sudo apt-get install -y gcc-4.8 g++-4.8 gcc-4.9 g++-4.9 gcc-5 g++-5 gcc-6 g++-6 gcc-7 g++-7
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 10
@macmladen
macmladen / exclude-rsync.sh
Last active December 5, 2024 07:14
rsync file exclude patterns
# /dir/ means exclude the root folder /dir
# /dir/* means get the root folder /dir but not the contents
# dir/ means exclude any folder anywhere where the name contains dir/
# Examples excluded: /dir/, /usr/share/mydir/, /var/spool/dir/
# /dir means exclude any folder anywhere where the name contains /dir
# Examples excluded: /dir/, /usr/share/directory/, /var/spool/dir/
# /var/spool/lpd//cf means skip files that start with cf within any folder within /var/spool/lpd
#
# include, +
# exclude, -
@adamawolf
adamawolf / Apple_mobile_device_types.txt
Last active June 23, 2026 07:43
List of Apple's mobile device codes types a.k.a. machine ids (e.g. `iPhone1,1`, `Watch1,1`, etc.) and their matching product names
i386 : iPhone Simulator
x86_64 : iPhone Simulator
arm64 : iPhone Simulator
iPhone1,1 : iPhone
iPhone1,2 : iPhone 3G
iPhone2,1 : iPhone 3GS
iPhone3,1 : iPhone 4
iPhone3,2 : iPhone 4 GSM Rev A
iPhone3,3 : iPhone 4 CDMA
iPhone4,1 : iPhone 4S