Skip to content

Instantly share code, notes, and snippets.

View lbenie's full-sized avatar

Lucien Bénié lbenie

View GitHub Profile
@lbenie
lbenie / llm-wiki.md
Created June 25, 2026 14:32 — 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.

Keybase proof

I hereby claim:

  • I am lbenie on github.
  • I am lbenie (https://keybase.io/lbenie) on keybase.
  • I have a public key whose fingerprint is 867E 10E9 24BB 7B81 62B9 3C76 4E70 7278 C64C 4A55

To claim this, I am signing this object:

@lbenie
lbenie / .gitconfig
Created May 3, 2017 14:42
git config
[user]
email = my.email
name = my.name
[core]
autocrlf = false
editor = code --wait
safecrlf = true
fscache = true
preloadindex = true
[gc]
@lbenie
lbenie / .jsbeautifyrc
Last active March 16, 2017 21:14
git-guppy and gulp tasks setup
{
"indent_size": 2,
"indent_char": " ",
"indent_with_tabs": false,
"eol": "\n",
"end_with_newline": false,
"indent_level": 0,
"preserve_newlines": true,
"max_preserve_newlines": 10,
"space_in_paren": false,
/**
* Opens a modal
* @param {Object} scope - an object to be merged with modal's scope
* @param {String} modalClass - (optional) class(es) to be applied to the modal
* @param {String} size - (optional) size to be applied to the modal
* @param {String} templateUrl - (optional) template to be applied to the modal
* @param {String} controller - (optional) controller to be applied to the modal
* @return {Object} - the instance $uibModal.open() returns
*/
function openModal(scope = {}, modalClass = 'modal-default', size = 'sm', templateUrl = 'components/modal/modal.html', controller = '') {