Transforming Questions and Documents for Semantically Aligned Retrieval-Augmented Generation