Acronym Definition
CIG = Context Inferenced Generation
A generation paradigm where curated context vaults are accessed by inference engines to retrieve relevant knowledge, which then drives multimodal content generation.
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.
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.
| import UIKit | |
| import ImageCaptureCore | |
| import MobileCoreServices | |
| class ViewController: UIViewController { | |
| var deviceFinder = DeviceFinder() | |
| override func viewDidLoad() { | |
| super.viewDidLoad() |
| // Copyright © 2019 Simon Strandgaard. All rights reserved. | |
| import SwiftyBeaver | |
| public let log = SwiftyBeaver.self | |
| extension BaseDestination.LevelColor { | |
| mutating func applyDefaultStyle() { | |
| debug = "🏐 " | |
| info = "🏐 " | |
| verbose = "🏐 " |
| http-server: | |
| host-port: ":5778" | |
| processor: | |
| jaeger-binary: | |
| server-host-port: ":6832" | |
| jaeger-compact: | |
| server-host-port: ":6831" | |
| zipkin-compact: | |
| server-host-port: ":5775" |
| #!/bin/bash | |
| # Run this script like this: | |
| # curl http://bit.ly/git-me | sh | |
| cat > ~/.gitconfig <<EOF | |
| [user] | |
| name = mikeumus | |
| email = mikeumus@gmail.com | |
| [alias] | |
| co = checkout |
| import Foundation | |
| class MyService: NSObject, MyServiceProtocol { | |
| func upperCaseString(_ string: String, withReply reply: @escaping (String) -> Void) { | |
| let response = string.uppercased() | |
| reply(response) | |
| } | |
| } |
| @Configuration | |
| public class MultiConnectionSupport { | |
| @Value("${server.port}") | |
| private int serverPort; | |
| @Value("${server.http.port}") | |
| private int httpServerPort; | |
| @Bean | |
| public EmbeddedServletContainerFactory servletContainer() { |
$ sudo -u postgres -i or sudo sudo -u postgres psql <-- use this one in C9$ sudo -s then sudo -u postgres psql or sudo su - postgres$ createuser -d -P -s starseed| # This is just a cheat sheet: | |
| # On production | |
| sudo -u postgres pg_dump database | gzip -9 > database.sql.gz | |
| # On local | |
| scp -C production:~/database.sql.gz | |
| dropdb database && createdb database | |
| gunzip < database.sql.gz | psql database |