RAG: Retrieval-Augmented Generation as an engineering system

This section builds the engineering foundation for RAG: how text becomes numbers, how retrieval works, why embeddings and transformers matter, and how to think about RAG as a system you can build, measure, and improve.