Skip to content

Instantly share code, notes, and snippets.

View bmentges's full-sized avatar

Bruno Carvalho bmentges

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.

@jeremy
jeremy / schema.xml
Created April 2, 2011 00:53
Basecamp Solr schema
<?xml version="1.0" encoding="UTF-8" ?>
<schema name="basecamp" version="1.3">
<types>
<!-- indexed/stored verbatim -->
<fieldType name="string" class="solr.StrField" sortMissingLast="true" omitNorms="true" omitTermFreqAndPositions="true"/>
<!-- "true" or "false" -->
<fieldType name="boolean" class="solr.BoolField" sortMissingLast="true" omitNorms="true" omitTermFreqAndPositions="true"/>
<!-- binary data, base64 -->
@bmentges
bmentges / transliterate.js
Created August 20, 2009 21:03
Transliteração: javascript, python, ruby
/* requires jQuery 1.3.2 minimum */
$.trocaAcentosECaracteresEspeciais = function (texto) {
var afrom = "á,à,ã,â,ä,Á,À,Ã,Â,Ä";
var efrom = "é,è,ê,ë,É,È,Ê,Ë";
var ifrom = "í,ì,î,ï,Í,Ì,Î,Ï";
var ofrom = "ó,ò,õ,ô,ö,Ó,Ò,Õ,Ô,Ö";
var ufrom = "ú,ù,û,ü,Ú,Ù,Û,Ü";
var outrosfrom = "ñ,Ñ,ç,Ç,&,@";
var from = afrom + "," + efrom + "," + ifrom + "," + ofrom + "," + ufrom + "," + outrosfrom;