Apple interview question

Explaining RAG architecture and how to implement