Retrieval-Augmented Generation (RAG) Explained: How AI Combines Knowledge and Language Models