Notes
A collection of notes on engineering, architecture, leadership, and things I'm learning.
Recent
-
Dekhne ko ya muhammad yun to kya dekha nahi
Naat — countless salutations upon the Beloved ﷺ, his family, companions, and the friends of Allah. Dekhne ko ya muhammad yun to kya dekha nahi Tazeem se leta h…
-
Wo Shehr e Mohabbat
Naat — countless salutations upon the Beloved ﷺ, his family, companions, and the friends of Allah. Wo Shehre Mohabbat Jahan Mustafa Hai Wahin Ghar Banaane Ko J…
-
Building an engineering assistant from scratch: providers, retrieval, agents, evals, ops
Last time I built every layer of an AI stack in numpy, on toy models. This time I built one useful application on real ones: an assistant that answers questions…
-
Measuring an AI assistant: quality, latency and cost in one table
So far I have built an assistant that answers questions about my own Go database. At every step I could say “it got better.” This week I asked how I would find …
-
Native tool calls vs ReAct text: what changed when the model got real
Earlier in this series I built a ReAct loop and GPT-2 couldn’t drive it: it answered Thought: 12 and stopped. This week I gave the same idea to a real model, ge…
-
From GPT-2 to a real model: one interface, three providers
Until now every model in this series was one I could run in numpy on my laptop: GPT-2 small, built from scratch. This week I started Phase II: one real applicat…
-
RAG over code: chunking is the whole game
I’m building an assistant that answers questions about a distributed database I wrote in Go. Asked from memory, a small hosted model scored 0.385 on my 50-quest…
-
Teaching a model to act: a ReAct agent loop from scratch
For four weeks my model could read, remember, and retrieve — but it couldn’t do anything. This week I gave it hands. An agent loop lets a model use tools: each …
-
The whole machine: an AI stack built from scratch, start to finish
A few months ago, ollama run, Stable Diffusion, and “chat with your documents” were magic to me — things I used without understanding. This is the last note in …
-
Turning noise into data: a diffusion model from scratch
Every model in the sprint so far has been a transformer — the architecture behind text. But the models that generate images (Stable Diffusion, DALL·E, Midjourne…