Chapter 12 · Embeddings, RAG & the LLM Application Stack
Make It Valid
A toy model writes a weather-tool call token by token. Sample freely and some calls break; mask invalid tokens and none do, but a required field can force the model to invent a value.
Try it · toy model
8 min
Read the concepts behind it