Skip to content

Instantly share code, notes, and snippets.

View hivian's full-sized avatar

Nosco hivian

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.

eufy:
image: bropat/eufy-security-ws
container_name: eufy
restart: unless-stopped
environment:
- USERNAME=email
- PASSWORD=pass
- COUNTRY=country
ports:
- 3000:3000
@vnl
vnl / MediaDownloader.yaml
Created October 5, 2021 20:10
Docker-compose file which shows how to set up Sonarr, Radarr, Prowlarr, Lidarr, Jackett, QBittorrent and a VPN container so that all all traffic from the containers is routed through the VPN. Also includes get_iplayer containers, which is not routed through the VPN.
version: "3"
services:
vpn:
image: qmcgaw/gluetun
container_name: vpn
cap_add:
- NET_ADMIN
ports:
- 8888:8888/tcp # HTTP proxy
- 8388:8388/tcp # Shadowsocks
@jc-torresp
jc-torresp / raspberry-pi-plex-server.md
Last active October 25, 2025 23:27
Setup a Raspberry Pi Plex Media Server (Including external storage media and Windows to Raspbian migration)

Raspberry Pi Plex Server

Installation

Ensure our operating system is entirely up to date:

sudo apt-get update
sudo apt-get upgrade
@twogood
twogood / DaggerViewModelFactory.kt
Created January 25, 2019 22:32
Android Jetpack ViewModel, Dagger 2, Kotlin coroutines
package example
import android.arch.lifecycle.ViewModel
import android.arch.lifecycle.ViewModelProvider
import dagger.Binds
import dagger.MapKey
import dagger.Module
import javax.inject.Inject
import javax.inject.Provider
import kotlin.reflect.KClass
@nanodeath
nanodeath / RecyclerViewAdapterOnListChangedCallback.kt
Last active August 7, 2020 08:14
Bind your Android data-binding ObservableList to a RecyclerView
import android.databinding.ObservableList
import android.support.v7.widget.RecyclerView
/**
* Links an [ObservableList] to a [RecyclerView], so that whenever the list is changed, the view is
* updated.
*/
class RecyclerViewAdapterOnListChangedCallback<T>(
private val adapter: RecyclerView.Adapter<*>
) : ObservableList.OnListChangedCallback<ObservableList<T>>() {
@klarson2
klarson2 / ZoomLayout.java
Last active January 5, 2023 00:04 — forked from anorth/ZoomLayout.java
Pinch-zoomable Android frame layout -- modified to center the zoom based on the user's gesture
package au.id.alexn;
import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
import android.view.ScaleGestureDetector;
import android.view.View;
import android.widget.FrameLayout;
@Petrakeas
Petrakeas / SynchronousHandler.java
Last active August 16, 2024 04:24
Android - Posts a runnable on a handler's thread and waits until it has finished running.
import android.os.Handler;
import android.os.Looper;
/**
* A helper class that provides more ways to post a runnable than {@link android.os.Handler}.
*
* Created by Petros Douvantzis on 19/6/2015.
*/
public class SynchronousHandler {
@anorth
anorth / ZoomLayout.java
Created March 29, 2014 00:06
Pinch-zoomable Android frame layout
package au.id.alexn;
import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
import android.view.ScaleGestureDetector;
import android.view.View;
import android.widget.FrameLayout;