A build log of turning a Sherlock Holmes board game, Consulting Detective: The Curzon Street Kidnapping, into a knowledge graph. It covers designing the ontology, the half-automated pipeline that fills it (LLM extraction with human curation on top), a chatbot that answers from it, and an experiment on the best way for a model to consume it: one big prompt or an agent with tools.
In the BBC’s Sherlock, Holmes keeps what he knows in a mind palace, an imagined building where every fact has a room of its own, so that when a case calls for it he can walk straight to the right door. Outside fiction, the closest tool we have is an ontology. If you wanted to build a mind palace for a problem of your own, you would start by devising a schema of the things that matter to it, how they may relate to each other and what counts as evidence for a fact, and then fill that schema with what your documents actually say, so that a person or a program can go straight to the fact it needs instead of searching the text again.
In a tool-calling chatbot, the model never runs a tool: it only asks your code to. This post follows one question through Quick Math Coach, a mental-maths tutor that demonstrates the mechanics of tool calling, from the user’s message to the answer, with traces from a real run.
For a long time my picture of an “agent chatbot” was simple: you type, the model types back, repeat. I knew that tool calling was what let a chatbot look things up, run code or call an API, and I had used products that did it. But if you had asked me what actually happens between my question and the answer, who calls what, and how the model even knows a tool exists, I would have waved my hands. So I built a small one to find out.
How a plain Python model grows, one stage at a time, from a prototype on local files into scheduled Databricks jobs: running laptop code against Unity Catalog with Databricks Connect, tracking the model with MLflow, and deploying the same files with Asset Bundles.
Most models start life the same way: a few Python files on a laptop, a data extract in a folder, and a metric that looks promising. Getting from there to a model that runs every day on its own, reading live data and writing predictions somewhere other people can use them, is a different kind of work. The model code barely changes. What changes is where the data lives, where the code runs, and who presses the button.
The web development world is huge, and an LLM can write the boilerplate for any of it. What it cannot do for you is choose. This post surveys the popular options, breaks any use case into twelve functionalities, and ends with a skill file you can hand to your own assistant.
Almost every analysis I have worked on ends in the same small moment: someone needs to see it. A chart in a notebook is often enough to convince me, but it rarely convinces a colleague or stakeholder who is never going to open that notebook. A small web app can. It lets them move a slider, filter to their own region, or type in a value and watch the model’s answer change, which feels very different from looking at a screenshot.
Sequence alignment on Rosalind looks like thirteen unrelated puzzles, until you notice most of them are the same dynamic programming recurrence wearing different clothes. This post traces how one DP engine, parameterized by a scoring function, a gap model, and four free-start/free-end flags, grows from counting point mutations into global, local, overlap, semiglobal, affine-gap, and multiple alignment.