All Stories

Direct Preference Optimization (DPO) vs. PPO: A Pragmatic Comparison

Classic RLHF is a four-model circus: a frozen reference policy, a trainable actor, a reward model, and a critic network, plus a KL term to keep the actor honest. It...

Pattern-matching refinements in Ruby 3.3

If you read the Ruby 3.3 changelog looking for “right-hand patterns”, stop. Pattern matching arrived in Ruby 2.7, and the => rightward assignment shipped in the same release; the syntax...

Memory-Augmented Agents: MemGPT and Semantic DB Storage Layer design

The naive fix for agents that forget is to buy a bigger context window. We ran that playbook and it is a trap: the failure mode of a long conversation...

Vector Search Indexing: HNSW vs. IVF-PQ in pgvector and Qdrant

Every vector index is a bet on a triangle: recall, latency, and memory. Flat scan sits at one corner — perfect recall, but at 1M 1536-d vectors (about 6 GB...