<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Deep Dives (Stage 1) on AI Vault</title><link>https://namphuongtran.github.io/ai-vault/deep-dives/</link><description>Recent content in Deep Dives (Stage 1) on AI Vault</description><generator>Hugo</generator><language>en</language><atom:link href="https://namphuongtran.github.io/ai-vault/deep-dives/index.xml" rel="self" type="application/rss+xml"/><item><title>Prompt Patterns</title><link>https://namphuongtran.github.io/ai-vault/deep-dives/prompt-patterns/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://namphuongtran.github.io/ai-vault/deep-dives/prompt-patterns/</guid><description>&lt;p&gt;Builds on &lt;a href="https://namphuongtran.github.io/ai-vault/foundations/work-with-models/prompt-engineering/"&gt;Prompt Engineering in Foundations&lt;/a&gt;.&#10;Patterns for harder tasks where a single well-formed prompt isn&amp;rsquo;t enough.&lt;/p&gt;&#10;&lt;h2 id="reasoning-techniques"&gt;Reasoning techniques&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;Chain-of-thought&lt;/strong&gt; — ask for step-by-step reasoning before the answer; helps on&#10;multi-step problems.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Self-consistency&lt;/strong&gt; — sample several reasoning paths and take the majority answer; trades&#10;cost for reliability.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Least-to-most&lt;/strong&gt; — solve easier sub-problems first, then use them to solve the harder one.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="structured-output"&gt;Structured output&lt;/h2&gt;&#10;&lt;p&gt;When the output feeds another system, constrain its shape:&lt;/p&gt;</description></item><item><title>Vector Databases</title><link>https://namphuongtran.github.io/ai-vault/deep-dives/vector-databases/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://namphuongtran.github.io/ai-vault/deep-dives/vector-databases/</guid><description>&lt;h2 id="goal"&gt;Goal&lt;/h2&gt;&#10;&lt;p&gt;Understand what happens inside the &amp;ldquo;vector store&amp;rdquo; box of every&#10;&lt;a href="https://namphuongtran.github.io/ai-vault/foundations/ground-in-data/rag/"&gt;RAG&lt;/a&gt; diagram — from what a single record holds, to how a&#10;query finds its nearest matches, to how that stays fast across millions of&#10;&lt;a href="https://namphuongtran.github.io/ai-vault/foundations/ground-in-data/embeddings/"&gt;embeddings&lt;/a&gt;, and which store to pick.&lt;/p&gt;&#10;&lt;h2 id="whats-in-a-record"&gt;What&amp;rsquo;s in a record&lt;/h2&gt;&#10;&lt;p&gt;An &lt;a href="https://namphuongtran.github.io/ai-vault/foundations/ground-in-data/embeddings/"&gt;embedding&lt;/a&gt; turns text into a vector — a list of&#10;numbers that captures meaning. A vector database stores one &lt;strong&gt;record&lt;/strong&gt; per chunk:&lt;/p&gt;&#10;&lt;table&gt;&#10;&#9;&lt;thead&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Field&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Example&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Used for&lt;/th&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/thead&gt;&#10;&#9;&lt;tbody&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;id&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;doc42#chunk3&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;reference, updates, dedup&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;vector&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;[0.021, -0.184, …]&lt;/code&gt; (e.g. 384–1536 dims)&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;similarity search&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;metadata&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;{source, lang, date, plan}&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;filtering + citations&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;content&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;the original text&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;returned to the model as context&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;p&gt;The vector is what you &lt;em&gt;search by&lt;/em&gt;; the metadata and content are what you &lt;em&gt;filter and return&lt;/em&gt;.&#10;Keeping the source in metadata is what lets RAG cite where an answer came from.&lt;/p&gt;</description></item><item><title>Advanced RAG</title><link>https://namphuongtran.github.io/ai-vault/deep-dives/advanced-rag/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://namphuongtran.github.io/ai-vault/deep-dives/advanced-rag/</guid><description>&lt;p&gt;Builds on &lt;a href="https://namphuongtran.github.io/ai-vault/foundations/ground-in-data/rag/"&gt;RAG in Foundations&lt;/a&gt;. Basic RAG often&#10;under-performs because of &lt;em&gt;retrieval&lt;/em&gt; quality, not the model. These techniques target that.&lt;/p&gt;&#10;&lt;p&gt;In the &lt;a href="https://namphuongtran.github.io/ai-vault/deep-dives/types-of-rag/"&gt;Types of RAG&lt;/a&gt; family these are the&#10;&lt;em&gt;technique&lt;/em&gt; axis: steps you add inside any architecture, not an architecture of their own.&lt;/p&gt;&#10;&lt;h2 id="chunking-strategies"&gt;Chunking strategies&lt;/h2&gt;&#10;&lt;p&gt;How you split documents strongly affects retrieval quality.&lt;/p&gt;&#10;&lt;table&gt;&#10;&#9;&lt;thead&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Strategy&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Idea&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;When&lt;/th&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/thead&gt;&#10;&#9;&lt;tbody&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Fixed-size&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Split every N tokens with overlap&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Simple, uniform text&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Recursive&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Split on structure (headings → paragraphs → sentences)&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Most documents&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Semantic&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Split where meaning shifts (embedding distance)&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Dense, mixed-topic text&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Document-aware&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Respect tables, code blocks, sections&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;PDFs, technical docs&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;p&gt;Keep chunks self-contained; add a small &lt;strong&gt;overlap&lt;/strong&gt; (e.g. 10–20%) so context isn&amp;rsquo;t cut&#10;mid-thought.&lt;/p&gt;</description></item><item><title>Agent Patterns</title><link>https://namphuongtran.github.io/ai-vault/deep-dives/agent-patterns/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://namphuongtran.github.io/ai-vault/deep-dives/agent-patterns/</guid><description>&lt;p&gt;Builds on &lt;a href="https://namphuongtran.github.io/ai-vault/foundations/make-it-act/agents/"&gt;Agents in Foundations&lt;/a&gt;. Patterns for making&#10;agents reliable rather than just capable.&lt;/p&gt;&#10;&lt;h2 id="the-react-loop"&gt;The ReAct loop&lt;/h2&gt;&#10;&lt;p&gt;Most agents run a &lt;strong&gt;Reason → Act → Observe&lt;/strong&gt; loop: the model reasons about the next step,&#10;calls a tool (act), reads the result (observe), and repeats until done. Explicit reasoning&#10;between actions improves tool choice and makes traces debuggable.&lt;/p&gt;&#10;&lt;h2 id="tool-design"&gt;Tool design&lt;/h2&gt;&#10;&lt;p&gt;Tools are the agent&amp;rsquo;s API to the world — design them like a good API.&lt;/p&gt;</description></item><item><title>Multi-Agent Systems</title><link>https://namphuongtran.github.io/ai-vault/deep-dives/multi-agent/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://namphuongtran.github.io/ai-vault/deep-dives/multi-agent/</guid><description>&lt;h2 id="goal"&gt;Goal&lt;/h2&gt;&#10;&lt;p&gt;Understand when several agents beat one, how they coordinate, and the hard problem that shows&#10;up the moment they run for a long time: &lt;strong&gt;agents have no long-term memory&lt;/strong&gt;. The answer this&#10;page builds toward is a &lt;em&gt;shared knowledge graph&lt;/em&gt; — a memory the whole team reads and writes.&lt;/p&gt;&#10;&lt;h2 id="single-vs-multi-agent"&gt;Single vs. multi-agent&lt;/h2&gt;&#10;&lt;p&gt;Start from the vault&amp;rsquo;s default: the &lt;em&gt;fewest&lt;/em&gt; moving parts that solve the task. A single&#10;&lt;a href="https://namphuongtran.github.io/ai-vault/foundations/make-it-act/agents/"&gt;agent&lt;/a&gt; with good tools handles most work,&#10;and it&amp;rsquo;s cheaper and easier to debug. Reach for multiple agents only when:&lt;/p&gt;</description></item><item><title>Self-Improving Agents</title><link>https://namphuongtran.github.io/ai-vault/deep-dives/self-improving-agents/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://namphuongtran.github.io/ai-vault/deep-dives/self-improving-agents/</guid><description>&lt;h2 id="goal"&gt;Goal&lt;/h2&gt;&#10;&lt;p&gt;Understand how an agent can &lt;strong&gt;improve run over run without any retraining&lt;/strong&gt; — no weight&#10;changes, no fine-tuning. The model stays frozen; what changes is what surrounds it. This&#10;matters because retraining is slow and expensive, but a well-designed agent can still learn&#10;from its own experience at runtime.&lt;/p&gt;&#10;&lt;h2 id="two-ways-to-learn"&gt;Two ways to &amp;ldquo;learn&amp;rdquo;&lt;/h2&gt;&#10;&lt;table&gt;&#10;&#9;&lt;thead&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Weight-changing&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Weight-frozen (this page)&lt;/th&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/thead&gt;&#10;&#9;&lt;tbody&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Mechanism&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;a href="https://namphuongtran.github.io/ai-vault/deep-dives/adaptation/"&gt;Fine-tuning / RL&lt;/a&gt; — update the model&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Memory, reflection, and skills around a fixed model&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Speed&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Slow, offline, needs data + compute&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Instant, at runtime&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;What improves&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;The model&amp;rsquo;s raw capability&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;How well the agent &lt;em&gt;applies&lt;/em&gt; a fixed capability&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Ceiling&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Can raise the model&amp;rsquo;s skill&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Bounded by the base model — better use, not new ability&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;p&gt;Self-improvement here is the second column: the base model&amp;rsquo;s ability is a ceiling, but most&#10;agents perform &lt;em&gt;well below&lt;/em&gt; it because they forget, repeat mistakes, and re-derive procedures.&#10;Closing that gap is where the gains are.&lt;/p&gt;</description></item><item><title>Computer Use &amp; Real-Time Interaction</title><link>https://namphuongtran.github.io/ai-vault/deep-dives/computer-use/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://namphuongtran.github.io/ai-vault/deep-dives/computer-use/</guid><description>&lt;h2 id="goal"&gt;Goal&lt;/h2&gt;&#10;&lt;p&gt;Most of this vault is about agents that read and write &lt;em&gt;text&lt;/em&gt;. This page is about agents that&#10;&lt;strong&gt;act in the world&lt;/strong&gt;: control a computer&amp;rsquo;s screen, hold a voice conversation, or drive a&#10;device. The model is the same; what changes is the &lt;em&gt;interface&lt;/em&gt; between it and reality.&lt;/p&gt;&#10;&lt;h2 id="computer-use--the-loop"&gt;Computer use — the loop&lt;/h2&gt;&#10;&lt;p&gt;&lt;strong&gt;Computer use&lt;/strong&gt; lets an agent operate a GUI the way a person does: it&amp;rsquo;s given a &lt;strong&gt;screenshot&lt;/strong&gt;,&#10;decides an action (&lt;em&gt;click here, type this, scroll&lt;/em&gt;), the harness &lt;strong&gt;executes&lt;/strong&gt; it on the real&#10;screen, and the agent sees the &lt;em&gt;next&lt;/em&gt; screenshot. It&amp;rsquo;s the &lt;a href="https://namphuongtran.github.io/ai-vault/foundations/make-it-act/agents/"&gt;agent&#10;loop&lt;/a&gt;, but the tool is a mouse and keyboard.&lt;/p&gt;</description></item><item><title>Adaptation: Fine-tuning vs RAG vs Prompting</title><link>https://namphuongtran.github.io/ai-vault/deep-dives/adaptation/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://namphuongtran.github.io/ai-vault/deep-dives/adaptation/</guid><description>&lt;p&gt;Three ways to adapt a &lt;a href="https://namphuongtran.github.io/ai-vault/foundations/understand/foundation-models/"&gt;foundation model&lt;/a&gt; to&#10;your task, from cheapest to most involved.&lt;/p&gt;&#10;&lt;h2 id="the-three-levers"&gt;The three levers&lt;/h2&gt;&#10;&lt;table&gt;&#10;&#9;&lt;thead&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Lever&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Changes&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Best for&lt;/th&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/thead&gt;&#10;&#9;&lt;tbody&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Prompting&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;The input only&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Behavior, format, simple tasks&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;RAG&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;The input + external knowledge&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Fresh, private, or citable facts&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Fine-tuning&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;The model&amp;rsquo;s weights&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Consistent style/format, narrow skills&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;h2 id="when-to-use-which"&gt;When to use which&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;Prompting&lt;/strong&gt; — start here. Fast, no infrastructure. Enough for most format and behavior needs.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;RAG&lt;/strong&gt; — when the model needs &lt;em&gt;knowledge&lt;/em&gt; it doesn&amp;rsquo;t have: changing data, private&#10;documents, or answers that must cite sources. See&#10;&lt;a href="https://namphuongtran.github.io/ai-vault/deep-dives/advanced-rag/"&gt;Advanced RAG&lt;/a&gt;.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Fine-tuning&lt;/strong&gt; — when you need a &lt;em&gt;consistent behavior&lt;/em&gt; prompting can&amp;rsquo;t reliably produce&#10;(a fixed style, tone, or output schema), or to teach a narrow skill. It does &lt;strong&gt;not&lt;/strong&gt; reliably&#10;add fresh factual knowledge — use RAG for that.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="fine-tuning-briefly"&gt;Fine-tuning, briefly&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;Full fine-tuning&lt;/strong&gt; updates all weights — expensive, rarely needed.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;PEFT / LoRA&lt;/strong&gt; trains small adapter layers instead — far cheaper, and adapters are easy to&#10;store and swap. The usual default when you do fine-tune.&lt;/li&gt;&#10;&lt;li&gt;Needs a curated, labeled dataset; quality and coverage matter more than size.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="cost-and-data-trade-offs"&gt;Cost and data trade-offs&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Prompting: near-zero setup; cost is per-request tokens.&lt;/li&gt;&#10;&lt;li&gt;RAG: needs an ingestion + vector store pipeline; update data without retraining.&lt;/li&gt;&#10;&lt;li&gt;Fine-tuning: upfront training cost and a dataset; must retrain to change behavior.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="combining-them"&gt;Combining them&lt;/h2&gt;&#10;&lt;p&gt;These aren&amp;rsquo;t exclusive. A common production stack is &lt;strong&gt;fine-tune for form + RAG for&#10;knowledge&lt;/strong&gt;: fine-tune so the model reliably answers in your voice and schema, and use RAG to&#10;feed it current, grounded facts at query time.&lt;/p&gt;</description></item><item><title>Evaluation in Practice</title><link>https://namphuongtran.github.io/ai-vault/deep-dives/evaluation-in-practice/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://namphuongtran.github.io/ai-vault/deep-dives/evaluation-in-practice/</guid><description>&lt;p&gt;Builds on &lt;a href="https://namphuongtran.github.io/ai-vault/foundations/operate-and-govern/model-evaluation/"&gt;Model Evaluation in Foundations&lt;/a&gt;.&#10;Metrics only help if you evaluate systematically. This is how to actually run evaluation.&lt;/p&gt;&#10;&lt;h2 id="build-an-eval-set"&gt;Build an eval set&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Collect real inputs (or realistic ones) with known-good outputs or acceptance criteria.&lt;/li&gt;&#10;&lt;li&gt;Cover the &lt;strong&gt;common cases and the edge cases&lt;/strong&gt; — the ones that break in production.&lt;/li&gt;&#10;&lt;li&gt;Start small (20–50 examples) and grow it as you find failures; every bug becomes a case.&lt;/li&gt;&#10;&lt;li&gt;Version it; treat it like test data.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Mine your &lt;a href="https://namphuongtran.github.io/ai-vault/foundations/operate-and-govern/observability/"&gt;traces&lt;/a&gt; for cases.&lt;/strong&gt; Real runs are the&#10;cheapest source of realistic inputs, and the ones that already went wrong are the ones worth&#10;keeping.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;Keep two kinds of case, and don&amp;rsquo;t mix their purpose:&lt;/p&gt;</description></item><item><title>RAG Evaluation</title><link>https://namphuongtran.github.io/ai-vault/deep-dives/rag-evaluation/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://namphuongtran.github.io/ai-vault/deep-dives/rag-evaluation/</guid><description>&lt;p&gt;&lt;em&gt;Why &amp;ldquo;the answer was wrong&amp;rdquo; is never a useful bug report for a RAG system.&lt;/em&gt;&lt;/p&gt;&#10;&lt;h2 id="goal"&gt;Goal&lt;/h2&gt;&#10;&lt;p&gt;Find out &lt;em&gt;which half&lt;/em&gt; of a &lt;a href="https://namphuongtran.github.io/ai-vault/foundations/ground-in-data/rag/"&gt;RAG&lt;/a&gt; pipeline is failing. A single&#10;end-to-end score tells you the system is bad; it never tells you whether to fix chunking, the&#10;retriever, or the prompt. This page is the RAG-specific companion to&#10;&lt;a href="https://namphuongtran.github.io/ai-vault/deep-dives/evaluation-in-practice/"&gt;Evaluation in practice&lt;/a&gt;.&lt;/p&gt;&#10;&lt;h2 id="split-the-pipeline-first"&gt;Split the pipeline first&lt;/h2&gt;&#10;&lt;p&gt;RAG has two independently breakable halves, and they fail in ways that look identical from the&#10;outside:&lt;/p&gt;</description></item></channel></rss>