RAG is a well-discussed and extensively carried out resolution for addressing doc summarizing optimization utilizing GenAI…