Build notes

Architecting AI: The Decisions Behind Systems I Build

Each post breaks down one architectural decision from a system I build, or one result I establish: the failure I find, the fix I apply, and the metric it moves.

  • Post

    When my AI's quality check raised an alarm, the answer's passage got through half as often as when it stayed quiet

    My AI assistant has 4 steps on paper: search, rank, check, write. Measuring what each one did to the passages it reads showed that one barely chose anything and another could only lose evidence.

    • RAG
    • Evaluation
    • Information retrieval
  • Post

    Without column names, GPT-4 scored 0.55 out of 1 on GitHub tables. On SAP customer tables: 0.03

    Company tables store codes, not their meaning. A study of GPT-4 on real SAP customer tables shows what an AI does with them: it sees what happened, then guesses what it means.

    • Context engineering
    • Enterprise AI
    • Knowledge graphs
  • Post

    60 of the 150 questions I test my AI on point to a table or figure. My AI could not see a single one

    My AI assistant searches research papers before it answers, and its search skipped every table and figure. Fixing that exposed a second blind spot, in the scorecard I use to grade it.

    • RAG
    • Retrieval
    • Evaluation
  • Post

    131 of my 150 answers cited sources. My grader scored those citations 0.012 out of 1

    I built a system that answers questions about research papers and cites its sources, then a second program to grade it. The grader was the broken part: I found 4 problems, fixed 3, and one is still open.

    • RAG
    • Evaluation
    • LLM engineering
  • Post

    1 in 3: AI database queries that run without an error and still answer wrong

    A peer-reviewed test of 12 AI models: the top model's queries ran almost every time, yet about 1 in 3 still returned the wrong answer. Permissions stop damage. They don't catch a wrong answer.

    • Knowledge graphs
    • Neo4j
    • Evaluation
  • Post

    47 to 38: how far a graph-backed AI fell when facts went missing

    A peer-reviewed study removed facts from a knowledge graph on purpose. With 4 in 10 of the needed facts gone, the graph-backed system scored what the model scored with no graph at all.

    • Knowledge graphs
    • GraphRAG
    • Evaluation
  • Post

    The costlier AI search setup lost on simple fact questions

    A peer-reviewed KDD 2026 study ran plain retrieval and graph retrieval through the same tests. Which one won depended on the question, and the AI judge scoring the contest sometimes reversed its verdict when the answers swapped places.

    • RAG
    • Knowledge graphs
    • Evaluation
  • Post

    3× the accuracy on business questions, from the same model

    Researchers put 43 business questions to GPT-4 over an industry-standard insurance data model. What moved accuracy from 16.7% to 54.2% was not the model. It was what the model was given to read.

    • Knowledge graphs
    • Enterprise AI
    • Evaluation
  • Post

    The safety net answered 32 of 150 questions from the wrong document

    If the search found nothing in the right document, my system searched everything, so a user always got an answer. That fallback turned a visible failure into a confident wrong answer.

    • RAG
    • Retrieval
    • Evaluation
  • Post

    The agent ran the checks, and wrote the report saying they passed

    Gatekeepers answer whether an action was allowed. They do not answer whether the agent did what it says it did. A session-end hook re-runs seven of the eight gates, so the agent's summary stops being the record.

    • Agentic AI
    • AI governance
    • Software testing
  • Post

    I gave three coding agents less capability on purpose

    Claude Code ships a general-purpose agent that can do almost anything in a codebase. I run three specialists beside it, with 46 explicit prohibitions between them, because when mistakes cost money capability stops being the constraint.

    • Agentic AI
    • Multi-agent systems
    • AI governance
  • Post

    Five quality gates passed, graded by the agent that wrote the code

    The agent wrote the code, wrote its tests, ran the checks, and reported five green. Nothing in the pipeline was built to ask who checked the checker.

    • Agentic AI
    • Software testing
    • Evaluation
  • Post

    Do I have a guarantee, or am I guessing?

    Convergence analysis taught me to ask one question of any algorithm. That question shaped an agentic supply-chain system built to decide when not to trust its own answers.

    • Agentic AI
    • Convergence analysis
    • AI safety
  • Post

    A hand-tuned prompt scored 91%. A compiled one scored 99%.

    Route a supply-chain question wrong and an inventory query comes back with a vehicle-routing answer. I replaced the hand-written classifier prompt with a DSPy-compiled one, then spent longer on the measurement than on the compile.

    • DSPy
    • Evaluation
    • Agentic AI
  • Post

    Same question, different numbers, wrong answer

    "Allocate 400 units" and "allocate 1,000 units" embed almost identically. A cache that matches on similarity alone will serve one manager another manager's numbers.

    • Agentic AI
    • Semantic caching
    • Production ML
  • Post

    Why we proved convergence on the simplest network there is

    The linear layer is the one component every neural network shares. Its loss is still nonconvex, and training it is still NP-complete. That is why it is the right place to look for a guarantee.

    • Deep learning
    • Optimization
    • Convergence analysis
  • Post

    I defended my PhD: convergence analysis of training deep linear neural networks

    The learning rate depends on constants existing theory can't compute before training, so they get chosen by trial and error. I closed part of that gap, and I'm now applying the same rigor to production AI.

    • Deep learning
    • Optimization theory
    • Convergence analysis
  • Post

    The copilot keeps answering when the language model goes dark

    A free tier capped at 50 API calls a day forced every design decision in this system. The constraint is gone now. The architecture it produced stayed, because it earned its place.

    • Agentic AI
    • System design
    • Production ML
  • Post

    The most reliable part of the copilot is the part the LLM never touches

    Ask a language model to plan a logistics decision and you get the most statistically likely answer, not the cheapest one. So I kept the model out of the math and spent the effort on the boundary between them.

    • Agentic AI
    • Operations research
    • Neuro-symbolic AI
  • Post

    $10,000 is where the agent stops and a human decides

    Every approval workflow needs a number. Below it the agent executes, above it a person signs off. The bug that taught me where to put that check only surfaced in integration testing.

    • Agentic AI
    • Human in the loop
    • Enterprise AI