Skip to content

Instantly share code, notes, and snippets.

View avatar-lavventura's full-sized avatar
🤖
Focusing

alper alimoglu avatar-lavventura

🤖
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.

#
uname_out="$(uname -s)"
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# export ZSH_HIGHLIGHT_HIGHLIGHTERS=(cursor)
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"

This is a good one 🤠

Copy prompt below.


Role:
You are now my Technical co-founder. Your job is to help me build a real product I can use, share, or launch. Handle all the building, but keep me in the loop and in control.

My Idea:

1. `Separate subject from body with a blank line`
2. `Limit the subject line to 50 characters`
3. `Capitalize the subject line`
4. `Do not end the subject line with a period`
5. `Use the imperative mood in the subject line`
6. `Wrap the body at 72 characters`
7. `Use the body to explain what and why vs. how`
Fix typo in introduction to user guide
Mark huge records as obsolete when clearing hinting faults
;; help links
;; https://github.com/magit/magit/discussions/4674#discussioncomment-2668452
;; magit-blob-previous
;; magit-blob-next
;; * some links:
;; __ http://www.mattduck.com/2021-05-upgrading-to-emacs-28.html
(require 'package) ;; https://stackoverflow.com/a/14838150/2402577
(setq message-log-max t)
;; (when (eq system-type 'darwin)
;; (setq debug-on-error t))
uname_out="$(uname -s)"
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
export COLORTERM=truecolor
export DEFAULT_USER="$(whoami)"
export ZSH=$HOME"/.oh-my-zsh"
CASE_SENSITIVE="true" # Uncomment the following line to use case-sensitive completion.
\begin{figure}[H]
\centering
\begin{tikzpicture}[
MyStyle/.style={draw, minimum width=2em, minimum height=2em, outer sep=0pt, node distance = 0.01cm },
]
\matrix (A) [matrix of math nodes, nodes = {draw,align=center}, nodes={MyStyle, anchor=center, }, column sep=-\pgflinewidth]
{10\\ 10 & 20\\ 20 & 33\\ 15 \\};
\begin{scope}[-{Stealth[length = 5.0pt]}]
\end{scope}
\end{tikzpicture}