Skip to content

Instantly share code, notes, and snippets.

View oracleyue's full-sized avatar

Zuogong Yue oracleyue

  • School of Electrical Engineering and Telecommunications
  • University of New South Wales Kensington NSW 2052 AUSTRALIA
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.

"$schema" = 'https://starship.rs/config-schema.json'
format = """
[](red)\
$os\
$username\
[](bg:peach fg:red)\
$directory\
[](bg:yellow fg:peach)\
$git_branch\
@spideynolove
spideynolove / Guide.md
Last active June 18, 2026 08:32
Claude Code Multi-Provider Setup

Claude Code Multi-Provider Setup Guide

Overview

Claude Code is a powerful command-line interface that allows developers to interact with Anthropic's Claude AI models for coding assistance. This guide provides two battle-tested methods to configure Claude Code to work with multiple LLM providers beyond just Anthropic, including models from DeepSeek, z.ai (GLM), Kimi, and OpenRouter.

This empowers you to switch between the best model for any given task without ever leaving your terminal. Two Approaches to Flexibility

  • Shell Functions: A simple, lightweight, and robust method for switching providers before starting a session. Perfect for most use cases.
@ikrishagarwal
ikrishagarwal / setup-zsh-in-codespaces.md
Last active July 2, 2026 19:57
Setup starship, zsh suggestions and syntax highlight for your codespaces.
@glowinthedark
glowinthedark / bgl2appledict.sh
Created November 23, 2020 12:20
Babylon BGL to AppleDict converter
#!/usr/bin/env bash
shopt -s nocasematch
shopt -s nocaseglob
output=`echo ${1} | sed 's/.[bB][gG][lL]//'`
python3 ~/projects/pyglossary/pyglossary.pyw --read-format=BabylonBgl --read-options=resPath=OtherResources --write-format=AppleDict "$1" "$output"
cd $output
make
@idleberg
idleberg / sublime-text-macos-context-menu.md
Last active December 25, 2025 16:01 — forked from vincentmac/sublime-text-osx-context-menu.md
“Open in Sublime Text” in macOS context-menu

This list has been updated for Big Sur (and later). Since I don't use these versions, this guide might still need further improvements. For older macOS versions, please see this older revision.

Open in Sublime Text

  • Open Automator
  • Quick Action
  • Set “Service receives selected” to files or folders in any application
  • Add a Run Shell Script action
  • Set the script action to /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl -n "$@"
  • Set “Pass input” to as arguments
# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.
@hahuang65
hahuang65 / Makefile
Last active October 16, 2025 07:41
Beginning OpenGL Development on OS X: Post 1 - 5/7/2014
# OBJS specifies which files to compile as part of the project
OBJS = main.cpp
# CC specifies which compiler we're using
CC = g++
# INCLUDE_PATHS specifies the additional include paths we'll need
INCLUDE_PATHS = -I/usr/local/include -I/opt/X11/include
# LIBRARY_PATHS specifies the additional library paths we'll need
@rpmuller
rpmuller / Crash Course v0.5.ipynb.json
Last active November 24, 2022 09:14
Crash Course in Python for Scientists
This file has been truncated, but you can view the full file.
{
"metadata": {
"name": "",
"signature": "sha256:a04c38d9604adb7eb9ca89860dfa1ef72db66037cc2c07c391ef8e67a31f9254"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
@doitian
doitian / yasnippet-popup-isearch-prompt.el
Last active October 2, 2015 12:48
Use popup.el in yasnippet
(require 'popup)
(require 'yasnippet)
;; add some shotcuts in popup menu mode
(define-key popup-menu-keymap (kbd "M-n") 'popup-next)
(define-key popup-menu-keymap (kbd "TAB") 'popup-next)
(define-key popup-menu-keymap (kbd "<tab>") 'popup-next)
(define-key popup-menu-keymap (kbd "<backtab>") 'popup-previous)
(define-key popup-menu-keymap (kbd "M-p") 'popup-previous)