Skip to content

Instantly share code, notes, and snippets.

View otiai10's full-sized avatar
👋

Hiromu OCHIAI otiai10

👋
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.

I unexpectedly had to quit my previous job and am now in search of a new one. If you are interested in hiring me or have leads, I would very much appreciate it if you could contact me at my ID + gmail.

Past experiences

https://lestrrat.github.io/

During 2000-2019, I worked as a backend software engineer, writing anything from small tools to servers handling billions of requests. Now I focus on writing software with Go. During 2019-2024, I worked as TechPR, acting to promote my employer to the outside engineering community, as well as enabling and otherwise making internal engineers happier. I still wrote code for FOSS, but not for a living.

I have 15+ years experience writing about programming in commercial publishing.

@whiler
whiler / hmac-sha256.sh
Last active October 3, 2024 08:43
hmac sha256 encode with url safe base64 in bash shell
$ echo -en "message" | openssl dgst -sha256 -hmac "key" -binary | base64 | sed -e 's/+/-/g' -e 's/\//_/g' | tr -d =
bp7ym3X__Ft6uuUn1Y_a2y_kLnIZARl2kXNDBl9Y7Uo

明日の下書き


これはなに

  • 高円寺.dev #3 用の資料 https://koenji.connpass.com/event/160886/
  • フロントエンド専門じゃない人向けの、フロントエンドの最先端〜やや未来の話です
  • このレイヤーでは Node.js を使うべき/使うと強いという部分がありますが、他言語を否定しているわけではありません。むしろ他言語でこのアーキテクチャを模倣してほしいという話です。
@Daniel-ltw
Daniel-ltw / from.yaml
Last active August 25, 2023 21:11
Github Actions repository_dispatch example
name: Build Artifacts
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
@ymotongpoo
ymotongpoo / feedback.md
Created September 10, 2018 06:55
go2 generics フィードバックの例

基本的には良いと思うが、丸括弧を使用すると可読性が下がる気がするので、次のような形に変更してもらいたい。

func Foo[type T](t T) {
  SomeProcess(T)
  AnotherProcess(T)
}
@mimikun
mimikun / image_post_manual.md
Last active June 20, 2024 09:30
MastodonAPIの仕様など

Mastodon API をcURLで叩いてみる

今回実験に使うMastodonインスタンスは自分のインスタンスにしました。 多分他のインスタンスでもやり方は同じだと思います。

まずはアプリケーションを登録しないといけないので登録します。

Mastodon APIの叩き方を見て作業します。

環境

@pteich
pteich / main.go
Last active May 30, 2024 02:57
Example for using go's sync.errgroup together with signal detection signal.NotifyContext to stop all running goroutines
package main
import (
"context"
"errors"
"fmt"
"os/signal"
"syscall"
"time"
@otiai10
otiai10 / accounts-otiai10.md
Last active November 4, 2025 03:50
otiai10(落合展)の銀行口座です
三菱東京UFJ銀行
京都支店 431
普通預金 3241758
落合 展 (オチアイ ヒロム)
@davideast
davideast / naked-import.js
Created March 21, 2017 17:49
Firebase ES2015 imports
import * as firebase from 'firebase/app'; // Provides firebase-app.js only
import 'firebase/auth'; // Not named, just naked
const app = firebase.initializeApp({ });
console.log(app.auth()); // auth object
console.log(app.database()); // undefined