Large language models
This is the largest part of the book. It starts with optional material: a tiny GPT implemented from scratch so you can see what is inside a language model. The chapters after that are practical: calling commercial and local models through one API, letting models call your Racket functions as tools, a complete coding agent, and two chapters on retrieval augmented generation. The agentic RAG chapter assumes you have read the embeddings chapter before it.