Newton (CA) interview question

Design a Retrieval-Augmented Generation (RAG) system and optimising there solutions