Coursework for 'Transformers, LLMs, RAG and Agents: From Theory to Production' (BSC x UPC): RAG applications, hand-built agent loops, and token-cost experiments measured on a local stack