Skip to content

Instantly share code, notes, and snippets.

View quemasandy's full-sized avatar

Andrés Muñoz quemasandy

View GitHub Profile
@quemasandy
quemasandy / llm-wiki.md
Created May 3, 2026 13:30 — forked from karpathy/llm-wiki.md
llm-wiki

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.

@quemasandy
quemasandy / aws-cdk-new-bootstrap.sh
Last active July 11, 2022 01:28
aws-cdk-new-bootstrap
env CDK_NEW_BOOTSTRAP=1 npx cdk bootstrap \
--cloudformation-execution-policies \
arn:aws:iam::aws:policy/AdministratorAccess \
aws://accountId/us-east-1
@quemasandy
quemasandy / s3-aws-set-cache-control
Created July 8, 2022 20:55
S3 - AWS - Configuring Cache Control
# Configuring Cache Control for JS/CSS Files (1 year = 31536000 sec)
aws s3 cp \
s3://happy-serverless-test-hosting/ s3://happy-serverless-test-hosting/ \
--exclude '*' \
--include '*.css' --include '*.js' \
--cache-control 'max-age=31536000, public' \
--recursive \
--metadata-directive REPLACE --acl public-read
# Configuring Cache Control for Images (1 Week = 604800 sec)