Infosys Interview Question

How to design a RAG workflow, what components would you consider and why