Skip to content

Instantly share code, notes, and snippets.

View felipelssilva's full-sized avatar
🏠
Working from home

Felipe Luis felipelssilva

🏠
Working from home
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.

@t3dotgg
t3dotgg / try-catch.ts
Last active May 27, 2026 11:41
Theo's preferred way of handling try/catch in TypeScript
// Types for the result object with discriminated union
type Success<T> = {
data: T;
error: null;
};
type Failure<E> = {
data: null;
error: E;
};
@glenkusuma
glenkusuma / install-zsh-windows-git-bash.md
Last active May 22, 2026 21:23 — forked from fworks/install-zsh-windows-git-bash.md
Zsh / Oh-my-zsh on Windows Git Bash
@AnoRebel
AnoRebel / PullRefresh.vue
Created September 2, 2022 00:44
A Vue 3 `PullRefresh` component copied and fixed/enhanced since I couldn't find the original repo
<template>
<div class="pull-refresh" ref="root">
<div
class="pull-refresh__track"
:style="trackStyle"
@touchstart="onTouchStart"
@touchmove="onTouchMove"
@touchend="onTouchEnd"
@touchcancel="onTouchend"
>
@Coocla33
Coocla33 / widget.css
Last active December 15, 2023 23:05
Streamelements Custom Widget Template
@import url('https://fonts.googleapis.com/css2?family={{font_name}}:ital,wght@{{font_weight}}&display=swap');
* {
font-family: '{{font_name}}', cursive;
color: {{font_color}} !important;
font-size: {{font_size}}px !important;
font-weight: {{font_weight}} !important;
-webkit-text-stroke: {{font_border_size}}px {{font_border_color}};
}
@NickMcSweeney
NickMcSweeney / postgresql_plus_arch-linux.md
Last active May 28, 2026 13:03
Getting postgresql running on Arch Linux

Setup Postgresql

run postgresql with systemctl

Install postgres

latest

sudo pacman -S postgresql

specific version

find version & build from source

@gaearon
gaearon / index.html
Last active October 21, 2025 03:08
Multiple React components on a single HTML page
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Add React in One Minute</title>
</head>
<body>
<h2>Add React in One Minute</h2>
<p>This page demonstrates using React with no build tooling.</p>
@luisfc
luisfc / install nodejs, npm and gulp
Last active October 3, 2020 16:37
Install nodejs, npm and gulp ubuntu 16.04
sudo apt-get update
sudo apt-get install nodejs
sudo apt-get install npm
## Use n module from npm in order to upgrade node
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
@vidaaudrey
vidaaudrey / ie67891011-css-hacks.txt
Created June 19, 2016 20:52 — forked from ricardozea/ie67891011-css-hacks.txt
IE CSS hacks - IE6, 7, 8, 9, 10, 11
IE6 Only
==================
_selector {...}
IE6 & IE7
==================
*html or { _property: }
IE7 Only
==================
@stinoga
stinoga / console.js
Created December 27, 2014 22:18
Save console output to a file
(function(console){
console.save = function(data, filename){
if(!data) {
console.error('Console.save: No data')
return;
}
if(!filename) filename = 'console.json'