<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
  <title>Juan Pablo García · Writing</title>
  <link>https://garciajp.com/writing/</link>
  <atom:link href="https://garciajp.com/feed.xml" rel="self" type="application/rss+xml"/>
  <description>Animated explainers and notes on building with AI: RAG, agents, evaluation, alignment and problem solving.</description>
  <language>en</language>
  <lastBuildDate>Fri, 06 Nov 2026 12:00:00 +0000</lastBuildDate>
  <item>
    <title>How an agent harness works</title>
    <link>https://garciajp.com/writing/how-agent-harnesses-work/</link>
    <guid isPermaLink="true">https://garciajp.com/writing/how-agent-harnesses-work/</guid>
    <pubDate>Fri, 06 Nov 2026 12:00:00 +0000</pubDate>
    <description>An agent is a model plus a harness: everything around it that decides what it sees, what it can do, what it remembers and what you can check afterwards.</description>
  </item>
  <item>
    <title>How agent loops work: the loops around the loop</title>
    <link>https://garciajp.com/writing/how-agent-loops-work/</link>
    <guid isPermaLink="true">https://garciajp.com/writing/how-agent-loops-work/</guid>
    <pubDate>Fri, 06 Nov 2026 12:00:00 +0000</pubDate>
    <description>Every agent runs a loop of model calls and tool calls. Loop engineering adds the loops around it: one that checks the work, one that starts runs, one that improves the agent, and rules for when each stops.</description>
  </item>
  <item>
    <title>How agent graphs work: nodes, edges and safe cycles</title>
    <link>https://garciajp.com/writing/how-agent-graphs-work/</link>
    <guid isPermaLink="true">https://garciajp.com/writing/how-agent-graphs-work/</guid>
    <pubDate>Fri, 06 Nov 2026 12:00:00 +0000</pubDate>
    <description>A graph makes an agent&#x27;s control flow explicit: steps are nodes, allowed next steps are edges, and shared state moves along them. Here is my research agent drawn as one, and when not to draw one.</description>
  </item>
  <item>
    <title>When does LoRA fine-tuning beat a good prompt? I measured the crossover</title>
    <link>https://garciajp.com/writing/lora-vs-prompting/</link>
    <guid isPermaLink="true">https://garciajp.com/writing/lora-vs-prompting/</guid>
    <pubDate>Sun, 01 Nov 2026 12:00:00 +0000</pubDate>
    <description>A 1.5B model fine-tuned with LoRA against a larger model prompted with examples, on the same 100, 500 and 2,000 labeled examples. The prompt won easily at 100; at 2,000 the small model was 2 points behind, within noise, at 1/29 of the input.</description>
  </item>
  <item>
    <title>What actually stops prompt injection? I tested four defenses</title>
    <link>https://garciajp.com/writing/what-stops-prompt-injection/</link>
    <guid isPermaLink="true">https://garciajp.com/writing/what-stops-prompt-injection/</guid>
    <pubDate>Sun, 01 Nov 2026 12:00:00 +0000</pubDate>
    <description>I planted 36 injections in the documents a tool-using assistant reads. Undefended, 42% worked; a one-paragraph warning cut that to 6%. One fake policy update beat every defense I tested, and the strongest filter cost the answers.</description>
  </item>
  <item>
    <title>Does hybrid search plus reranking pay for itself? I measured my RAG pipeline</title>
    <link>https://garciajp.com/writing/does-hybrid-search-pay-for-itself/</link>
    <guid isPermaLink="true">https://garciajp.com/writing/does-hybrid-search-pay-for-itself/</guid>
    <pubDate>Sun, 01 Nov 2026 12:00:00 +0000</pubDate>
    <description>I took my RAG service apart stage by stage on 1,008 labeled questions. The biggest gain was a one-line tokenizer fix, the reranker reorders more than it finds, and hybrid fusion added nothing significant until BM25 was fixed, and even then only at depth 10.</description>
  </item>
  <item>
    <title>How prompt injection works, and what actually stops it</title>
    <link>https://garciajp.com/writing/how-prompt-injection-works/</link>
    <guid isPermaLink="true">https://garciajp.com/writing/how-prompt-injection-works/</guid>
    <pubDate>Sun, 01 Nov 2026 12:00:00 +0000</pubDate>
    <description>I planted 36 injections in a tool-using assistant&#x27;s documents and measured four defenses, alone and together. A warning in the prompt stopped most of them; one fake policy update beat all of them; the safest designs cost answers.</description>
  </item>
  <item>
    <title>How hybrid search and reranking work, measured on my RAG pipeline</title>
    <link>https://garciajp.com/writing/how-hybrid-search-works/</link>
    <guid isPermaLink="true">https://garciajp.com/writing/how-hybrid-search-works/</guid>
    <pubDate>Sun, 01 Nov 2026 12:00:00 +0000</pubDate>
    <description>BM25, dense vectors, Reciprocal Rank Fusion and a cross-encoder, one stage at a time, with what each one added on 1,008 labeled questions.</description>
  </item>
  <item>
    <title>Does a four-agent loop beat a single LLM call? I measured it</title>
    <link>https://garciajp.com/writing/does-an-agent-beat-a-single-llm-call/</link>
    <guid isPermaLink="true">https://garciajp.com/writing/does-an-agent-beat-a-single-llm-call/</guid>
    <pubDate>Sat, 31 Oct 2026 12:00:00 +0000</pubDate>
    <description>On 100 multi-hop questions, my research agent answered 86% correctly against 74% for one retrieve-and-answer call, at about 6× the calls. Where the gain comes from, where it loses, and what I&#x27;d change.</description>
  </item>
  <item>
    <title>How an LLM request is served: prefill, decode and the KV cache</title>
    <link>https://garciajp.com/writing/how-llm-inference-works/</link>
    <guid isPermaLink="true">https://garciajp.com/writing/how-llm-inference-works/</guid>
    <pubDate>Sat, 31 Oct 2026 12:00:00 +0000</pubDate>
    <description>Why the first token is slow and the rest stream, what fills GPU memory, and how batching and quantization make serving cheaper.</description>
  </item>
  <item>
    <title>How structured outputs work: constrained decoding</title>
    <link>https://garciajp.com/writing/how-structured-outputs-work/</link>
    <guid isPermaLink="true">https://garciajp.com/writing/how-structured-outputs-work/</guid>
    <pubDate>Sat, 31 Oct 2026 12:00:00 +0000</pubDate>
    <description>Why “reply in JSON” sometimes fails, how a schema becomes a mask over the model&#x27;s next-token choices, and why valid JSON can still be wrong.</description>
  </item>
  <item>
    <title>Long context or RAG? What models actually use</title>
    <link>https://garciajp.com/writing/long-context-vs-rag/</link>
    <guid isPermaLink="true">https://garciajp.com/writing/long-context-vs-rag/</guid>
    <pubDate>Sat, 31 Oct 2026 12:00:00 +0000</pubDate>
    <description>Million-token windows didn&#x27;t make retrieval obsolete. Where models lose track of long prompts, what each approach costs, and how to choose.</description>
  </item>
  <item>
    <title>How RLHF works</title>
    <link>https://garciajp.com/writing/how-rlhf-works/</link>
    <guid isPermaLink="true">https://garciajp.com/writing/how-rlhf-works/</guid>
    <pubDate>Tue, 27 Oct 2026 12:00:00 +0000</pubDate>
    <description>Reinforcement learning from human feedback, stage by stage: demonstrations, comparisons, a reward model, PPO with a KL leash, and reward hacking.</description>
  </item>
  <item>
    <title>How DPO works, and when to use it instead of RLHF</title>
    <link>https://garciajp.com/writing/how-dpo-works/</link>
    <guid isPermaLink="true">https://garciajp.com/writing/how-dpo-works/</guid>
    <pubDate>Tue, 27 Oct 2026 12:00:00 +0000</pubDate>
    <description>Direct Preference Optimization turns RLHF&#x27;s reward model and RL loop into one loss on preference pairs. The math, the trade-offs and when to choose it.</description>
  </item>
  <item>
    <title>How to break down a big problem</title>
    <link>https://garciajp.com/writing/how-to-break-down-a-problem/</link>
    <guid isPermaLink="true">https://garciajp.com/writing/how-to-break-down-a-problem/</guid>
    <pubDate>Mon, 12 Oct 2026 12:00:00 +0000</pubDate>
    <description>Split a vague problem into parts that add up to the whole, until each part is small enough to check and fix.</description>
  </item>
  <item>
    <title>How to find the root cause of a problem</title>
    <link>https://garciajp.com/writing/how-to-find-the-root-cause/</link>
    <guid isPermaLink="true">https://garciajp.com/writing/how-to-find-the-root-cause/</guid>
    <pubDate>Mon, 12 Oct 2026 12:00:00 +0000</pubDate>
    <description>Ask why, answer with facts, and keep going until you reach a cause you can change, so the problem doesn&#x27;t come back.</description>
  </item>
  <item>
    <title>How to find what broke by halving</title>
    <link>https://garciajp.com/writing/how-to-find-what-broke-by-halving/</link>
    <guid isPermaLink="true">https://garciajp.com/writing/how-to-find-what-broke-by-halving/</guid>
    <pubDate>Mon, 12 Oct 2026 12:00:00 +0000</pubDate>
    <description>When something worked before and doesn&#x27;t now, test the middle and throw away half the suspects each time.</description>
  </item>
  <item>
    <title>How to find the bottleneck</title>
    <link>https://garciajp.com/writing/how-to-find-the-bottleneck/</link>
    <guid isPermaLink="true">https://garciajp.com/writing/how-to-find-the-bottleneck/</guid>
    <pubDate>Mon, 12 Oct 2026 12:00:00 +0000</pubDate>
    <description>A process runs only as fast as its slowest step. Find that step, improve it, then look for the next one.</description>
  </item>
  <item>
    <title>How to decide what to fix first</title>
    <link>https://garciajp.com/writing/how-to-decide-what-to-fix-first/</link>
    <guid isPermaLink="true">https://garciajp.com/writing/how-to-decide-what-to-fix-first/</guid>
    <pubDate>Mon, 12 Oct 2026 12:00:00 +0000</pubDate>
    <description>Count the problems, sort them, and you usually find a few causes behind most of the trouble.</description>
  </item>
  <item>
    <title>How to solve problems with small experiments</title>
    <link>https://garciajp.com/writing/how-to-solve-problems-with-small-experiments/</link>
    <guid isPermaLink="true">https://garciajp.com/writing/how-to-solve-problems-with-small-experiments/</guid>
    <pubDate>Mon, 12 Oct 2026 12:00:00 +0000</pubDate>
    <description>Guess, test small, measure and adjust. Many cheap loops find a good answer faster than one big plan.</description>
  </item>
  <item>
    <title>How AI is changing software development</title>
    <link>https://garciajp.com/writing/how-ai-is-changing-software-development/</link>
    <guid isPermaLink="true">https://garciajp.com/writing/how-ai-is-changing-software-development/</guid>
    <pubDate>Mon, 12 Oct 2026 12:00:00 +0000</pubDate>
    <description>From autocomplete to agents that ship whole features: specs, conducting, context and loops, how models run, and keeping agents safe.</description>
  </item>
  <item>
    <title>How RAG works</title>
    <link>https://garciajp.com/writing/how-rag-works/</link>
    <guid isPermaLink="true">https://garciajp.com/writing/how-rag-works/</guid>
    <pubDate>Fri, 09 Oct 2026 12:00:00 +0000</pubDate>
    <description>Retrieval-augmented generation, step by step: from splitting documents to an answer with sources.</description>
  </item>
  <item>
    <title>How AI agents work</title>
    <link>https://garciajp.com/writing/how-ai-agents-work/</link>
    <guid isPermaLink="true">https://garciajp.com/writing/how-ai-agents-work/</guid>
    <pubDate>Fri, 09 Oct 2026 12:00:00 +0000</pubDate>
    <description>An agent is a language model in a loop: plan, call a tool, read the result, decide again.</description>
  </item>
  <item>
    <title>How transformers and attention work</title>
    <link>https://garciajp.com/writing/how-transformers-work/</link>
    <guid isPermaLink="true">https://garciajp.com/writing/how-transformers-work/</guid>
    <pubDate>Fri, 09 Oct 2026 12:00:00 +0000</pubDate>
    <description>What happens inside a large language model: tokens, embeddings, attention and next-token prediction.</description>
  </item>
  <item>
    <title>How neural networks learn</title>
    <link>https://garciajp.com/writing/how-neural-networks-learn/</link>
    <guid isPermaLink="true">https://garciajp.com/writing/how-neural-networks-learn/</guid>
    <pubDate>Fri, 09 Oct 2026 12:00:00 +0000</pubDate>
    <description>Forward pass, loss, backpropagation and gradient descent, drawn one step at a time.</description>
  </item>
  <item>
    <title>How embeddings and vector search work</title>
    <link>https://garciajp.com/writing/how-vector-search-works/</link>
    <guid isPermaLink="true">https://garciajp.com/writing/how-vector-search-works/</guid>
    <pubDate>Fri, 09 Oct 2026 12:00:00 +0000</pubDate>
    <description>How meaning becomes coordinates, and how a search finds the closest ones fast.</description>
  </item>
  <item>
    <title>How a web request is served</title>
    <link>https://garciajp.com/writing/how-a-web-request-is-served/</link>
    <guid isPermaLink="true">https://garciajp.com/writing/how-a-web-request-is-served/</guid>
    <pubDate>Fri, 09 Oct 2026 12:00:00 +0000</pubDate>
    <description>Load balancing, caching and the database: the path most web requests take.</description>
  </item>
  <item>
    <title>How fine-tuning with LoRA works</title>
    <link>https://garciajp.com/writing/how-lora-fine-tuning-works/</link>
    <guid isPermaLink="true">https://garciajp.com/writing/how-lora-fine-tuning-works/</guid>
    <pubDate>Fri, 09 Oct 2026 12:00:00 +0000</pubDate>
    <description>Why LoRA trains a fraction of a percent of the weights and still adapts a model.</description>
  </item>
  <item>
    <title>How diffusion models generate images</title>
    <link>https://garciajp.com/writing/how-diffusion-models-work/</link>
    <guid isPermaLink="true">https://garciajp.com/writing/how-diffusion-models-work/</guid>
    <pubDate>Fri, 09 Oct 2026 12:00:00 +0000</pubDate>
    <description>Image generators learn to remove noise, then start from pure noise and clean it up step by step.</description>
  </item>
  <item>
    <title>How MCP connects AI apps to tools</title>
    <link>https://garciajp.com/writing/how-mcp-works/</link>
    <guid isPermaLink="true">https://garciajp.com/writing/how-mcp-works/</guid>
    <pubDate>Fri, 09 Oct 2026 12:00:00 +0000</pubDate>
    <description>The Model Context Protocol, step by step: discovery, tool calls, and why one server works in every app.</description>
  </item>
  <item>
    <title>How database indexes work</title>
    <link>https://garciajp.com/writing/how-database-indexes-work/</link>
    <guid isPermaLink="true">https://garciajp.com/writing/how-database-indexes-work/</guid>
    <pubDate>Fri, 09 Oct 2026 12:00:00 +0000</pubDate>
    <description>Why an index turns a full table scan into a few reads, and what it costs on every write.</description>
  </item>
  <item>
    <title>How Docker containers work</title>
    <link>https://garciajp.com/writing/how-docker-containers-work/</link>
    <guid isPermaLink="true">https://garciajp.com/writing/how-docker-containers-work/</guid>
    <pubDate>Fri, 09 Oct 2026 12:00:00 +0000</pubDate>
    <description>Dockerfile, layers, caching, containers and registries: how one image runs the same everywhere.</description>
  </item>
  <item>
    <title>How to evaluate an LLM app</title>
    <link>https://garciajp.com/writing/how-to-evaluate-llm-apps/</link>
    <guid isPermaLink="true">https://garciajp.com/writing/how-to-evaluate-llm-apps/</guid>
    <pubDate>Fri, 09 Oct 2026 12:00:00 +0000</pubDate>
    <description>Test cases, scoring, version comparisons and a release gate: measuring quality instead of guessing.</description>
  </item>
</channel>
</rss>
