Nathaniel
All tags

#PostgreSQL

6 posts tagged with "PostgreSQL"

Benchmarking our new Bun + Hono LLM gateway (and cutting CI from 18 min to 6)
LLMDevOpsTypeScript

Benchmarking our new Bun + Hono LLM gateway (and cutting CI from 18 min to 6)

This September we ran a side-by-side comparison between our new in-house TypeScript/Bun/Hono/Drizzle AI inference gateway (V4) and the legacy gateway it is gradually replacing, and also spent a week c...

Sep 26, 20263 min121
Why we built a stateful workflow graph instead of a single agent loop
LLMAI AgentsTypeScript

Why we built a stateful workflow graph instead of a single agent loop

A pure ReAct loop (while (!done) { callLLM; runTool; }) is awesome for open-ended coding or quick research prototypes. When you ship a Digital Employee platform to enterprise teams who want repeatable...

Aug 14, 20263 min130
Atomic quota reservations in PostgreSQL for a high-concurrency LLM gateway
LLMTypeScriptPostgreSQL

Atomic quota reservations in PostgreSQL for a high-concurrency LLM gateway

Billing for a normal REST API is easy: one request equals one fixed unit, or you count requests after the fact. Billing for an LLM inference gateway is annoyingly asymmetric. When a streaming request...

Apr 17, 20263 min135
Notes on self-hosting my whole dev stack on a home NAS
DevOpsPostgreSQL

Notes on self-hosting my whole dev stack on a home NAS

At some point last year I looked at my monthly cloud bill for tiny side projects, test databases, image storage, and this blog, and realized I was paying rent every month for maybe 4 GB of RAM and a f...

Jan 11, 20252 min198
Fixed-size text splitting ruined our RAG accuracy
LLMRAGTypeScript

Fixed-size text splitting ruined our RAG accuracy

Almost every RAG tutorial starts with the same five lines of code: load a PDF or Markdown file, split it every 500 tokens with a 50-token overlap, embed each chunk, stuff the top 5 cosine-similarity h...

Sep 3, 20243 min274
Chain reorgs will break your indexer sooner or later
BlockchainWeb3Ethereum

Chain reorgs will break your indexer sooner or later

If you build an EVM on-chain analytics pipeline and just loop blockNumber++ calling ethgetBlockByNumber, everything looks completely solid on day one. Your charts update within a couple of seconds of...

Aug 6, 20233 min186