Exploring the Role of Retrieval-Augmented Generation (RAG) in Modern AI