Skip to content

Instantly share code, notes, and snippets.

View hongsw's full-sized avatar
๐Ÿ•น๏ธ
Focusing

Seungwoo hong hongsw

๐Ÿ•น๏ธ
Focusing
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.

Comparison: Agent Browser Protocol vs Vercel agent-browser

Two browser automation solutions purpose-built for AI agents, both born in January 2026, taking radically different architectural approaches.

Overview

Agent Browser Protocol (ABP) Vercel agent-browser
Repo theredsix/agent-browser-protocol vercel-labs/agent-browser
Approach Chromium fork with engine-level integration Rust CLI wrapping a Playwright/Node.js daemon
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
flowchart TD
    %% ์ค‘์‹ฌ ๋…ธ๋“œ
    OSS[์˜คํ”ˆ์†Œ์Šค ์†Œํ”„ํŠธ์›จ์–ด ๊ต์œก ๊ฒฝ๋กœ] 
    
    %% ์„œ๋ธŒ๊ทธ๋ž˜ํ”„ ๋ ˆ๋ฒจ ์ •์˜
    subgraph ๋ ˆ๋ฒจ1[๋ ˆ๋ฒจ 1 - ํ•ต์‹ฌ ๊ธฐ๋ฐ˜ ๊ธฐ์ˆ ]
        direction TB
        TERMINAL[ํ„ฐ๋ฏธ๋„ ๊ธฐ๋ณธ]
        SHELL[์‰˜ ์Šคํฌ๋ฆฝํŠธ]
@hongsw
hongsw / From_Mathematical_Foundations_to_Modern_AI_Transformer_Evolution_Diagram.md
Last active April 5, 2025 05:49
"์ž์—ฐ์–ด ์ฒ˜๋ฆฌ์˜ ๋Œ€์ˆ˜ํ•™์  ๊ธฐ๋ฐ˜๋ถ€ํ„ฐ ํ˜„๋Œ€ ์ธ๊ณต์ง€๋Šฅ๊นŒ์ง€: Transformer ์•„ํ‚คํ…์ฒ˜์˜ ์ง„ํ™”์™€ ์˜ํ–ฅ๋ ฅ์— ๊ด€ํ•œ ํ†ต์‹œ์  ์กฐ๋ง๋„" ์ด ์ด๋ฆ„์€ ๋‹ค์ด์–ด๊ทธ๋žจ์ด ๋‹ค๋ฃจ๋Š” ๊ด‘๋ฒ”์œ„ํ•œ ์‹œ๊ฐ„์  ์ŠคํŽ™ํŠธ๋Ÿผ(๋Œ€์ˆ˜ํ•™์  ๊ธฐ๋ฐ˜๋ถ€ํ„ฐ ํ˜„๋Œ€ AI๊นŒ์ง€), ์ค‘์‹ฌ ์ฃผ์ œ(Transformer ์•„ํ‚คํ…์ฒ˜), ๊ทธ๋ฆฌ๊ณ  ๋‹ค์ด์–ด๊ทธ๋žจ์˜ ์„ฑ๊ฒฉ(๋‹ค์–‘ํ•œ ๊ธฐ์ˆ ๊ณผ ๋ชจ๋ธ์˜ ๋ฐœ์ „ ๊ณผ์ •๊ณผ ์˜ํ–ฅ ๊ด€๊ณ„๋ฅผ ๋ณด์—ฌ์ฃผ๋Š” ํ†ต์‹œ์  ์กฐ๋ง)์„ ๋ชจ๋‘ ํฌ๊ด„ํ•ฉ๋‹ˆ๋‹ค.
flowchart TB
    subgraph "์ž์—ฐ์–ด ์ฒ˜๋ฆฌ ์ „ํ†ต์  ์ ‘๊ทผ๋ฒ• (1950s~1980s)"
        RULE["๊ทœ์น™ ๊ธฐ๋ฐ˜ ์‹œ์Šคํ…œ<br>- ๋ฌธ๋ฒ• ๊ทœ์น™ ์ˆ˜๋™ ์ •์˜<br>- ์ „๋ฌธ๊ฐ€ ์ง€์‹ ๊ธฐ๋ฐ˜<br>- ํ™•์žฅ์„ฑ ํ•œ๊ณ„"]
        SYM["๊ธฐํ˜ธ์ฃผ์˜ ์ ‘๊ทผ๋ฒ•<br>- ํ˜•์‹ ์–ธ์–ด ๋ฐ ๋ฌธ๋ฒ•<br>- ๋…ผ๋ฆฌ ๊ธฐ๋ฐ˜ ์ถ”๋ก <br>- ์• ๋งค์„ฑ ์ฒ˜๋ฆฌ ์–ด๋ ค์›€"]
        PARSE["๊ตฌ๋ฌธ ๋ถ„์„ ํŠธ๋ฆฌ<br>- ๋ฌธ์žฅ ๊ตฌ์กฐ ํ‘œํ˜„<br>- ๊ณ„์ธต์  ๋ถ„์„<br>- ์˜๋ฏธ ํŒŒ์•… ์ œํ•œ"]
    end

    subgraph "์ˆ˜ํ•™์  ๊ธฐ๋ฐ˜"
        subgraph "์„ ํ˜•๋Œ€์ˆ˜ํ•™ (Linear Algebra)"
@hongsw
hongsw / update-asdf-0.16-zshrc.sh
Created March 21, 2025 02:09
Purpose of the Script This script automates the configuration changes required when upgrading to ASDF version 0.16.0 from earlier versions. The purpose is to: Safely back up the user's existing .zshrc configuration file Remove any outdated ASDF-related configuration lines Add the new required environment variables and PATH modifications for ASDFโ€ฆ
#!/bin/bash
# Create backup filename with current date and time
BACKUP_FILE=~/.zshrc.backup.$(date +%Y%m%d%H%M%S)
# Backup original file
cp ~/.zshrc "$BACKUP_FILE"
echo "Existing .zshrc file has been backed up to $BACKUP_FILE"
# Remove existing ASDF-related settings and create new file
@willccbb
willccbb / grpo_demo.py
Last active July 10, 2026 23:01
GRPO Llama-1B
# train_grpo.py
#
# See https://github.com/willccbb/verifiers for ongoing developments
#
"""
citation:
@misc{brown2025grpodemo,
title={Granular Format Rewards for Eliciting Mathematical Reasoning Capabilities in Small Language Models},
author={Brown, William},
@hongsw
hongsw / main.dart
Last active September 12, 2023 15:54
dart string functions
void main() {
var hello = 'Hello, ๐ŸŒ!';
print(hello.toUpperCase()); // Output: "HELLO, ๐ŸŒ!"
hello = 'Hello, ๐ŸŒ!';
print(hello.toLowerCase()); // Output: "hello, ๐ŸŒ!"
hello = ' Hello, ๐ŸŒ! ';
print(hello.trim()); // Output: "Hello, ๐ŸŒ!"
@hongsw
hongsw / main.dart
Last active May 24, 2023 01:18
TextFormField + Class ์˜ˆ์‹œ
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatefulWidget {
@override
State<MyApp> createState() => _MyAppState();
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatefulWidget {
@override
State<MyApp> createState() => _MyAppState();