02Chapter 2: Is it missing knowledge or behaving wrongly?This chapter assumes you have called a chat-style LLM API, can read Python, and know roughly what an embedding and a context window are. Before you pick prompting, RAG, or fine-tuning, you need to know what kind of failure you are looking at. The wrong diagnosis leads to the wrong lever and wasted w3 min read
03Chapter 3: Measure first: an evaluation set and a baselineThis chapter assumes you have called a chat-style LLM API, can read Python, and know what an embedding and a context window are. Before you add examples, retrieval, or training to a system, you need a way to tell whether the change helped. This chapter shows how to build that measurement.3 min read
04Chapter 4: Start with promptingThis chapter assumes you have called a chat-style LLM API, can read Python, and know what a context window is. Prompting is the first lever to pull because it changes only the input. It needs no new data, no index, and no training run, and you can undo any change in seconds.3 min read
05Chapter 5: Few-shot examples and output structureThis chapter assumes you have called a chat-style LLM API, can read Python, and know what a context window is. It covers the first tool in the prompting step: showing the model examples and fixing the shape of its output.2 min read
06Chapter 6: RAG: giving the model the facts at query timeRetrieval-augmented generation (RAG) fetches relevant text from your own data when a question arrives and puts that text in the prompt. The model's weights stay the same. Only the input changes.3 min read
07Chapter 7: Inside a retrieval pipelineThis chapter assumes you can call a chat-style LLM API and read Python. It also assumes you know that an embedding is a vector of numbers representing meaning, and that a context window limits how much text a model can read at once.2 min read
08Chapter 8: Fine-tuning: changing the model's behaviorThis chapter assumes you have called a chat-style LLM API, can read Python, and know what a context window is. It also assumes you have an evaluation set and a prompt baseline, as covered earlier in this tutorial.3 min read
09Chapter 9: Preparing training dataThis chapter assumes you can call a chat-style API, read Python, and know what a context window is. It also assumes you have an evaluation set and baseline from earlier in the tutorial. Fine-tuning learns only from the examples you give it, so the data sets the ceiling on quality.2 min read
10Chapter 10: Parameter-efficient tuning with LoRAThis chapter assumes you know what fine-tuning changes (the model's weights, trained on input and output pairs), what a context window is, and how to read Python. It covers when full fine-tuning is too heavy and how LoRA reduces the cost.3 min read
11Chapter 11: Comparing cost, latency, freshness, and controlThis chapter compares prompting, retrieval-augmented generation (RAG), and fine-tuning on four dimensions. It assumes you can call a chat-style API, read Python, and know what embeddings and a context window are. The next chapter turns these comparisons into a decision framework.3 min read
12Chapter 12: A decision frameworkThis chapter assumes you can call a chat-style LLM API, read Python, and know what embeddings and a context window are. Earlier chapters covered the three levers and how to diagnose a problem. Here you combine those pieces into one repeatable process.2 min read
13Chapter 13: Combining prompting, RAG, and fine-tuningThis chapter assumes you can call a chat-style LLM API, read Python, and know what embeddings and a context window are. It also assumes you have an evaluation set and a baseline, as covered earlier in this tutorial.2 min read
14Chapter 14: Maintenance and common failure modesThis chapter assumes you have read the earlier chapters on prompting, RAG, and fine-tuning. It also assumes you have an evaluation set. Choosing an approach is a one-time decision, but keeping it working is ongoing. Each approach breaks in its own way, and you need a routine that catches the breakag3 min read