Skip to content

Instantly share code, notes, and snippets.

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.

@EvilFreelancer
EvilFreelancer / client.js
Last active September 26, 2022 07:43
Simple Socket.IO server and client on JavaScript
const PRIVATE_CHANNEL = 'channel_private';
const GLOBAL_CHANNEL = 'default';
var io = require('socket.io-client');
var socket = io.connect('http://localhost:8080');
var channel = null;
socket.on('connect', function () {
console.log('CONNECT');
@prog
prog / docker-compose.yml
Last active September 9, 2022 08:08
How to run service in docker-compose as current user
version: '3'
services:
greeter:
image: alpine:latest
volumes:

Построение UML диаграмм. Настройка PlantUML в PHPStorm.

Настройка PlantUML в PHPStorm.

  1. Устанавливаем плагин PlantUML в PHPStorm;
  2. Скачиваем Graphviz для Windows (https://graphviz.gitlab.io/_pages/Download/Download_windows.html), устанавливаем в каталог по умолчанию;
  3. Прописываем переменную окружения PATH в Windows 7 перейдем в Панель управления > Система > Дополнительные параметры системы > Дополнительно > Переменные среды > Изменим переменную path текущего пользователя c:\Program Files (x86)\Graphviz2.38\bin\
  4. Перезапускаем PHPStorm
@xperseguers
xperseguers / controller.php
Last active April 4, 2023 07:56
Upload files in TYPO3 from Frontend
/**
* Upload files.
*
* @return void
*/
public function uploadAction() {
$overwriteExistingFiles = TRUE;
$data = array();
$namespace = key($_FILES);
@cedricziel
cedricziel / DlrgSeminareConfigurationProvider.php
Created November 9, 2013 11:40
FluxForm Provider for Plugin forms - with fluid.
<?php
/**
* @package dlrg_seminare
* @subpackage Provider/Configuration
*/
namespace DLRG\DlrgSeminare\Provider\Configuration;
class DlrgSeminareConfigurationProvider